Split a row
purch_split_transactionSay how one statement row breaks down: several categories that add up to it exactly. The row itself never changes. One line on a statement is often several things: a payroll run is wages, employer taxes and the processor's fee; a warehouse trip is supplies and groceries. The statement only knows the total, so the breakdown comes from the person or from a document they have — the payroll report, the receipt. Never invent the split; ask, or leave the row whole.
The legs must add to the row's amount exactly. They are refused otherwise, with the gap named, for the same reason a statement is: a breakdown that does not add up is a transcription error. The row keeps its amount, its date and the line it came from; only the ledger sees the legs, each posting to its own category against the account the money moved on. Pass remove to drop a split and put the row back to its single category. Effects: split legs recorded, replacing any earlier split.
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": {
"transaction_id": "<transaction_id>"
},
"name": "purch_split_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parts | No | The parts it breaks into. At least two, adding to the row exactly. | |
| reason | No | Where the breakdown came from — the payroll report, the receipt. | |
| remove | No | Drop the split and leave the row whole. | |
| transaction_id | Yes | The row, e.g. T-0014. |