analyze_script
Statically inspect a script to find functions, imports, complexity, and issues, and get actionable improvement suggestions for safer, clearer code.
Instructions
Statically analyse a script: functions, imports, complexity and issues.
Args: module_path: Dotted module path. project: Project name; defaults to the active project.
Returns: Analysis results and improvement suggestions.
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": {
"module_path": "<module_path>"
},
"name": "analyze_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | ||
| module_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||