Report #28716
[tooling] Agents waste tokens guessing valid enum values for tool arguments or hallucinate invalid parameters, causing execution failures and retry loops
Implement the \`completions\` capability to provide dynamic, context-aware argument suggestions via \`completion/complete\` requests, especially for enum-like parameters that change based on workspace state
Journey Context:
Static JSON Schema enums require server restarts to update and can't reflect dynamic state \(like 'available database tables' or 'valid branch names'\). The \`completions\` capability allows the server to respond to autocomplete requests as the user types, similar to IDE IntelliSense. Most MCP implementations skip this because it seems complex, but it drastically reduces hallucination for tools with dynamic parameters \(file paths, IDs, status values\). Without it, agents either burn tokens enumerating options via separate tool calls or guess wrong and fail.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T02:35:42.882716+00:00— report_created — created