MCP server that converts SVG content to PNG images using CairoSVG
Single tool with severe definition gaps. Tool name 'svg_to_png' lacks action verb prefix and is vague about the conversion mechanism. Description is minimal (39 chars in English, Chinese translation provided) and does not explain what happens, when to use it, or what the tool returns. Input schema is present but parameters lack detailed descriptions beyond basic field labels. Output is a plain string (file path) with no validation, error guidance, or structured metadata. No parameter validation rules, constraints, or type constraints documented. Security issue: work_dir parameter accepts arbitrary paths without sanitization, enabling potential path traversal attacks. No error handling guidance for LLM recovery.
MCP工具:将SVG转换为PNG
Tool name lacks action verb prefix. 'svg_to_png' reads as a noun/conversion description rather than an imperative action. Should be 'convert_svg_to_png' to clearly signal the action to LLMs.
Description is minimal (39 characters in English) and lacks critical information. Does not explain: WHAT the tool does in full, WHEN to use it, what format SVG should be in, what the return value represents, or error conditions. LLMs cannot determine tool selection without richer context.
Parameter 'svg_content' description is bare label 'SVG代码字符串' (Chinese: 'SVG code string'). Does not specify: required format, expected structure, size limits, encoding requirements, or validation rules. LLMs cannot construct valid SVG without guidance.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 33 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 20 | - | v1 |
Parameter 'work_dir' has no validation or sanitization. Accepts arbitrary filesystem paths. Vulnerable to path traversal attacks (e.g., '../../sensitive/directory'). No constraints documented (e.g., must be relative, must exist, must be writable). Violates pattern:tool-gateway.
Output schema is undocumented. Tool returns a plain string (file path) with no structure, validation, or metadata. LLM does not know: is the path absolute or relative? Does the file exist? Can it be read? What is the file size/dimensions? Should it be returned to user as-is or embedded?
Error handling is generic. Exception raised with message like 'Exception: 转换失败: {details}' (Chinese: 'Conversion failed'). Does not categorize errors (retryable vs fatal), does not provide recovery guidance, does not include validation failure details. LLM has no path forward on error.
Tool performs file I/O with side effects (creates PNG file on disk) but description does not acknowledge this. LLMs must know which tools are safe to retry without duplication risk. No idempotency guarantees documented.