check_code
Analyze MATLAB code for errors and style warnings, providing detailed issue reports with line numbers and severity.
Instructions
Lint MATLAB code using checkcode/mlint.
Writes the code to a temporary file and runs mcp_checkcode() on it, returning a list of issues (line, column, message, severity).
Note: see execute_code above for why the return annotation is
CheckResult (not a union with ToolResult).
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": {
"code": "<code>"
},
"name": "check_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| error | No | ||
| issues | No | ||
| job_id | No | ||
| status | Yes |