accounting_rules_update
Update an accounting rule's direction, target category, or matching conditions while keeping omitted fields unchanged; use clear to remove specific conditions.
Instructions
Change a rule's direction, category, or conditions. Omitted fields stay as they are; --clear removes conditions.
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": {
"ruleId": "<ruleId>"
},
"name": "accounting_rules_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Comma-separated conditions to remove: counterpartyAddress, sourceSmartAccountAddress, chainId, tokenAddress | |
| ruleId | Yes | Rule id from 'accounting rules list' | |
| chainId | No | Match transfers on this chain | |
| direction | No | New direction | |
| workspace | No | Workspace alias to run this command in (see `splits auth workspaces`). Overrides SPLITS_WORKSPACE and the active workspace. | |
| categoryId | No | New target category id | |
| tokenAddress | No | Match transfers of this token. Requires --chain-id. | |
| counterpartyAddress | No | Match transfers to or from this address | |
| sourceSmartAccountAddress | No | Match transfers on this org account: the sender for outbound, the receiver for inbound |