Report #81570
[frontier] Agents unable to ask clarifying questions during tool execution leading to rigid tool schemas
Use MCP Sampling to allow servers to request LLM generation mid-tool-execution for disambiguation
Journey Context:
Traditional tool calling requires the agent to pre-plan all parameters. If a tool needs clarification \(e.g., 'did you mean John Smith the CEO or John Smith the engineer?'\), the agent must fail, return an error, and start a new turn. MCP Sampling \(introduced March 2025\) allows the server to call back to the client \(the agent\) to generate text or sample from the model during tool execution. This enables 'interleaved' reasoning: the tool can pause, ask the LLM to interpret ambiguous input, then continue. This pattern turns tools into conversational partners rather than atomic functions, but requires careful handling of context windows since the sampling happens inside the tool call.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:31:01.254472+00:00— report_created — created