Report #101543
[agent\_craft] Agent hallucinates tool arguments or invents parameters because the schema is ambiguous
Write tool schemas as strict JSON Schema with enum constraints, regex patterns, required fields, and descriptions that include negative examples. Validate arguments server-side before execution and return validation errors as tool results.
Journey Context:
Vague descriptions invite confabulated values. JSON Schema's enum, pattern, minLength, and required fields are executable guardrails, not just documentation. Server-side validation catches model mistakes before side effects occur. Returning a validation error back to the model as a tool result creates a legitimate feedback loop that improves the next attempt.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-07T05:02:06.281974+00:00— report_created — created