Unified multi-provider LLM gateway exposing chat completion, model listing, provider status, and usage tracking as MCP-compatible tools
Server exposes 4 tools with complete input schemas and basic descriptions. Naming follows verb_noun convention (chat_completion, list_models, list_providers, get_usage). However, descriptions are generic and lack LLM-optimized guidance on WHEN to use each tool or WHAT happens. Parameter descriptions are sparse or missing entirely. Output schemas are not documented, LLMs cannot predict response structure. Error handling is minimal. No tool annotations (readOnlyHint, destructiveHint). The get_usage tool exposes an api_key parameter as input, which violates secret-injection pattern. Overall: functional but below production baseline.
Send a chat completion request through the LLM gateway
Get token usage and cost statistics
List all available models across configured providers
List configured LLM providers and their status
get_usage exposes api_key as a required/optional input parameter. Credentials must never appear as tool parameters, use server-side secret injection via environment or vault. Agent traces log all parameters, leaking secrets into logs and prompt history.
Output schemas are not documented. LLMs cannot predict response structure (e.g., does chat_completion return 'content' or 'text'? Is usage nested or flat?). This forces LLMs to guess and wastes tokens on trial-and-error parsing.
Descriptions lack LLM-optimized guidance. 'List all available models' (40 chars) does not explain WHEN to call this vs chat_completion, or what structure is returned. Descriptions should be 50 - 200 chars and answer: What? When? What does it return?
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | <=2025-11-25 | v2 |
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). All 4 tools are read-only, but this is not declared. Agents cannot distinguish safe tools from destructive ones without explicit hints.
Error handling is minimal. Handler returns ValueError for unknown tools, but no guidance on recovery. Errors should categorize as retryable/user-fixable/fatal and suggest next steps (e.g., 'Provider unavailable. Try list_providers() to see available options.').