Auto-generate MCP tools from NestJS Swagger/OpenAPI specs
Critical failures across all dimensions. The server exposes a single tool 'dynamic_tools_from_openapi' with an empty input schema (no properties, no required fields). The tool description is generic and does not explain what the dynamically generated tools do or how to use them. No parameter descriptions exist. The schema field states 'Schema varies per generated tool', this is a cop-out that violates the contract: LLMs cannot plan calls when they don't know the input shape. The tool name lacks a clear action verb and is overly technical. No evidence of output schema documentation, error handling guidance, or security considerations for dynamically generated endpoints. This is a meta-tool that generates other tools at runtime, but the MCP registration itself is severely underspecified.
Dynamically generated tools from OpenAPI/Swagger specification. Each endpoint in the OpenAPI spec becomes an MCP tool with parameters derived from path, query, and request body schemas.
Input schema is empty (no properties, no required fields). LLMs cannot determine what parameters this tool accepts or how to invoke it. Violates pattern:tool requirement for explicit, machine-readable schemas.
Tool description is vague and generic ('Dynamically generated tools from OpenAPI/Swagger specification'). Does not explain WHEN to call this tool, WHAT it returns, or HOW the LLM should use the generated tools. Fails pattern:tool-description baseline of 10 - 1024 chars with meaningful context.
Tool name 'dynamic_tools_from_openapi' does not start with an action verb (get_, create_, list_, etc.). It is a meta-tool that generates other tools, but the name does not convey this. Should be 'generate_tools_from_openapi' or 'load_openapi_tools'.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 25 | <=2025-11-25 | v2 |
No output schema documented. LLMs do not know what fields the generated tools will have, what the response structure is, or how to chain calls. Violates pattern:tool requirement for documented return types.
No error handling guidance. If OpenAPI parsing fails, circular refs are detected, or the spec is malformed, the tool provides no recovery hints. Violates pattern:recovery-guide.