---
title: "sampling.tools support in MCP clients"
description: "Which MCP clients support sampling.tools, and how each claim is known. The protocol introduced it in 2025-11-25."
canonical: https://canimcp.io/capabilities/sampling-tools
last-updated: 2026-11-27
---

> **Alpha: work in progress. canimcp is an alpha, built by one person and changing often. Statuses, notes and probe results may be incomplete or inaccurate, and pages, data and the API can change without notice. Check the cited source before relying on a claim, and send corrections through the [contact page](https://canimcp.io/contact).**

# `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`](/capabilities/sampling.md).

## Support

| Client | Kind | Status | Known from | Revisions | Notes |
|---|---|---|---|---|---|
| [fast-agent](/clients/fast-agent.md) | 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](/clients/hermes-agent.md) | 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](/clients/mastra.md) | framework | ○ unsupported | read | `2026-07-28` | Sampling is not implemented. |
| [eve](/clients/eve.md) | framework | ○ unsupported | read | `2026-07-28` | Sampling is not implemented. |
| [crewAI](/clients/crewai.md) * | framework | ○ unsupported | read, through [`sampling`](/capabilities/sampling.md) | `2025-11-25` | Follows from sampling. |
| [deepagents](/clients/deepagents.md) * | framework | ○ unsupported | read | `2025-11-25` | The declaration is sampling: {} with no tools sub-capability, and no handler exists. |
| [Microsoft Agent Framework](/clients/agent-framework.md) | 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](/clients/vscode.md) * | host | ○ unsupported | read, declared, through [`sampling`](/capabilities/sampling.md) | `2025-06-18`, `2025-11-25` | sampling.tools is not declared. tool_use and tool_result parts are dropped from the messages. |
| [Langflow](/clients/langflow.md) * | host | ○ unsupported | read, through [`sampling`](/capabilities/sampling.md) | `2025-11-25` | Follows from sampling. |
| [TypeScript SDK Client](/clients/ts-sdk-client.md) | 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](/clients/goose.md), [Codex CLI](/clients/openai-codex.md), [opencode](/clients/opencode.md), [Cline](/clients/cline.md), [OpenClaw](/clients/openclaw.md), [Kilo Code](/clients/kilocode.md), [fx (native engine)](/clients/fx.md), [libfx (fx JavaScript adapter)](/clients/libfx.md), [pi](/clients/pi.md), [Strands Agents](/clients/strands.md), [Google ADK (Python)](/clients/adk-python.md), [Google Antigravity](/clients/antigravity.md), [Claude Code](/clients/claude-code.md), [Claude.ai](/clients/claude-ai.md), [ChatGPT](/clients/chatgpt.md), [Codex Desktop](/clients/codex-desktop.md), [Hugging Face Chat UI](/clients/huggingface-chat-ui.md), [Cursor](/clients/cursor.md), [n8n](/clients/n8n.md), [mcp-use](/clients/mcp-use.md), [Zed](/clients/zed.md), [Warp](/clients/warp.md), [Reachy Mini conversation app](/clients/reachy-mini-conversation-app.md). 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](/clients/hermes-agent.md) has one set of rows for every revision it speaks, not yet split by revision.

The [matrix on `2025-11-25`](/capabilities/revision/2025-11-25.md) shows every capability on that revision.

## Where the tiers disagree

- [Hermes Agent](/clients/hermes-agent.md) is recorded as opt-in. *declared* at `2025-11-25` says unsupported: canimcp-probe, 2026-11-08. initialize.capabilities on the wire was {"sampling":{},"elicitation":{"form":{},"url":{}}} (wire.jsonl). No tools key under sampling.

## Evidence

[fast-agent](/clients/fast-agent.md):

- *read* at `2026-07-28`: evalstate/fast-agent at `16f8bb65` `src/fast_agent/mcp/sampling.py:_sampling_response,sample`, 2026-11-27

[Hermes Agent](/clients/hermes-agent.md):

- *read* at `2025-11-25`: NousResearch/hermes-agent at `77236c4a` `tools/mcp_tool_sampling.py:SamplingHandler.__init__,SamplingHandler.session_kwargs,SamplingHandler._build_llm_call`, 2026-11-27
- *declared* at `2025-11-25` says unsupported: canimcp-probe, 2026-11-08. initialize.capabilities on the wire was {"sampling":{},"elicitation":{"form":{},"url":{}}} (wire.jsonl). No tools key under sampling.

[Mastra](/clients/mastra.md):

- *read* at `2026-07-28`: mastra-ai/mastra at `0a31d4d0` `packages/mcp/src/client/types.ts:MCPClientCapabilities`, 2026-11-27

[eve](/clients/eve.md):

- *read* at `2026-07-28`: [@ai-sdk/mcp](https://www.npmjs.com/package/@ai-sdk/mcp/v/2.0.99) `dist/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.

[deepagents](/clients/deepagents.md):

- *read* at `2025-11-25`: langchain-ai/deepagents at `c84eb7f1` `libs/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-sdk `mcp/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.

[Microsoft Agent Framework](/clients/agent-framework.md):

- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPTool._connect_on_owner`, 2026-11-27
- *read* at `2026-07-28`: microsoft/agent-framework at `f8ade3e9` `python/packages/core/agent_framework/_mcp.py:MCPTool.sampling_callback`, 2026-11-27

[TypeScript SDK Client](/clients/ts-sdk-client.md):

- *read* at `2025-11-25`: modelcontextprotocol/typescript-sdk at `5ee54ee3` `packages/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](/research/adk-python-declares-no-client-capabilities-by-default.md)
- [Agent Framework's Python binding declares sampling on every connection and refuses it by default](/research/agent-framework-declares-sampling-it-declines-by-default.md)
- [Agent Framework's Python and .NET bindings are two different MCP clients](/research/agent-framework-python-and-dotnet-are-two-mcp-clients.md)
- [Cline declares an empty capability object on both surfaces](/research/cline-declares-no-client-capabilities.md)
- [deepagents-code declares sampling, elicitation and roots to every server and answers none of them](/research/deepagents-code-declares-capabilities-it-cannot-serve.md)
- [fast-agent's capability declaration varies from server to server](/research/fast-agent-declares-capabilities-per-server.md)
- [Hermes runs one MCP client across every surface, and a second one it does not expose](/research/hermes-runs-one-mcp-client-for-every-surface.md)
- [Hugging Face Chat UI answers 2026-07-28 elicitations after the tool call has returned](/research/huggingface-chat-ui-parks-modern-elicitations-in-its-database.md)
- [Langflow's MCP client is its own wrapper on the mcp SDK, and langchain-mcp-adapters is an unused extra](/research/langflow-speaks-mcp-through-its-own-sdk-wrapper.md)
- [A default Mastra MCPClient declares the MCP Apps extension and nothing else](/research/mastra-declares-only-mcp-apps-and-dropped-roots-and-sampling.md)
- [A default OpenClaw install declares no client capabilities at all](/research/openclaw-declares-nothing-unless-mcp-apps-is-on.md)
- [opencode declares roots and nothing else, with sampling, elicitation and tasks commented out](/research/opencode-declares-only-roots.md)
- [Warp declares no client capabilities, and rmcp still answers roots and elicitation for it](/research/warp-declares-no-client-capabilities.md)
- [Zed hand-writes its MCP client, declares no capabilities and never answers a server request](/research/zed-hand-writes-its-mcp-client-and-answers-no-server-requests.md)

## 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`](/data/capabilities/sampling-tools.json). All capabilities: [`/data/capabilities/index.json`](/data/capabilities/index.json), and the [matrix](/capabilities/index.md).

