accounting_rules_create
Create an accounting rule that assigns a direction, target category, and conditions to match transfers. Duplicate rules with the same direction and conditions are rejected.
Instructions
Add a rule. Sets a direction, a target category, and at least one condition. A rule with the same direction and conditions as an existing one is rejected.
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": {
"direction": "<direction>",
"categoryId": "<categoryId>"
},
"name": "accounting_rules_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Match transfers on this chain | |
| direction | Yes | Which transfers the rule matches | |
| workspace | No | Workspace alias to run this command in (see `splits auth workspaces`). Overrides SPLITS_WORKSPACE and the active workspace. | |
| categoryId | Yes | Category id from 'accounting categories list' | |
| 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 |