get_violations
Retrieve protocol violations recorded during enforcement and filter them by severity, resolution status, worker, feature, or protocol to diagnose governance issues.
Instructions
Get protocol violations with optional filtering. Shows violations recorded during enforcement.
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": {
"projectDir": "<projectDir>"
},
"name": "get_violations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum violations to return (default: 20) | |
| format | No | Output format (default: pretty) | |
| offset | No | Skip first N violations (default: 0) | |
| resolved | No | Filter by resolved status (true/false, omit for all) | |
| severity | No | Filter by severity | |
| workerId | No | Filter by worker ID | |
| featureId | No | Filter by feature ID | |
| projectDir | Yes | Absolute path to the project directory | |
| protocolId | No | Filter by protocol ID |