Report #10448
[tooling] MCP tool descriptions truncated by LLM context limits causing ignored constraints
Front-load critical constraints in first 200 tokens; use JSON Schema 'description' fields for parameter details rather than verbose natural language in the main tool description
Journey Context:
Developers often write lengthy tool descriptions explaining parameters, examples, and constraints, believing more context improves accuracy. However, LLMs truncate long descriptions based on token limits and embedding similarity cutoffs, often ignoring text beyond ~200-400 tokens. The high-signal approach is to treat the description as a 'headline' containing only the invariant constraints \(never do X, always return Y\), while moving parameter-specific details into the JSON Schema property descriptions where the LLM can reference them during structured generation. This ensures critical guardrails survive truncation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T10:45:18.542998+00:00— report_created — created