manage_rules
A project's hard rules: short never/always rules from the user, shown first in every brief and never cut. add: when the user states one (one sentence, max 300 chars; 25 rules, 2,000 chars in total); it waits in the review queue until the user approves it themselves (on their review page; no app can). list: active rules. remove: ONLY when the user asks in this chat; quote them in user_request; it waits like add; the rule is kept as removed. Preferences and lessons go in log_work. Requires project. Returns the rule or {rules}.
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": {
"action": "<action>",
"project": "<project>"
},
"name": "manage_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | add: the rule, one short sentence. | |
| model | No | Model name if known. Never guess. | |
| action | Yes | The operation; see the tool description. | |
| project | Yes | Project name or id. Required. | |
| rule_id | No | remove: the rule's id (R<id> in the brief). | |
| user_request | No | remove (required): the user's own words asking to remove it. | |
| include_removed | No | list: also removed rules. |