find_refactoring_opportunities
Detect dead code and god objects to identify refactoring targets. Scans a project for zero-incoming-edge code and overly complex classes.
Instructions
Find code health anomalies: dead code (0 incoming edges) and god objects.
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": {
"projectName": "<projectName>"
},
"name": "find_refactoring_opportunities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metricType | No | Anomaly type: 'dead_code', 'god_objects', 'all'. Default: 'all'. | all |
| projectName | Yes | Target project name. | |
| workspacePath | No | Optional workspace root path. |