Python type check (structured)
python_typecheckRun mypy on Python code and return structured type errors with file, line, column, message, and error code, making diagnostics easier to parse and act on.
Instructions
Run mypy and return structured type errors with file, line, column, message, and error code. Much more compact than raw mypy output.
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": {
"cwd": "<cwd>"
},
"name": "python_typecheck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Project root directory | |
| paths | No | Specific path(s) to check; a string or array (default: '.') | |
| maxItems | No | Item cap; overrides detailLevel | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| errors | Yes | ||
| success | Yes | ||
| retained | No | ||
| truncated | No | ||
| errorCount | Yes |