MCP tool to guide Python code refactoring without automatic changes
This server has 8 tools covering Python code analysis, all read-only operations. However, critical definition quality gaps significantly limit production utility. Tool descriptions range from 70-120 characters and lack actionable context (WHEN to use each tool, what makes it different from similar tools). Input schemas are present with basic type information but lack detail on value ranges, constraints, and format expectations. No output schemas are documented. Parameter descriptions exist but are minimal (e.g., 'Path to the Python file to analyze', does it accept relative or absolute paths? Must it exist?). Error handling is not evident in tool descriptions. The server's purpose (guiding refactoring without automatic changes) is never mentioned in individual tool descriptions, leaving LLMs to infer intent. Average tool naming is clear and verb-based (analyze_*, scan_*), which is a strength, but the homogeneous naming pattern (6 of 8 start with 'analyze') creates disambiguation risk when many tools are available.
Analyze Python code with optional automatic refactoring
Extract function with guide or apply mode
Quick analysis to find immediate refactoring opportunities
Output schemas are not documented for any tool. LLMs cannot plan downstream operations or extract specific fields from responses without knowing what structure to expect.
Tool descriptions lack actionable context. None explain WHEN to use each tool, how it differs from similar tools (e.g., McCabe vs. Cognitive complexity), or what the LLM should do with the results. Descriptions are 35-70 chars, below the 50-200 char baseline for LLM optimization.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 13 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 40 | - | v1 |
Parameter descriptions are too minimal to guide LLM input. 'Path to the Python file to analyze' does not clarify: relative vs. absolute? Required to exist? Max length? These ambiguities force LLMs to guess or require trial-and-error.
The 'dependency_graph' parameter in analyze_coupling is typed as 'object' with minimal description ('Pre-computed dependency graph'). This is vague, what fields must the object contain? What format? This invites malformed inputs and LLM confusion.
Tool names are homogeneous (6 of 8 start with 'analyze'). While names are clear individually, this creates disambiguation risk when many tools are available. An LLM choosing between analyze_cyclomatic_complexity and analyze_cognitive_complexity has no naming hint for the difference.
No evidence of error handling guidance in tool descriptions. Tools that parse code or access dependencies can fail (syntax errors, missing files, permission denied). Descriptions should hint at common failure modes and recovery strategies.