brain_record_rule
Enforce a strict constraint that AI agents must always obey, storing each rule with its category, project scope, and severity for automatic surfacing before code generation.
Instructions
Enforce a strict constraint that agents must always obey.
Args: rule: The constraint statement (e.g., 'All code comments and docs must be in English') category: Category like 'language', 'architecture', 'security', 'git', 'style', 'general' project: Project identifier or 'global' severity: 'CRITICAL', 'HIGH', 'MEDIUM', or 'LOW'
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": {
"rule": "<rule>"
},
"name": "brain_record_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| project | No | global | |
| category | No | general | |
| severity | No | CRITICAL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |