sampling.tools support in MCP clients
Which MCP clients support sampling.tools, and how each claim is known. The protocol introduced it in 2025-11-25.
Part of sampling.
Support
| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| fast-agent | framework | ● full | read | 2026-07-28 |
Tools in the request are passed to the LLM, and a tool call comes back as CreateMessageResultWithTools with stopReason "toolUse". The server executes and follows up. |
| Hermes Agent | host | ◇ opt-in | read, declared | 2025-11-25 |
Opt-in per server through expose_client_tools, off by default. A comment says strict servers rejected the unknown sampling.tools sub-capability during initialization (#5468). Server-sent tools are forwarded to the model and CreateMessageResultWithTools is returned whatever the setting. At a24c12d1 the sub-capability was always declared. |
| Mastra | framework | ○ unsupported | read | 2026-07-28 |
Sampling is not implemented. |
| eve | framework | ○ unsupported | read | 2026-07-28 |
Sampling is not implemented. |
| crewAI * | framework | ○ unsupported | read, through sampling |
2025-11-25 |
Follows from sampling. |
| deepagents * | framework | ○ unsupported | read | 2025-11-25 |
The declaration is sampling: {} with no tools sub-capability, and no handler exists. |
| Microsoft Agent Framework | framework | ◇ opt-in | read | 2026-07-28 |
sampling.tools is declared only when a chat client is set. The request tools are passed to the chat client as schema-only functions, and tool calls come back as CreateMessageResultWithTools with stopReason toolUse. |
| Visual Studio Code * | host | ○ unsupported | read, declared, through sampling |
2025-06-18, 2025-11-25 |
sampling.tools is not declared. tool_use and tool_result parts are dropped from the messages. |
| Langflow * | host | ○ unsupported | read, through sampling |
2025-11-25 |
Follows from sampling. |
| TypeScript SDK Client | sdk | ◇ opt-in | read | 2025-11-25 |
A request with tools or toolChoice is validated against the tool-use result schema. |
Not recorded for goose, Codex CLI, opencode, Cline, OpenClaw, Kilo Code, fx (native engine), libfx (fx JavaScript adapter), pi, Strands Agents, Google ADK (Python), Google Antigravity, Claude Code, Claude.ai, ChatGPT, Codex Desktop, Hugging Face Chat UI, Cursor, n8n, mcp-use, Zed, Warp, Reachy Mini conversation app. A missing record is not the same as unsupported.
Rows describe each client on 2026-07-28. A row marked * is for the newest revision the client speaks, because it cannot negotiate 2026-07-28: 2025-11-25 for 4 clients.
Tiers are not ranked. read is a source read at a pinned commit, verified is a probe run, observed is telemetry, and declared is what the client or a curated list says. "Through" names the parent capability whose evidence a row rests on when it has none of its own.
By protocol revision
No client records a different row on 2025-11-25, so the rows above hold there too.
Hermes Agent has one set of rows for every revision it speaks, not yet split by revision.
The matrix on 2025-11-25 shows every capability on that revision.
Where the tiers disagree
- Hermes Agent is recorded as opt-in. declared at
2025-11-25says unsupported: canimcp-probe, 2026-11-08. initialize.capabilities on the wire was {"sampling":{},"elicitation":{"form":{},"url":{}}} (wire.jsonl). No tools key under sampling.
Evidence
- read at
2026-07-28: evalstate/fast-agent at16f8bb65src/fast_agent/mcp/sampling.py:_sampling_response,sample, 2026-11-27
- read at
2025-11-25: NousResearch/hermes-agent at77236c4atools/mcp_tool_sampling.py:SamplingHandler.__init__,SamplingHandler.session_kwargs,SamplingHandler._build_llm_call, 2026-11-27 - declared at
2025-11-25says unsupported: canimcp-probe, 2026-11-08. initialize.capabilities on the wire was {"sampling":{},"elicitation":{"form":{},"url":{}}} (wire.jsonl). No tools key under sampling.
- read at
2026-07-28: mastra-ai/mastra at0a31d4d0packages/mcp/src/client/types.ts:MCPClientCapabilities, 2026-11-27
eve:
- read at
2026-07-28: @ai-sdk/mcpdist/index.js, 2026-11-16. @ai-sdk/mcp 2.0.99, the npm artifact before eve applies its build patches. onRequestMessage answers ping, handles elicitation/create when a handler is registered, and returns -32601 for every other server request.
- read at
2025-11-25: langchain-ai/deepagents atc84eb7f1libs/code/deepagents_code/mcp_tools.py:_mount_backends, 2026-11-27. Each connected client is wrapped with create_proxy and mounted on a FastMCP router. The tools call through FastMCPClient(router), built with no handlers. - read at
2025-11-25: modelcontextprotocol/python-sdkmcp/client/session.py, 2026-11-16. mcp 2.3.0, from the PyPI wheel. A capability is declared for each callback that is not the SDK default: sampling, elicitation with form and url, roots with listChanged true.
- read at
2026-07-28: microsoft/agent-framework atf8ade3e9python/packages/core/agent_framework/_mcp.py:MCPTool._connect_on_owner, 2026-11-27 - read at
2026-07-28: microsoft/agent-framework atf8ade3e9python/packages/core/agent_framework/_mcp.py:MCPTool.sampling_callback, 2026-11-27
- read at
2025-11-25: modelcontextprotocol/typescript-sdk at5ee54ee3packages/client/src/client/client.ts:Client._wrapHandler, 2026-11-20
Lifecycle
| Revision | Change |
|---|---|
2025-11-25 |
Introduced. |
Tool calling support in sampling via tools and toolChoice parameters.
SEP-1577.
Research notes
- ADK Python declares no client capabilities unless the application passes callbacks
- Agent Framework's Python binding declares sampling on every connection and refuses it by default
- Agent Framework's Python and .NET bindings are two different MCP clients
- Cline declares an empty capability object on both surfaces
- deepagents-code declares sampling, elicitation and roots to every server and answers none of them
- fast-agent's capability declaration varies from server to server
- Hermes runs one MCP client across every surface, and a second one it does not expose
- Hugging Face Chat UI answers 2026-07-28 elicitations after the tool call has returned
- Langflow's MCP client is its own wrapper on the mcp SDK, and langchain-mcp-adapters is an unused extra
- A default Mastra MCPClient declares the MCP Apps extension and nothing else
- A default OpenClaw install declares no client capabilities at all
- opencode declares roots and nothing else, with sampling, elicitation and tasks commented out
- Warp declares no client capabilities, and rmcp still answers roots and elicitation for it
- Zed hand-writes its MCP client, declares no capabilities and never answers a server request
Kinds
- framework: A library an application embeds. A capability row is what a default install declares, and the embedding application can change it.
- sdk: An MCP SDK. A capability row is the default every client on it inherits unless it overrides.
Data
This page as JSON: /data/capabilities/sampling-tools.json. All capabilities: /data/capabilities/index.json, and the matrix.