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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>"
},
"name": "analyze_encapsulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the C# project directory | |
| mode | No | Report mode: 'compact' (default, token-optimized) or 'detailed' (full info) | compact |