create_rule
Define conditions and actions to automate receipt categorization, project assignment, or processing preferences.
Instructions
Create an automation rule.
Args: rule_type: One of: vendor_category, default_project, processing_preference. condition: Condition object (e.g. {"vendor": "Starbucks"}). action: Action object (e.g. {"set_category": "Coffee"}). priority: Optional priority integer (higher = first).
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": {
"rule_type": "<rule_type>",
"condition": "<condition>",
"action": "<action>"
},
"name": "create_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_type | Yes | ||
| condition | Yes | ||
| action | Yes | ||
| priority | No |