-
Notifications
You must be signed in to change notification settings - Fork 2
Add concept guide for optimizing LLM context #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a comprehensive concept guide explaining tool filtering and overrides in ToolHive, designed to help users optimize LLM context and reduce context pollution. The guide follows the Diataxis "explanation" framework, focusing on understanding concepts rather than step-by-step instructions.
Key changes:
- New concept guide covering tool filtering, overrides, and their combined usage patterns
- Updated sidebar labels for both the new guide and the existing Groups guide to be more outcome-oriented
- Comprehensive decision framework and best practices for implementing these optimization features
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/toolhive/concepts/tool-optimization.mdx | New 392-line concept guide explaining when and why to use tool filtering and overrides, including use cases, patterns, trade-offs, and best practices |
| sidebars.ts | Added the new tool-optimization guide to the concepts section between groups and registry-criteria |
| docs/toolhive/concepts/groups.mdx | Updated sidebar_label from "Groups" to "Organizing MCP servers" for consistency with outcome-oriented naming pattern |
Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
|
@JAORMX thanks for the review. I've addressed the items you pointed out, also tightened it up quite a bit overall - cut out about 1/3 of the overall length. |
Description
Adds a new concept guide explaining when and why to use tool filtering and overrides to optimize LLM context and reduce context pollution. The guide follows the Diataxis "explanation" framework, focusing on understanding concepts rather than step-by-step instructions.
The guide covers:
Also updates sidebar labels for both the new guide and the Groups guide to be more outcome-oriented and descriptive.
Related issues/PRs
Closes #361
Screenshots
N/A - text-only documentation
Merge checklist
Content
sidebars.ts) updated for added, deleted, reordered, or renamed filesvercel.jsonfor moved, renamed, or deleted pages (i.e., if the URL slug changed) (N/A - no moved/renamed/deleted pages)Reviews