Add Serena MCP tool usage statistical analysis with request/response size metrics #13063
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.
Statistical analysis of Serena MCP server tool usage from workflow run 21560089409.
Deliverables
scratchpad/serena-tools-analysis.md- Complete analysis with Mermaid visualizationsscratchpad/serena-tools-quick-reference.md- At-a-glance metrics and insightsscratchpad/serena-tools-data.json- Raw statistics for programmatic accessKey Metrics
search_for_pattern(3 calls)Request/Response Size Metrics
Serena Efficiency: Serena tools use ~700-840 bytes per request and 386-771 bytes per response (<1x amplification), compared to Bash at 10KB average response (11.8x amplification). Serena tools transfer 10x less data per call than Bash operations.
Findings
Tool adoption: 17/23 Serena tools unused (74%), including all code modification tools, most memory management tools, and meta-cognitive capabilities.
Usage pattern: Agent heavily favors builtin operations (Bash, Read, Write) over language-aware Serena tools despite their availability.
Tool categories by adoption:
Reliability: 100% response rate across all tool calls - no timeouts or failures.
Bandwidth efficiency: Serena tools are highly bandwidth-efficient, accounting for only 2.89% of total data transfer despite representing 20.45% of tool calls. They return structured, compact data compared to verbose text outputs from Bash.
Optimization Opportunities
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.