Report #86861
[tooling] Agent fails to use MCP tool correctly despite correct schema, or tool description appears cut off in logs
Keep tool description under 1024 characters \(Anthropic limit\); put critical constraints \(enums, required fields\) in the first 200 characters or in the property names themselves; use description fields on individual properties rather than relying on long top-level descriptions
Journey Context:
Anthropic's API \(and thus Claude Desktop\) silently truncates tool descriptions to ~1024 characters. When you have a complex tool with many parameters, the description often contains the critical schema information. If truncated, the LLM sees an incomplete schema and hallucinates parameters or fails to call the tool. The workaround is front-loading the most critical constraints \(like 'Must be one of: foo, bar'\) and moving detailed explanation to parameter-level descriptions which are parsed separately and less likely to be truncated in the schema object itself.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:23:13.750421+00:00— report_created — created