sgraph_audit
Run architectural health checks to detect circular dependencies (cycles) and high-coupling modules (hubs) in your codebase, returning JSON metrics for targeted fixes.
Instructions
Run architectural health checks on the codebase. For occasional reviews, not daily use.
Available checks:
"cycles": Find circular module dependencies (A depends on B, B depends on A)
"hubs": Find modules with unusually high coupling (many dependencies)
aggregation_level controls module granularity:
2: /project/component (coarse, good for monorepos)
3: /project/component/module (default)
4+: deeper nesting for fine-grained analysis
Returns JSON with cycles, hub modules, and summary metrics.
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": {
"input": "<input>"
},
"name": "sgraph_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |