Skip to content

spec: tools/list SHOULD return tools in deterministic order#2516

Merged
dsp-ant merged 2 commits intomainfrom
claude/add-deterministic-tools-spec-mWwaa
Apr 13, 2026
Merged

spec: tools/list SHOULD return tools in deterministic order#2516
dsp-ant merged 2 commits intomainfrom
claude/add-deterministic-tools-spec-mWwaa

Conversation

@dsp
Copy link
Copy Markdown
Contributor

@dsp dsp commented Apr 4, 2026

Deterministic ordering enables clients to reliably cache the tool list
and improves LLM prompt cache hit rates when tools are included in
model context.

Deterministic ordering enables clients to reliably cache the tool list
and improves LLM prompt cache hit rates when tools are included in
model context.

https://claude.ai/code/session_01H7kpkCRQzoCrWm5YEpCXL4
@dsp dsp requested a review from a team as a code owner April 4, 2026 02:39
@mintlify
Copy link
Copy Markdown

mintlify bot commented Apr 4, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
mcp-staging 🟢 Ready View Preview Apr 4, 2026, 2:40 AM

pja-ant
pja-ant previously approved these changes Apr 4, 2026
Copy link
Copy Markdown
Contributor

@pja-ant pja-ant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, this is fine, but really its the host's job to figure this stuff out. Having a consistent order on the wire doesn't really guarantee that it ends up on the model API in a consistent order. Hopefully clients aren't asking servers for tools more often than the cache TTL... doesn't hurt to say this though.

@dsp-ant dsp-ant merged commit efecda0 into main Apr 13, 2026
9 checks passed
@dsp-ant dsp-ant deleted the claude/add-deterministic-tools-spec-mWwaa branch April 13, 2026 18:57
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.

4 participants