Repository navigation
Tools say what is documented, for clients that drop the instructions - #40
Merged
Merged
Conversation
Kit gives its model the tools but not the server's instructions, where the collections were named: its model saw tools that read "documentation" without knowing which, answered questions about SUSE products from memory or its shell, and guessed collection names. find_sections' description now opens with the collections' titles (at most 600 bytes, then "and N more"; search says it without find_sections), and find_sections' and search's collection parameter lists the names as an enum. About 220 tokens more per session with the thirteen SUSE collections; TestSessionCost's budget for the tool definitions is 5.25 KiB, from 5 KiB (docs/architecture.md §17.8). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NWLUBP1bFcMfsbUeenRe2W
Merged
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.
Why
Kit (0.143) does not give its model the server's
instructions: it keeps theinitializeresult only to see whether the server offers tasks. The instructions are where mcp-docs named its collections, so Kit's model saw tools that read "documentation" without knowing which. Under Kit's own coding-assistant prompt it answered questions about SUSE products from memory or with its shell, and guessed collection names (suse-16.1: "no such collection").What
find_sections' description opens with what is documented: "The documentation on this system: SUSE Linux Enterprise Server 16.1; SUSE Rancher Prime: RKE2; …", by the collections' titles (names where they have none), at most 600 bytes, then "and N more". Withoutfind_sections(--tools),searchsays it.find_sections' andsearch'scollectionparameter lists the names as anenum, so a model picks one there is.list_docsdoes not repeat them: called without a collection, it lists them.TestToolsNameTheCollectionscovers both, the fallback tosearchand the cap.TestFixedTextIsStablestill holds: the list follows the collections' order.docs/architecture.md§17.8 andCHANGELOG.md(Unreleased).What it costs
Every session, cached or not: 101 bytes with one collection, 875 bytes (~220 tokens) with the thirteen SUSE collections, against a tool list of 5.1 KB.
TestSessionCost's budget for the tool definitions is 5.25 KiB, from 5 KiB; that is the feature's price, not slack.Not verified
Not tried against Kit with a live model; the behaviour of Kit described above is from its source.
Generated by Claude Code