Skip to content
{mcpdesc}

Use sampling tools only where supported

Sampling tools and toolChoice are available from MCP 2025-11-25. Earlier-version interaction examples cannot use those fields. Remove them or narrow the containing Tool’s protocol scope to versions that support them.

A sampling request uses tools and toolChoice only from MCP 2025-11-25.

Rule ID: mcp.sampling.tools.protocol-version
Owner: mcp
Surface: CreateMessageRequest · Path: tools, toolChoice
Kind: structural
Requirement level: must
Status: internal · Enforcement: internal

2024-11-05 2025-03-26 2025-06-18 2025-11-25 2026-07-28
applies applies applies applies applies

Source: expected-invalid/invalid-tool-interaction-example-semantics.json · Selected: /tools/0/interactionExamples/broken/steps/2/request

{
"messages": [
{
"role": "user",
"content": {
"type": "text",
"text": "Summarize the release plan."
}
}
],
"tools": [
{
"name": "diff_summary",
"inputSchema": {
"type": "object"
}
}
],
"maxTokens": 120
}

interaction.yaml at immutable tag v0.9.0-rc.3.