Report #9941
[agent\_craft] Providing loose natural language descriptions for tool parameters instead of strict JSON Schema
Define parameters using strict JSON Schema \(types, enums, required fields\) and enable constrained decoding if available; include specific enum examples in the description string, not just the schema
Journey Context:
Standard JSON Schema descriptions are often too abstract for LLMs; they ignore constraints like maxLength or enum unless explicitly reminded in the natural language description. Strict mode \(constrained decoding\) forces syntactic compliance, preventing hallucinated keys. Combining both \(strict schema \+ verbose descriptions\) beats loose schema alone which suffers from type mismatches \(e.g., sending '123' instead of 123\). This is critical for agents calling external APIs where type errors cause 400s.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:24:44.558377+00:00— report_created — created