MCP server for Java class file analysis and decompilation
Three tools with complete JSON schemas and parameter descriptions, but critical gaps in tool descriptions and naming clarity. Tool names lack clear action verbs (scan_dependencies vs. scan_maven_dependencies). Descriptions are present but generic, they lack WHEN to use guidance, prerequisites, or recovery hints. No output schemas documented. Parameters are typed but lack format constraints (e.g., projectPath accepts any string; no validation hints). No error handling guidance. Descriptions average ~120 chars, within baseline range, but lack LLM-optimized structure. No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite all three being read-only operations.
分析类结构/方法/字段/继承关系;当需生成调用代码或确认API签名、参数、返回值时自动调用(支持三方/JDK类)。
反编译指定Java类(含三方/JDK),返回源码与方法签名;当需查看依赖或JDK类实现、签名、参数时自动调用。
扫描Maven依赖并建立类索引;缺类/新增import三方或JDK类时先调用此工具。如果索引已存在可跳过。
Tool descriptions lack WHEN-to-use guidance and prerequisites. Descriptions state WHAT but not WHEN or WHY. LLMs cannot determine tool selection priority without explicit guidance on when to call scan_dependencies vs. decompile_class vs. analyze_class.
No output schemas documented. Tool descriptions mention return values (source code, method signatures, class structure) but no structured schema is provided. LLMs cannot plan downstream operations or extract specific fields without knowing the response structure.
Missing tool annotations despite all three tools being read-only. No readOnlyHint declared in tool definitions. Agents cannot distinguish safe-to-retry operations from destructive ones without explicit annotations.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
Parameter descriptions lack format constraints and validation hints. projectPath accepts any string with no guidance on absolute vs. relative paths, Windows vs. Unix separators, or validation rules. className has no pattern constraint (e.g., must match Java FQCN format).
No error handling guidance. Tool descriptions do not explain what happens on failure (e.g., class not found, invalid project path, CFR tool missing). LLMs receive no recovery hints and cannot self-correct.