Enhancement: Simplify twdesk and twspaces tool descriptions#303
Merged
Conversation
Strip marketing prose ("Useful for...", "Enables users to audit/analyze/
synchronize...", "adapting Desk to evolving support processes") from every
twdesk tool description and align twspaces tone with the same terse template.
Add light-touch product disambiguators ("Desk tag", "Spaces tag", "page
comment", "Desk company") on the few tools that share a bare suffix with
twprojects so the LLM has a non-prefix signal to pick by.
Delete twdesk/desk.go and twspaces/spaces_desc.go (now-unused marketing
blurbs) and replace their toolset references with terse constants matching
the existing peopleDescription / timeDescription style.
Token savings vs main (mcp-tokens): 33,925 -> 32,413 (-1,512, -4.5%).
twdesk + twspaces tools alone: 11,937 -> 10,405 (-12.8%).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
rafaeljusto
approved these changes
May 6, 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
Useful for…,Enables users to audit/analyze/synchronize…,adapting Desk to evolving support processes) from every twdesk tool description; align twspaces tone with the same terse template.Desk tag,Spaces tag,page comment,Desk company) on the few tools that share a bare suffix with twprojects, so the LLM has a non-prefix signal to pick by.twdesk/desk.goandtwspaces/spaces_desc.go(now-unused marketing blurbs); replace toolset references with terse constants matching the existingpeopleDescription/timeDescriptionstyle.Token savings (mcp-tokens vs main)
twdesk + twspaces tools alone: 11,937 → 10,405 (−12.8%).
Test plan
gofmt -s -w .,go vet ./...,go build ./...cleango test ./internal/twdesk/... ./internal/twspaces/...passesgo run ./cmd/mcp-tokens -base mainconfirms savings🤖 Generated with Claude Code