Advanced .NET code analysis and class exploration tools for inspecting types, dependencies, and generating source code from assemblies
MCPSharp defines 3 tools with reasonable descriptions (avg 180 chars) and documented parameters. However, critical gaps limit production readiness: (1) output schemas are completely undocumented, callers cannot know what fields to expect from FindClass or Analyze results; (2) no enum constraints on analysisDepth despite accepting only 3 values; (3) error handling returns generic text blocks without actionable recovery guidance; (4) no pagination support despite tools potentially returning large result sets; (5) parameter descriptions lack format/constraint details (e.g., maxResults has no bounds stated). Tool names follow verb_noun convention (good), but descriptions could better explain WHEN to use each tool vs. alternatives. Per-tool scores: class_explorer_find 62, class_explorer_analyze 58, class_explorer_clear_cache 54.
Performs comprehensive analysis of a specific class including its source code representation, dependencies, inheritance hierarchy, and member signatures. Can optionally include related types.
Clears the cached analysis data for a specific project or all projects. Use this when project files have changed.
Searches for classes, interfaces, enums, or structs by name in a .NET project or solution. Returns basic information about found types including their full name, namespace, and assembly. Use this for initial discovery before detailed analysis.
Output schemas completely undocumented. FindClass and Analyze return CallToolResult with TextContentBlock, but LLMs cannot know what fields the text contains or how to parse results for downstream tool calls.
analysisDepth parameter accepts only 3 values ('none', 'hierarchy', 'signature') but is defined as free-form string with no enum constraint. LLMs will hallucinate invalid values.
maxResults parameter lacks bounds. Description says 'default: 10' but does not specify min/max. Unbounded integers let LLMs pass absurd values (e.g., 1000000) that degrade performance.
Error handling returns generic TextContentBlock messages without recovery guidance. 'Failed to clear cache' tells the LLM nothing about whether to retry, ask the user, or abort.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 49 | <=2025-11-25 | v2 |
No pagination support. FindClass can return up to maxResults items, but no offset/limit or cursor mechanism. Large result sets will blow context windows.