Report #71607
[tooling] LLM generates invalid resource URIs or tool arguments requiring multiple retry cycles
Implement the \`completion\` request handler to provide dynamic, context-aware autocomplete for resource URI templates \(e.g., \`file:///home/user/\{path\}\`\) and tool enum parameters, returning \`CompletionResult\` with \`values\` and \`total\` count.
Journey Context:
Without completions, the LLM must guess valid values for URI path segments or enum strings, often producing 404-like errors that trigger expensive retry loops and context window bloat. The MCP spec includes a first-class completion utility similar to LSP, but most servers omit it. By implementing \`completion/complete\`, you convert guesswork into a deterministic dropdown, allowing the agent to resolve valid arguments in a single turn, drastically cutting token burn on error recovery.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:46:23.865868+00:00— report_created — created