Skip to main content
Glama

get_tax_report

Read-only

Get tax report data. Supports 2 views:

  • summary: top-level headline metrics for a date range

  • detailed: paginated report rows for one report type

For both views, provide fromDate and toDate as dates (YYYY-MM-DD, e.g. 2025-07-01). Both days are included, in the user's tax time zone. Detailed reportType must be one of: report-summary, capital-gains, income, expense, transaction, inventory, inventory-detailed, trading-stock, trading-pnl, non-taxable-disposals, disposal-summary. Detailed pagination accepts page (1-based) and count (10/25/50/100). Detailed responses return pageSize for the requested maximum, returnedCount for rows returned, and totalCount for all matching rows. Detailed capital-gains rows carry the ids needed to trace a gain: buyUid/sellUid (acquisition/disposal transaction ids), buyActionId/sellActionId (pass either to inspect_transaction), and buyTxHash/sellTxHash (chain tx hash for wallet imports, venue id otherwise). File-only reports (e.g. audit, mygov) have no detailed rows — use export_report to download them.

Some report types require an Investor or Trader plan. Selecting one on a free or Hobbyist plan returns an upgrade message — direct the user to the upgrade URL and tell them an upgrade is picked up automatically within about an hour, or immediately if they reconnect Summ in their MCP client.

For period listing/locking/unlocking, use manage_tax_periods. For tax settings, use get_tax_settings instead.

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": {
      "fromDate": "<fromDate>",
      "toDate": "<toDate>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "get_tax_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoDetailed pagination page (1-based).
viewNoTax report view type. Defaults to summary when omitted.
countNoDetailed pagination page size. Options: 10, 25, 50, 100.
toDateYesLast day of the report (required), as a date: YYYY-MM-DD, e.g. 2025-07-01. The day is included, in the user's tax time zone.
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
fromDateYesFirst day of the report (required), as a date: YYYY-MM-DD, e.g. 2025-07-01. The day is included, in the user's tax time zone.
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
reportTypeNoDetailed report type (required for detailed view). Options: report-summary, capital-gains, income, expense, transaction, inventory, inventory-detailed, trading-stock, trading-pnl, non-taxable-disposals, disposal-summary. File-only reports (e.g. audit, mygov) are downloads — use export_report for those.
zeroCostBuysLimitNoMaximum number of zero-cost-buy rows to include (1-20).
includeZeroCostBuysNoInclude top zero-cost-buy assets in summary output.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare a safe read (readOnlyHint true, destructiveHint false, openWorldHint false). The description goes well beyond them: date inclusivity in the user's tax time zone, pagination envelope fields (pageSize/returnedCount/totalCount), the trace ids carried on capital-gains rows and that buyActionId/sellActionId feed inspect_transaction, and the plan/upgrade behavior including the ~1 hour propagation or immediate pickup on reconnect.

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 the two-view model, then bulleted and grouped by concern (dates, reportType, pagination, response fields, plan gating, alternatives), so it is scannable despite its length. A few clauses, such as the plan paragraph, could be tightened, but nearly every sentence carries actionable information.

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 an 11-parameter tool with no output schema, it covers detailed-view return fields, id traceability and error/plan behavior thoroughly. Gaps remain for the summary view's contents (only described as 'headline metrics') and the two zero-cost-buy parameters, though those are documented in the schema.

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

Parameters3/5

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

Schema description coverage is 100%, so the baseline is 3, and the description largely restates the schema's own wording for fromDate/toDate, view, reportType and count. It adds a little meaning, such as which reportTypes are file-only and how page/count only apply to detailed, but says nothing about includeZeroCostBuys, zeroCostBuysLimit, clientId, context or llm_model.

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?

States a specific verb and resource ('Get tax report data') and immediately enumerates the two views it supports, with what each returns. An agent can distinguish this from export_report, manage_tax_periods and get_tax_settings without opening any schema.

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

Usage Guidelines5/5

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

Explicit branching guidance: summary vs detailed, reportType required for detailed, file-only reports must go to export_report, periods to manage_tax_periods, settings to get_tax_settings. It also names the plan gate and the exact fallback behavior to tell the user about.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources