Skip to main content
Glama

Get tax year breakdown

get_year_breakdown
Read-only

What a tax year's lines add up, a page of each kind at a time (next_offset for the next): each disposal (proceeds, cost, gain, holding period), each income (one with named_elsewhere belongs to another form of the user's return — name it with its amount, never add it to a total of this report) and each booking, with its transaction's link. A prediction market's share carries its market's result (market_result: won, lost, split, open: not resolved when last read, unread: no transaction names its market) and when it resolved; one disposed of in the transaction that reported the result was lost then, where its country's law counts the loss at the resolution.

    Refused while the account's history is still being read: see get_tax_reports.

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": {
      "year": "<year>"
    },
    "name": "get_year_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesThe tax year, as the number get_tax_reports gives in ``tax_year``: a year that does not start in January is named by the year it starts in.
clientNoAn account this user may read as its accountant (a client's ``user_id`` from list_clients). Left out: their own account, which is every private user's case.
offsetNoWhere the page starts: 0 for the first page, then the ``next_offset`` the page before gave.

Output Schema

NameRequiredDescriptionDefault
incomeYes
totalsYes
bookingsYes
disposalsYes
next_offsetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / offset / description
      Added value: +"Where the page starts: 0 for the first page, then the ``next_offset`` the page before gave."
    • addedInput schema / properties / year / description
      Added value: +"The tax year, as the number get_tax_reports gives in ``tax_year``: a year that does not start in January is named by the year it starts in."
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint the description discloses a real failure mode (refused while history is still being read), paginated delivery, and critical data-handling rules: ``named_elsewhere`` lines belong to another form and must never be added to this report's totals. It also explains the ``market_result`` values including the ambiguous cases (open = not resolved when last read, unread = no transaction names its market) and the loss-at-resolution edge case.

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

Conciseness3/5

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

The purpose is front-loaded and no sentence is filler, but the single run-on second sentence with stacked parentheticals (the ``named_elsewhere`` rule, the ``market_result`` enumeration, the resolution-loss rule) is hard to parse and mixes return-value documentation into the purpose statement. Splitting or bulleting would materially improve scannability.

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 read-only, paginated report reader with an output schema and full schema coverage, this is nearly complete: it covers the refusal state, paging, and the semantic traps in the returned fields. It stops short of stating when to use this tool versus get_tax_reports for aggregated figures, leaving the primary routing decision to inference.

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 baseline is 3, but the description adds meaning by tying ``offset`` to the output's ``next_offset`` contract and by explaining that ``year`` is a non-calendar tax year as named by get_tax_reports. The only undocumented nuance is that ``client`` is not mentioned in the description at all.

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

Purpose4/5

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

The opening clause, 'What a tax year's lines add up, a page of each kind at a time', names the resource (a tax year's breakdown lines) and enumerates what is returned: disposals, incomes and bookings. It is distinguishable from get_tax_reports, which is referenced only as the source of the ``tax_year`` value and as the place to look when reading is refused. The phrasing is indirect ('what ... add up') rather than a clean verb+resource, which keeps it short of a 5.

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

Usage Guidelines3/5

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

Guidance is present but specialized: pagination is spelled out (``next_offset`` for the next page) and a precondition is given (refused while the account's history is still being read, see get_tax_reports). There is no explicit statement of when an agent should choose this over get_tax_reports for a summary view versus per-line detail; the routing must be inferred.

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