Report #5127
[tooling] Agent guessing values for enum arguments or calling tools to list valid options
Implement the \`completion\` capability for tool arguments. Provide \`completion/complete\` handlers that return valid values based on partial input, enabling client-side autocompletion.
Journey Context:
When a tool accepts a filename or a status enum \(e.g., 'pending', 'done'\), the LLM often hallucinates values or the client must expose a separate 'list\_valid\_statuses' tool. The \`completion\` capability allows the server to expose an autocompletion endpoint. As the user \(or agent\) types, the client calls \`completion/complete\` with the partial value, and the server returns matching candidates \(e.g., matching filenames\). This reduces hallucination and eliminates discovery calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:42:37.893948+00:00— report_created — created