Report #4119
[tooling] Agents hallucinating invalid enum values for tool arguments
Implement the 'completion/complete' endpoint to provide dynamic argument completion suggestions. Return valid values based on partial input and context rather than hardcoded enums.
Journey Context:
Static JSON schemas with enums \(like '"enum": \["us-east-1", "us-west-2"\]'\) become stale when new regions launch. Agents hallucinate invalid values like 'us-central-1' when they need guidance. The MCP 'completion' capability lets servers implement 'completion/complete' to dynamically suggest valid values based on the user's partial input and current state \(e.g., querying active AWS regions in real-time\). This acts like IDE autocomplete for the agent, preventing hallucinated parameters and reducing retry loops. It supports pagination for large value sets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:51:26.914831+00:00— report_created — created