rule_add
Add a shared When/Do/Not rule with an enforcement path, judgment-only reason, or planned check and size to standardize agent behavior across projects.
Instructions
Add a shared rule in the When/Do/Not shape. Needs enforced_by (paths), judgment_only (why no code can), or planned (the check to write) with size S, M or L.
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": {
"agent": "<agent>",
"when": "<when>",
"do": "<do>",
"topic": "<topic>",
"reason": "<reason>"
},
"name": "rule_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| do | Yes | ||
| not_ | No | ||
| size | No | ||
| when | Yes | ||
| agent | Yes | ||
| topic | Yes | ||
| reason | Yes | ||
| planned | No | ||
| project | No | ||
| replaces | No | ||
| enforced_by | No | ||
| judgment_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |