run_static_analysis
Find likely Python bugs such as undefined names and type errors without running tests by scanning repository code with pyflakes and mypy.
Instructions
Run static analyzers (pyflakes, mypy --ignore-missing-imports) over the repo's code.
Use this to find likely bugs without running tests: undefined names, redefinitions, type
errors. tools is comma-separated ("pyflakes", "mypy" or both). paths is comma-separated
repo-relative paths (default: top-level source dirs). Noise such as unused imports/variables
and mypy notes is dropped unless include_style=True. Missing analyzers are pip-installed into
the repo env. Returns {issues: [{file, line, code, message, tool}], counts_by_code, commands,
commit, truncated}. Static issues are candidates: confirm with a test before reporting.
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": {
"repo": "<repo>"
},
"name": "run_static_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| paths | No | ||
| tools | No | pyflakes,mypy | |
| max_results | No | ||
| include_style | No |