Update MCP instructions: auto-generated tool tables#4596
Open
TerrenceMcGuinness-NOAA wants to merge 1 commit intoNOAA-EMC:developfrom
Open
Update MCP instructions: auto-generated tool tables#4596TerrenceMcGuinness-NOAA wants to merge 1 commit intoNOAA-EMC:developfrom
TerrenceMcGuinness-NOAA wants to merge 1 commit intoNOAA-EMC:developfrom
Conversation
…n, remove SDD tools - Replace manual tool reference with auto-generated 39-tool tables from generate-tool-docs.js - Change applyWhen from eib-mcp-rag-full to eib-mcp-gateway - Remove excludeAgent qualifier - Remove SDD Workflow tools (9 tools) — not relevant for global-workflow consumers - Add Required/Optional/Description columns for all tool parameters - Add regeneration comment for maintainability
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the MCP (Model Context Protocol) instructions file to reflect the current EIB MCP Gateway architecture and tools. The changes align the documentation with the v3.6.2 server implementation, improve tool discoverability by adding explicit parameter specifications, and remove platform-internal SDD Workflow tools that aren't relevant for global-workflow developers.
Changes:
- Updated MCP server reference from
eib-mcp-rag-fulltoeib-mcp-gatewayin YAML frontmatter and removed redundantexcludeAgentline - Enhanced tool documentation from 2-column format to 4-column format with explicit Required/Optional parameter columns for all 39 tools
- Removed 9 SDD Workflow tools (platform-internal session management) and reduced from 48 tools/9 modules to 39 tools/8 modules
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.
Update MCP Tool Instructions for EIB Gateway
Summary
Updates
.github/instructions/mcp.instructions.mdto reflect the current EIB MCP server (v3.6.2, 48 tools) and align with the Docker MCP Gateway architecture. Removes the SDD Workflow tools (internal to the MCP-RAG platform, not relevant for global-workflow consumers), bringing the exposed tool count to 39 tools across 8 modules. Adds detailed Required/Optional argument columns to facilitate GraphRAG tool usage and removes inappropriate use cases (SDD session management).Changes
applyWhenhasActiveMCPServer("eib-mcp-rag-full")hasActiveMCPServer("eib-mcp-gateway")excludeAgent: "code-review"applyWhengategenerate-tool-docs.js(39 tools)symbol,query,code_or_symbol,from_symbol,file_path, etc. with optional params likedepth,token_budget,include_communitycd mcp_server_node && node scripts/generate-tool-docs.jsWhy Argument Details Matter
The previous format only listed tool names and a brief description:
An agent seeing this has to guess what arguments to pass. The new format makes it explicit:
This is especially important for the GraphRAG module (9 tools) where tools like
trace_data_flow,get_change_impact, andfind_similar_codehave distinct required parameters (from_symbolvs.symbolvs.code_or_symbol) that an agent would otherwise conflate.Removed: SDD Workflow Tools
The 9 SDD tools (
list_sdd_workflows,start_sdd_session,record_sdd_step, etc.) manage the Spec-Driven Development session lifecycle on the MCP-RAG platform itself. They are not appropriate for agents working on global-workflow code — an agent reviewing a forecast script should not be starting SDD sessions. These tools remain available to agents working directly on the MCP-RAG server repository via its own instructions file.Context Window Performance Analysis
An analysis of the impact these instruction files have on LLM context window utilization in various GitHub Copilot scenarios:
File Sizes
copilot-instructions.mdinstructions/mcp.instructions.mdImpact Across Copilot Scenarios
copilot-instructions.mdmcp.instructions.mdAt 2.3–3.7% of context window, both files are well within the comfortable zone (general guidance: keep repo instructions under ~6%).
Known Redundancy with MCP Tool Schema Auto-Injection
When an MCP server connects, the MCP protocol itself injects JSON schemas for every registered tool into the model's context (~130 tokens per tool × 39 tools ≈ ~5,000 tokens). Our instruction file's parameter tables partially overlap with these auto-injected schemas (~1,100 tokens of the 1,800 total).
Unique value provided by the instruction file (~700 tokens):
read_file/grep)set -eufalse-positive warning (domain-specific knowledge)This redundancy is acceptable and intentional for now. The detailed parameter tables serve a dual purpose: human readability for developers reviewing the file, and reinforcement for the model. The argument details are particularly valuable for the GraphRAG tools where parameter naming is non-obvious (
symbolvs.from_symbolvs.code_or_symbol). When we move to the.github/agents/custom agent architecture with a persistent MCP gateway (replacing the current dev tunnel proof-of-concept), we can optimize by stripping the parameter tables down to a compact module-only listing, saving ~1,100 tokens.Future: Custom Agent Architecture
The planned next step is to create
.github/agents/eib-rag.agent.md— a custom agent profile that:This will require a stable, always-on MCP gateway URL (replacing the current dev tunnel), which is planned for the AWS Bedrock migration. The current instruction file format works well for both VS Code local development and as groundwork for that future agent configuration. The context window redundancy optimization is not germane at this time — it becomes relevant only when we configure the persistent gateway and the
.github/agents/custom agent, at which point the auto-injected schemas will make the parameter tables unnecessary.Testing
eib-mcp-gatewayMCP server is activeapplyWhengate prevents loading when no EIB MCP server is connectednode scripts/generate-tool-docs.jsoutput (39 tools / 8 modules)