mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[GH-ISSUE #5] the engine reported an error: malformed tool call: web_search<arg_key>limit</arg_key><arg_value>8</arg_value><arg_key>query</arg_ke #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xldistance on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/5
When running glm5.3-flash-iq2_xxs in Maya on Windows, the model is unable to call tools and reports the following errors:
[strata] the engine reported an error: malformed tool call: mcp--tavily--tavily-search<arg_key>max_results</arg_key><arg_value>10</arg_value>
[strata] the engine reported an error: malformed tool call: web_search<arg_key>limit</arg_key><arg_value>8</arg_value><arg_key>query</arg_ke
@xldistance commented on GitHub (Oct 8, 2026):
{ "exe": "G:\\models\\project-maya\\build\\strata.exe", "args": [ "--glm-pack", "G:\\models\\Maya-data\\models\\glm-5.3-flash-maya-s-v2-iq2_xxs\\pack", "--max-context", "131072", "--kv", "int8" ], "cwd": "G:\\models\\project-maya", "tokenizer": "G:\\models\\Maya-data\\models\\glm-5.3-flash-maya-s-v2-iq2_xxs\\pack\\tokenizer", "model_name": "glm-5.3-flash", "gpu": [ 0 ], "sampling": { "temperature": 0.6, "top_p": 0.95 }, "reasoning_effort": "xhigh", "lib_dirs": [ "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.2\\bin", "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v13.2\\bin\\x64" ], "host": "0.0.0.0", "port": 5001, "vision": { "exe": "G:\\models\\project-maya\\build-vision\\bin\\strata-vision.exe", "mmproj": "G:\\models\\Maya-data\\models\\glm-5.3-flash-maya-s-v2-iq2_xxs\\vision\\mmproj-GLM-5.3-Flash-F16.gguf", "model": "G:\\models\\Maya-data\\models\\glm-5.3-flash-maya-s-v2-iq2_xxs\\vision\\GLM-5.3-Flash-vocab.gguf", "gpu": true }, "log": "G:\\models\\project-maya\\maya-maya-s-v2-iq2_xxs.log", "installer": { "data_dir": "G:\\models\\Maya-data", "quant": "Maya-S-v2-IQ2_XXS", "gguf_dir": null, "written": "2026-10-08 09:29" } }@xldistance commented on GitHub (Oct 8, 2026):
project-maya\serve\frontend.py needs to be modified.
@mw00 commented on GitHub (Oct 8, 2026):
Thanks for the report, and sorry it took this long. It is fixed in v1.0.13.
GLM-5.x writes its calls as
<tool_call>NAME<arg_key>…</arg_key><arg_value>…</arg_value></tool_call>, and the server only read the<function=…>form. The parser now reads both:I checked the call and its result in the next turn with the model's own template, for both the OpenAI and Anthropic APIs. A call the model only quotes inside a code block now stays text.
Update with
git pull, then start as usual. If a tool call still fails for you (MCP / Tavily included), please post the server line here.