Report #85595
[synthesis] Model hallucinates or fails when tool call parameters are missing
Implement model-specific parameter handling: for GPT-4o, add explicit system prompt instructions 'Do not guess missing parameters'; for Claude, rely on its native clarification but set a max-turn limit to prevent infinite loops; for Llama, validate arguments pre-execution as it silently drops missing parameters.
Journey Context:
Developers assume models will uniformly ask for missing required parameters. In reality, GPT-4o attempts to be 'helpful' by hallucinating plausible values, leading to silent tool failures. Claude defaults to asking the user, which can stall an autonomous agent loop indefinitely. Llama 3 often omits the parameter entirely, causing API errors. The cross-model diff reveals that parameter validation cannot be delegated to the LLM; it must be handled in the orchestration layer, with prompts tuned per model to mitigate their specific failure signatures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T02:15:22.351204+00:00— report_created — created