MCP Server for generating chart images from python code
Single tool 'generate_chart' has critical definition gaps. Tool name lacks action verb clarity (should be 'create_chart' or 'render_chart'). Description is present but minimal (18 chars, below 20-char threshold). Input schema exists with 'code' parameter but lacks type validation, format constraints, or error guidance. No output schema documented. No parameter description for 'code' input. Tool executes arbitrary Python code (WRITE risk) with no validation, sanitization, or permission checks. No error handling guidance for LLM recovery.
Generate a chart image from the provided code.
Tool name 'generate_chart' lacks action verb. Should be 'create_chart' or 'render_chart' to signal intent clearly to LLM.
Input parameter 'code' has no description. LLM cannot infer what Python code is expected, constraints, or error cases.
No output schema documented. LLM cannot predict response structure (URL format, error fields, metadata).
Tool executes arbitrary Python code (WRITE risk) with no input validation, sanitization, or permission checks. Vulnerable to code injection and resource exhaustion.
Error responses lack recovery guidance. Exception caught in FastAPI returns raw error string; LLM has no actionable next step.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 30 | <=2025-11-25 | v2 |