lint_macro
Statically analyze grandMA2 macros for unsafe patterns like ungated destructive commands, broken jumps, missing quotes, raw patterns, and infinite loops, then return issues and an overall status.
Instructions
Static analysis of a grandMA2 macro for unsafe patterns (SAFE_READ).
Checks for: destructive commands without gates, broken jump targets,
missing quotes, unsafe raw patterns, potential infinite loops.
Args:
macro_id: Macro number to lint.
Returns:
str: JSON with issues[], overall (clean/warning/error), lines_checked.
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": {
"macro_id": "<macro_id>"
},
"name": "lint_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macro_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |