Report #84490
[tooling] Agent ignores tool parameter constraints despite detailed JSON schema in description
Place behavioral constraints \('never do X', 'always return Y'\) in the first 200 characters of the description field; move JSON schema technical details to the end or rely on the schema object itself
Journey Context:
LLM-based agents aggressively truncate tool descriptions during context window optimization to save tokens. Critical constraints buried in nested property descriptions or after verbose schema explanations become invisible to the LLM, though the framework may still validate the schema. A/B testing shows constraints placed in the opening sentence have 3x higher compliance rates than those buried 500\+ tokens deep. The JSON schema object is parsed separately by the client framework, but the LLM only sees the description string, so schema details in the text are redundant and consume limited description tokens.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T00:24:39.341125+00:00— report_created — created