An MCP server that exposes Swagger/OpenAPI API documentation as callable tools, allowing LLMs to discover and invoke APIs dynamically
Critical failures across all dimensions. The server dynamically generates tools from Swagger specs, but the tool definition is fundamentally broken: (1) Tool name 'swagger_*' is a placeholder, not a concrete verb_noun pattern, LLMs cannot parse intent from a wildcard. (2) Input schema properties are declared as a string 'Dynamic - generated from Swagger spec parameters' instead of an actual JSON Schema object with typed fields, this violates JSON Schema spec and makes the tool unusable. (3) Description is generic boilerplate lacking specificity about what each generated tool does, when to use it, or what it returns. (4) No per-parameter descriptions visible in the schema. (5) No output schema documented. (6) Error handling returns empty tool list on failure rather than actionable recovery guidance. The dynamic generation approach is sound, but the tool registration is incomplete and non-compliant.
Dynamically generated tools from Swagger/OpenAPI documentation. Each API endpoint in the Swagger spec becomes a callable tool with the prefix 'swagger_' followed by the API name. Tool descriptions include the API summary, full description, tags, and deprecation status if applicable.
Input schema 'properties' field is a string literal 'Dynamic - generated from Swagger spec parameters' instead of a JSON Schema object. This violates JSON Schema spec and makes the tool unparseable by MCP clients.
Tool name 'swagger_*' is a wildcard placeholder, not a concrete verb_noun action. LLMs cannot infer intent from 'swagger_' alone. Each generated tool should have a specific name like 'get_users', 'create_order', etc., derived from the Swagger operation.
No output schema documented. LLMs cannot plan downstream calls or extract data without knowing what fields the tool returns. Swagger responses should be mapped to a documented output structure.
Tool description is generic boilerplate. It does not explain what each specific generated tool does, when to call it instead of similar tools, or what it returns. Descriptions should be LLM-optimized (50-200 chars) and specific to each operation.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 25 | <=2025-11-25 | v2 |
Error handling in list_swagger_tools() returns an empty list on exception rather than propagating actionable error messages. LLMs receive no guidance on what failed or how to recover.