Report #47249
[frontier] Agent tools cannot request LLM clarification mid-execution causing expensive multi-turn loops
Implement MCP Sampling to allow tools to request LLM completions during execution, collapsing clarification into a single turn
Journey Context:
Traditional tool calling requires the LLM to predict all parameters upfront. When tools face ambiguity \(e.g., 'which file did you mean?'\), agents must return to the LLM in a new turn, breaking atomicity and adding latency. MCP Sampling \(introduced in spec 2025-03-26\) allows a tool execution to request a completion from the client LLM mid-flight, enabling interactive tool resolution within a single turn. This is critical for file editing, database queries, and ambiguous parameter resolution. Alternatives like 'plan-then-execute' require perfect foresight; Sampling allows for emergent clarification without orchestrator complexity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:47:37.261455+00:00— report_created — created