MCP server for plotting and generating charts (bar graphs, line graphs, pie charts) and saving them as images
This server has critical definition quality gaps. All 4 tools exhibit the same structural problems: (1) Names violate verb_noun convention and contain 'and' conjunctions, signaling multiple responsibilities. (2) Descriptions are present but generic (20-60 chars), lacking WHEN/WHY context for LLM selection. (3) Input schemas are visible and properly typed, but output schemas are completely undocumented, tools return unstructured objects or plain text with no field definitions. (4) No error handling guidance; no recovery paths. (5) Parameters lack constraints (e.g., color as free-form string invites hallucination). The server is functional but would fail code review for production agent use.
Plot a bar graph and save it in /images directory
Plot a bar graph and save it in /images directory and return image path
Plot a line graph and save it in /images directory
Plot a pie chart and save it in /images directory
Tool names contain 'and' conjunctions and lack clear action verbs. 'plot_bar_graph_and_save_image' conflates two concerns (plotting + saving). Should split into 'create_bar_chart' and 'save_chart', or rename to 'generate_bar_chart' (single action). LLMs infer intent from names, compound names cause confusion.
Output schemas are completely undocumented. Tool 1 returns a complex object with 'content' array and nested 'type'/'mimeType'/'annotations' fields; Tool 2 returns a plain string; Tools 3 - 4 return unspecified objects. LLMs cannot plan downstream calls or extract data without knowing return structure. Violates pattern:tool and pattern:response-shaper.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 33 | 2026-07-28+ | v2 |
Descriptions are generic and lack WHEN/WHY context. 'Plot a bar graph and save it in /images directory' (44 chars) does not explain when to use this vs. other chart tools, what the output contains, or what happens on error. Baseline for A+ tools is 50 - 200 chars with clear intent guidance.
Parameters lack constraints and validation guidance. 'color' parameter accepts free-form strings (e.g., 'skyblue', 'blue') with no enum or pattern. LLMs will hallucinate invalid color names. Should declare valid colors as enum or document format explicitly.
No error handling or recovery guidance. Code silently catches exceptions (e.g., mismatched list lengths in bar graph) and may fail at runtime. No tool description explains what happens if categories.length != values.length, or if file write fails. Violates pattern:recovery-guide.