evaluate_and_refactor
Audit code health and generate optimized, refactored code to fix issues and maintain architectural integrity.
Instructions
Language-agnostic --- health audit AND generates optimized code.
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": {
"file_path": "<file_path>"
},
"name": "evaluate_and_refactor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| custom_rules | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |