feat(sequential-thinking): add tool annotations#3534
Merged
olaservo merged 1 commit intomodelcontextprotocol:mainfrom Mar 15, 2026
Merged
Conversation
Add readOnlyHint, destructiveHint, idempotentHint, and openWorldHint annotations to the sequentialthinking tool, consistent with how server-filesystem annotates its tools. The tool is pure computation (readOnly), produces deterministic structure for the same input (idempotent), and makes no external calls (not openWorld). Fixes modelcontextprotocol#3403
olaservo
approved these changes
Mar 15, 2026
Member
olaservo
left a comment
There was a problem hiding this comment.
Clean, well-scoped addition of tool annotations to the sequential-thinking server. All four annotation values are semantically correct:
readOnlyHint: true— the tool doesn't modify any external environment (files, network, DB). The in-process state accumulation (thoughtHistory, branches) is an implementation detail, not an environmental side effect in the MCP sense.openWorldHint: false— no network calls or external interactions.destructiveHint: false/idempotentHint: true— redundant per the MCP spec whenreadOnlyHintistrue, but not harmful. The filesystem server takes the terser approach of omitting these for read-only tools, but being explicit is a valid stylistic choice.
LGTM — thanks for the contribution @nielskaspers!
Reviewed with the assistance of Claude Code (claude-opus-4-6). Annotation semantics verified against the MCP specification and sequential-thinking source code.
nielskaspers
added a commit
to nielskaspers/servers
that referenced
this pull request
Mar 15, 2026
…#3534) feat(sequential-thinking): add tool annotations Adds MCP ToolAnnotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to the sequential-thinking tool, bringing it in line with the annotation pattern established by the filesystem server. Fixes modelcontextprotocol#3403
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds tool annotations to the
sequentialthinkingtool, matching the pattern established by server-filesystem. This is the last unannotated reference server with a single tool.Issue
Fixes #3403
Changes
readOnlyHint: true— pure computation, no state persisted or files writtendestructiveHint: false— no data is modified or deletedidempotentHint: true— same input produces same reasoning structureopenWorldHint: false— no external API calls or network accessTesting