feat(agents): give Pi tool registrations their full description#219
Merged
Merged
Conversation
…just the first sentence
zzet
approved these changes
Jul 2, 2026
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
Brings the Pi extension's tool descriptions to parity with what real MCP clients already receive:
gortex tools searchgains a--format jsonmode, andToolDescriptor(Go + CLI mirror) now carries the full untruncatedDescriptionalongside the existing first-sentenceSummary. Pi'sregisterOneTooluses it directly instead of synthesizing a shortened description — removing a Pi-specific truncation that no other MCP agent was subject to.Changes
Descriptionfield tomcp.ToolDescriptorandcmd/gortex'stoolDescriptorCLImirror, populated viastrings.TrimSpace(e.desc).--format jsontogortex tools search, emitting{name, description}per match instead of the truncated single-line text listing.internal/agents/pi/extension/index.ts) to calltools search --format json, parse it with a newparseToolSearchJSON/firstSentence, and register each tool with its fulldescription(falling back tosummary, thenname) instead of a hardcoded "(Gortex graph tool — prefer over raw file reads.)" suffix.Testing
go test ./internal/mcp/... ./cmd/gortex/...)Checklist
Meta["methods"]for interfaces (if applicable)EdgeMemberOfedges to their containing type (if applicable)