Skip to main content
Glama
Splits MCP Server

Splits MCP Server

Official

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

NameRequiredDescriptionDefault
outNoWrite 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.
memoNoSubstring search across memos. transactions only.
forceNoOverwrite the --out file if it already exists
periodNoDate range shorthand resolved in your local timezone. Mutually exclusive with --startDate / --endDate.
reportYesWhich report to generate
searchNoSubstring search across token symbols and names. tokens only.
tokensNoComma-separated chainId:address pairs (e.g. '8453:0x8335...'). transactions, lots, and lot-timeline only.
endDateNoEXCLUSIVE upper bound on the reporting period. ISO 8601.
inboundNoInclude only inbound activity. Setting both --inbound and --outbound is the same as neither. transactions only.
timeoutNoSeconds to wait for a queued report before giving up and returning its job id.
chainIdsNoComma-separated chain ids (e.g. '8453,1'). Omit for all chains. All reports except realized-gains.
openAsOfNoThe instant to read open inventory at. ISO 8601. Defaults to now. lots only.
outboundNoInclude only outbound activity. transactions only.
byAccountNoOne row per account and token instead of one per token. tokens only.
maxAmountNoInclusive upper bound on absolute USD value. transactions only.
minAmountNoInclusive lower bound on absolute USD value. transactions only.
startDateNoInclusive lower bound on the reporting period. ISO 8601. All reports except lots.
workspaceNoWorkspace alias to run this command in (see `splits auth workspaces`). Overrides SPLITS_WORKSPACE and the active workspace.
accountIdsNoComma-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.
fileFormatNoFile format to generate. The statement is always a PDF regardless of this flag.csv
transactionHashNoOn-chain transaction hash. transactions only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses the blocking/waiting behavior for queued reports, the timeout ceiling behavior (returns a job id instead of a URL), the refusal to overwrite an existing file without --force, and that 'statement' is always PDF. It omits permission/auth requirements and any rate or size limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with core behavior and return semantics, followed by the report catalog, the filter-applicability note, and examples. The report list partially duplicates the enum in the schema, but each entry adds a substantive description, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 21-parameter tool with no output schema, it covers the essentials: what is returned (URL, job id, or a file path), how long it waits, and which parameters apply to which report. Permissions and the mechanics of retrieving a queued report's result later are the main omissions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds value by explaining report-to-filter applicability at a high level and giving two concrete call examples that show how report, period, fileFormat, out, and openAsOf compose. It does not restate the individual field meanings, which is appropriate given the rich schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Generate a report') plus the concrete outcome (download URL or file written with --out), then enumerates the seven report types and what each contains. An agent can distinguish this from siblings like accounting_reports_job or accounting_reports_list without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the key selection rules: each report ignores filters it does not support, each filter names the reports that read it, and 'pnl' needs categorization enabled for the org. Worked examples show valid combinations. It does not explicitly route to the sibling job/list tools when a report queues out, which keeps it from a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools