Create rule
create_ruleStore a standing rule: a condition and the conclusion or action that applies when it holds (e.g. a project constraint or a convention).
The rule is saved as active in NEXUS's rule registry and returned by
list_rules. Its confidence decreases over time unless it is re-verified
with affirm_rule.
Args:
name: Short descriptive name for the rule.
condition: When the rule applies, in natural language.
action: The conclusion or action that applies when the condition
holds, in natural language.
domain: Optional category for the rule (default 'general').
confidence: Initial confidence weight in [0.0, 1.0] (default 1.0).
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": {
"name": "<name>",
"condition": "<condition>",
"action": "<action>"
},
"name": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| action | Yes | ||
| domain | No | ||
| condition | Yes | ||
| confidence | No |