Report #40260
[tooling] Agent provides malformed arguments despite detailed JSON schema definitions
Place critical constraints in the root tool description using structured formatting 'Constraints: \[X\]. Returns: \[Y\].', and populate the JSON Schema 'examples' array with 2-3 valid input objects instead of relying solely on property descriptions.
Journey Context:
While JSON Schema property descriptions seem like the right place for constraints, LLM agents prioritize the root description and example objects when constructing function calls. Standard practice puts detailed type info in nested property descriptions, which agents often miss or misweight. By extracting critical operational constraints \(rate limits, side effects, exact return structure\) into the root description with clear delimiters, and providing concrete examples in the schema 'examples' field \(which OpenAI and Claude both support\), the agent receives pattern-matching guidance rather than just type definitions. This prevents the common failure where agents omit required fields or include extra parameters because they didn't traverse the full schema tree.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:02:52.380286+00:00— report_created — created