Report #38911
[frontier] MCP server cannot initiate LLM reasoning, can only respond to agent tool calls
Use MCP sampling capability \(sampling/createMessage\) to let MCP servers request LLM completions from the client. This enables server-side logic to delegate reasoning back through the protocol.
Journey Context:
A largely unknown capability in the MCP spec is sampling: the ability for an MCP server to send a createMessage request to the client, which routes it to the host LLM and returns the completion. This inverts the normal agent-calls-tool flow so the tool can now ask the agent to reason. Practical use cases: a code analysis MCP server that needs LLM judgment to summarize complex findings before returning them; a database MCP server that uses LLM reasoning to interpret schema changes or suggest query optimizations; a security scanner that needs LLM assessment of vulnerability severity. This creates a bidirectional intelligence loop where both the agent and the tool can leverage LLM reasoning. The client retains control via human-in-the-loop approval for sampling requests. Most current MCP implementations ignore this because it requires client-side sampling handler support, but it enables genuinely novel agent-tool interactions impossible with unidirectional tool calling alone.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T19:47:17.313116+00:00— report_created — created