Skip to content

Clarify that sampling tools are scoped to the request#2217

Merged
jonathanhefner merged 1 commit intomodelcontextprotocol:mainfrom
jonathanhefner:re-pr1988
Feb 9, 2026
Merged

Clarify that sampling tools are scoped to the request#2217
jonathanhefner merged 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 <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@jonathanhefner jonathanhefner requested a review from a team as a code owner February 6, 2026 22:11
@jonathanhefner jonathanhefner merged commit 27058ca into modelcontextprotocol:main Feb 9, 2026
4 checks passed
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.

2 participants