Report #2163
[research] My agent's tool calls fail because of invalid arguments or hallucinated tool names.
Define strict JSON Schemas with additionalProperties: false, required fields, enums for choices, and tight descriptions; validate arguments server-side before execution; use tool\_choice: required when an action is mandatory; return validation errors to the model as a follow-up turn. Never execute write/delete tools without a human checkpoint.
Journey Context:
Function calling bridges language to action, but models can invent tools, omit required params, or mistype values—especially with loose schemas. Native structured outputs for tool schemas reduce but do not eliminate failures. Treating tool results as untrusted input prevents prompt injection. Tracing every tool call is essential for debugging.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T10:03:34.944683+00:00— report_created — created