High-performance ASP.NET Core gateway router for the Model Context Protocol (MCP)
MCG exposes 2 meta-tools for discovering and executing backend MCP tools. Both tools have descriptions and input schemas present. search_tools has a clear, actionable description (95 chars) and simple schema with one required string parameter. execute_tool is more complex with 3 parameters (name, arguments, target_auth_token), all described. However, neither tool documents output schemas, critical for LLMs to understand what data they'll receive and how to chain calls. The execute_tool description mentions 'namespaced tool names' but doesn't explain the resolution algorithm or failure modes when names are ambiguous. Parameter descriptions lack format constraints (e.g., what constitutes a valid tool name pattern). Error handling is delegated to ToolErrorFormatter with actionable suggestions, but the tools themselves don't declare what errors are retryable or how to recover from ambiguous name resolution.
Execute a specific internal MCP tool by name with arguments. Accepts namespaced tool names ('server/tool' or 'server__tool') or bare tool names ('tool') if unambiguous. Obtain available tools by calling search_tools first.
Semantically search across all registered internal MCP tools (Excel, Docker, Plex, Home Assistant, etc.) using keywords. Returns the matching tool names, descriptions, and input schemas. Use this first to discover what tools are available.
Output schemas not documented. LLMs cannot infer what search_tools returns (tool names, descriptions, schemas?) or what execute_tool returns (raw result, wrapped in metadata, error structure?). This forces agents to guess and wastes tokens on trial-and-error.
execute_tool parameter 'name' lacks format constraints. Description mentions 'namespaced' (server/tool or server__tool) and 'bare' names, but doesn't specify: (1) what happens if multiple backends have a tool with the same bare name? (2) is the resolution deterministic? (3) what error is returned if ambiguous? This ambiguity invites LLM mistakes.
execute_tool 'arguments' parameter is typed as generic object with no schema. LLMs cannot validate arguments before calling, they must pass whatever the backend tool expects, but the tool definition doesn't hint at what that is. Recommend documenting that arguments must match the schema returned by search_tools.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 64 | <=2025-11-25 | v2 |
No error classification or recovery guidance in tool descriptions. ToolErrorFormatter provides suggestions (auth, timeout, connection, argument errors), but the tools don't declare which errors are retryable, which require user intervention, or which are fatal. Agents need this to plan recovery.
search_tools description doesn't explain what 'matching tool names, descriptions, and input schemas' means structurally. Does it return an array of objects? A map? Are schemas included as JSON Schema or as strings? LLMs need explicit output structure to plan downstream calls.