Add a standing rule
add_ruleSaves a standing rule for connected tools to follow, scoped to everywhere, a project, or a situation. Attach supporting memory or fact IDs so the rule is rechecked when that evidence goes stale.
Instructions
Add one standing rule that the owner wants every connected tool to follow. Use only when the owner asked for a rule; check list_rules first. An identical rule is not added twice. Pass the ids of the memories or facts the rule rests on so it can be flagged for re-check when they go stale. The owner then syncs rules to tools from the Rules page. Use save_memory for a one-off fact instead. Returns "Rule saved (id)." or "That rule already exists (id)."; text over 800 characters is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| then | Yes | The rule itself, imperative, at most 800 characters. Required. | |
| when | No | Optional situation in which the rule applies. Default: always. | |
| scopeName | No | Name of the project or situation. Required when scopeTier is project or situation. | |
| scopeTier | No | Where the rule applies. Default everywhere. | |
| evidence_fact_ids | No | Optional ids of facts this rule is based on, as shown by search or fact_history. Stored as the rule's evidence; unknown ids are an error. | |
| evidence_memory_ids | No | Optional ids of memories this rule is based on, as shown by search. Stored as the rule's evidence; unknown ids are an error. |