Skip to main content
Glama
lady-logic

MMI Architecture Analyzer

by lady-logic

analyze_encapsulation

Analyzes C# project encapsulation quality by identifying over-exposed public types that should be internal. Checks visibility of classes, interfaces, and records to improve architectural integrity.

Instructions

Analyzes encapsulation quality by checking public vs internal visibility of classes, interfaces, and records. Identifies over-exposed types that should be internal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectPathYesPath to the C# project directory
modeNoReport mode: 'compact' (default, token-optimized) or 'detailed' (full info)compact
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It states what the tool does but doesn't describe output format, whether it's read-only or has side effects, performance characteristics, or error handling. For a tool with 2 parameters and no output schema, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise - just two sentences that directly state the tool's purpose and function. Every word earns its place with zero wasted text, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 2 parameters, no annotations, and no output schema, the description is insufficiently complete. It doesn't explain what the analysis returns, how results are formatted, or what 'over-exposed types' means in practice. For a code analysis tool, users need to understand what kind of output to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters thoroughly. The description doesn't add any parameter-specific information beyond what's in the schema. The baseline of 3 is appropriate when the schema does the heavy lifting, though the description could have explained how parameters relate to the analysis.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: analyzing encapsulation quality by checking visibility of classes/interfaces/records and identifying over-exposed types. It specifies the verb ('analyzes'), resource ('encapsulation quality'), and scope ('public vs internal visibility'), though it doesn't explicitly differentiate from sibling tools like analyze_abstraction or analyze_layering.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools, prerequisites, or specific contexts where encapsulation analysis is appropriate versus other architectural analyses available on the server.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lady-logic/mmi-analyzer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server