MCP server that provides tools for searching Metal Framework documentation and generating Metal code examples using RAG (Retrieval-Augmented Generation) with vector embeddings
Metal MCP server has critical definition quality gaps. Both tools have reasonable names following verb_noun convention (search_metal_docs, generate_metal_code) and descriptions of 110-120 chars, within the production baseline of p10=34, p90=392. However, parameter descriptions are missing entirely for all inputs, schemas lack proper type validation, output formats are undocumented, and error handling provides no recovery guidance. The tool definitions are visible in src/server.ts (lines 20-51), but lack the rigor expected even for community servers.
Generate Metal Framework code for common tasks
Search Metal Framework documentation and code examples using natural language queries
All input parameters lack descriptions. 'query', 'limit', 'task', and 'language' parameters have no description field in the schema. A parameter named 'type' is ambiguous, the description disambiguates it for the LLM.' LLMs cannot infer 'limit' means 'max results to return' without explicit text.
No enum constraint on 'language' parameter in generate_metal_code. Schema description says 'objective-c, swift, or metal' but enum field is missing. Free-form strings invite hallucinated values.' LLM may pass 'python', 'c++', or other invalid languages.
Output schemas completely undocumented. Both tools return text responses but LLM has no knowledge of return structure. search_metal_docs returns [{title, content, url, type}] (visible in code line 101-108 but not in schema), generate_metal_code returns code snippet (line 127). LLMs need to know what fields to expect so they can plan downstream tool calls and extract the right data.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 48 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 41 | - | v1 |
No error handling or recovery guidance. If initializeRAG() fails (network error, cheerio parse error, vector store initialization), the handler will throw unhandled exceptions.
'limit' parameter defaults to 3 but no validation prevents limit=0, limit=-1, or limit=10000. Unbounded numbers let LLMs pass absurd values.' No bounds checking in handleToolRequest for search_metal_docs.
Code generation tool uses rule-based if/else (task.includes('compute'), task.includes('render')) instead of semantic search over real examples. Hard-coded logic in generateComputeCode(), generateRenderCode(), generateBasicCode() (lines 120-128) is not shown but likely produces low-quality, templated responses. Per pattern:tool, generation should either use retrieval-augmented generation with real examples or be explicit about limitations.
Tool descriptions do not clarify differences or dependencies. Both search_metal_docs and generate_metal_code search a vector store internally. Descriptions do not explain: (1) When to use search vs generate; (2) Whether generate uses search internally; (3) What query language is supported in search; (4) What task descriptions work best in generate.