Skip to content

Clarify that sampling tools are scoped to the request#2217

Open
jonathanhefner wants to merge 1 commit intomodelcontextprotocol:mainfrom
jonathanhefner:re-pr1988
Open

Clarify that sampling tools are scoped to the request#2217
jonathanhefner wants to merge 1 commit intomodelcontextprotocol:mainfrom
jonathanhefner:re-pr1988

Conversation

@jonathanhefner
Copy link
Member

The tools array in a sampling/createMessage request defines tools specifically for that sampling request. They don't need to correspond to registered tools on the server. This was a source of confusion discussed in the community.

Closes #1988.

The `tools` array in a `sampling/createMessage` request defines tools
specifically for that sampling request. They don't need to correspond to
registered tools on the server. This was a source of confusion discussed
in the community.

Closes modelcontextprotocol#1988.

Co-Authored-By: Paolo Ricciuti <ricciutipaolo@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jonathanhefner jonathanhefner requested a review from a team as a code owner February 6, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant