-
-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Hi! First of all, thank you for this amazing project. I'm using ollmcp with a local model (crisp-im/Qwen3-4B-instruct-rank-3-Q4_K_M) and trying to run a structured EPUB summarization workflow using several MCP tools: ebook.get_epub_toc, ebook.get_epub_chapter_markdown, and filesystem.write_file.
The goal is to generate a Markdown summary per book, including chapter-by-chapter summaries and a general summary at the top. The workflow is clearly defined and step-based. Everything works fine until the assistant prints a ToolCall as JSON, but does not execute it. After that point, the model stops progressing.
🔁 Example of where it halts
The assistant outputs this (correct) tool call, but never executes it:
{
"name": "ebook.get_epub_toc",
"parameters": {
"path": "/Volumes/E/Nextcloud/Materiales espirituales/Reveladores/Dios/Conversaciones con Dios 1 (1995).epub"
}
}After that, nothing happens. This has happened in two different points of the workflow (once with filesystem.write_file, and once with ebook.get_epub_toc). All tools work perfectly when called directly.
✅ Confirmed
- The same tools work when invoked directly from the prompt.
- The JSON is valid.
- The flow starts correctly (the Markdown file is created, and the headers are written).
- I'm using:
ollmcp -j "/Volumes/D/Documentos D/mcp-servers/clients/ollmcp/servers.json" -m "crisp-im/Qwen3-4B-instruct-rank-3-Q4_K_M"🤔 My Hypothesis
- Either the printed JSON prevents
ollmcpfrom executing the tool call, - or the agent is hallucinating that it’s calling the tool, while it’s actually just printing the JSON.
🔪 Repro Steps
- Use any EPUB file and define a multi-step summarization flow (can share a full example if needed).
- Ask the assistant to create a summary Markdown with chapter-wise summaries.
- After 1–2 successful steps, it will print a JSON like above and stop.
Would be happy to provide the full Markdown instruction I’m using, and even a video recording if needed.
Let me know if there's any way to debug further or if this behavior is known. Thanks again for your work!