add_style_rule
Records a writing rule the owner follows, with the sentence it came from, when it applies, and when it does not, so agents can reuse it. Scope each rule to one chat or make it global.
Instructions
Record a writing rule the owner follows, as you read it from their own messages. Every rule keeps the owner's sentence it rests on (evidence), the situation it applies to (applies_when), and the situation it does not apply to (does_not_apply_when) — a rule without its limits is how a measured statistic turns into a false instruction. Record a rule with chat_id to scope it to that conversation, without it to make it global. When a new rule contradicts an older one, pass the older rule_id in supersedes: the old rule stays in the history as superseded rather than being overwritten.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_style_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | Optional: 'stated' when the owner said the rule outright, 'derived' when you read it from their messages (default 'derived'). | |
| chat_id | No | Optional: scope the rule to one conversation. Omit for a global rule. | |
| rule_id | No | Optional: a stable id for the rule. Re-using an id updates that rule in place. | |
| evidence | No | The owner's own sentence the rule was read from, copied verbatim. | |
| statement | No | The rule itself, in your own words — what the owner does, not a statistic. | |
| confidence | No | Optional: your confidence in the rule, from 0 to 1 (default 0.5). | |
| supersedes | No | Optional: the rule_id this rule replaces. The older one is kept as superseded. | |
| applies_when | No | Optional: the situation the rule applies to. | |
| counter_example | No | Optional: a case from the owner's own messages where the rule does not hold. | |
| does_not_apply_when | No | Optional: the situation the rule does NOT apply to. |