accounting_reports_generate
Generate accounting reports—transactions, lots, realized gains, token balances, statements, and P&L—returning a download URL or writing the file to disk.
Instructions
Generate a report and return its download URL, or write it to disk with --out. Waits for reports large enough to be queued, up to --timeout. Reports: transactions (all activity), lots (open inventory as of a date), lot-timeline (per-lot open and close events), realized-gains (RGL), tokens (per-token balances with cost basis and unrealized gain), statement (transactions + tokens + gains, always PDF), pnl (income and expenses by category plus realized gains; needs categorization enabled for the org). Each report ignores filters it does not support; each filter names the reports that read it. Examples: { report: 'realized-gains', period: 'lastYear', fileFormat: 'pdf', out: './rgl.pdf' }; { report: 'lots', openAsOf: '2026-12-31' }
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": {
"report": "<report>"
},
"name": "accounting_reports_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | Write the report to this path instead of returning a URL. A directory (or a path ending in '/') writes under the report's generated filename. Refuses to replace an existing file unless --force is set. | |
| memo | No | Substring search across memos. transactions only. | |
| force | No | Overwrite the --out file if it already exists | |
| period | No | Date range shorthand resolved in your local timezone. Mutually exclusive with --startDate / --endDate. | |
| report | Yes | Which report to generate | |
| search | No | Substring search across token symbols and names. tokens only. | |
| tokens | No | Comma-separated chainId:address pairs (e.g. '8453:0x8335...'). transactions, lots, and lot-timeline only. | |
| endDate | No | EXCLUSIVE upper bound on the reporting period. ISO 8601. | |
| inbound | No | Include only inbound activity. Setting both --inbound and --outbound is the same as neither. transactions only. | |
| timeout | No | Seconds to wait for a queued report before giving up and returning its job id. | |
| chainIds | No | Comma-separated chain ids (e.g. '8453,1'). Omit for all chains. All reports except realized-gains. | |
| openAsOf | No | The instant to read open inventory at. ISO 8601. Defaults to now. lots only. | |
| outbound | No | Include only outbound activity. transactions only. | |
| byAccount | No | One row per account and token instead of one per token. tokens only. | |
| maxAmount | No | Inclusive upper bound on absolute USD value. transactions only. | |
| minAmount | No | Inclusive lower bound on absolute USD value. transactions only. | |
| startDate | No | Inclusive lower bound on the reporting period. ISO 8601. All reports except lots. | |
| workspace | No | Workspace alias to run this command in (see `splits auth workspaces`). Overrides SPLITS_WORKSPACE and the active workspace. | |
| accountIds | No | Comma-separated account ids to limit the report to (ids come from 'accounts list', not addresses). Omit for active accounts only; imported, archived, and automation accounts are left out unless passed explicitly. All reports. | |
| fileFormat | No | File format to generate. The statement is always a PDF regardless of this flag. | csv |
| transactionHash | No | On-chain transaction hash. transactions only. |