Update a control rule
update_ruleUpdates name, enabled, config or schema_version; omit fields to keep them and use name:null to clear a name. Config is replaced, not merged. ID, kind and scope are immutable. An empty update is rejected. Requires the controls:write scope.
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": {
"uuid": "<uuid>"
},
"name": "update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name; null clears it. | |
| uuid | Yes | Rule id | |
| config | No | Config for the rule kind. Replaces the full config on update. Read existing rules and get_rule_vocabulary before changing it; organization constraints remain in force. Use schema_version=4 for model lists: models and exclude_models name model keys, endpoints and exclude_endpoints name endpoint ids; use 5 only when exclude_models/exclude_endpoints hold "*" wildcards or the rule has except_models/except_endpoints; schema_version=2 remains supported for provider company allowlists. Opper retention_days and upstream handling.max_retention_days are separate controls. Each anyOf branch is one rule type's exact schema without field descriptions, titled by its id; get_rule_vocabulary rule_schemas has each id with descriptions and a validated example. Read the one you need before writing config. | |
| enabled | No | Whether the rule is enforced. Omitted on create means false. | |
| schema_version | No | Config schema version. Omit on create for version 1. Version 2 comply allowlists identify providers by company slug. Use 4 for model lists (models and exclude_models name model keys, endpoints and exclude_endpoints name endpoint ids), and 5 only when exclude_models or exclude_endpoints hold "*" wildcards or the rule has except_models or except_endpoints. | |
| confirm_file_deletion | No | Deprecated and ignored: no rule deletes stored files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | Empty for a single resource. Endpoint-specific context appears here rather than as a sibling of `data`. |