Get tax reports
get_tax_reportsThe user's tax country and each tax year's report: the form's lines with their
values, what needs the user's attention by reason (left out of the totals), and the
analysis run (pending while it computes, failed with why). filing_year is the year
a return is filed for now, the last one that has ended: a later year is still running,
so its figures are what has happened so far and no return exists for it yet. held
is the transactions of their history their plan has no room for: no line of any year
counts them, and a pack brings them in with nothing read again — say so when it is not 0,
or the figures read as the whole history when they are not. paid_by, where it is
set, is the accountant or the accounting firm whose own plan pays for this account's
reading: what stopped at a limit stopped at theirs, and nothing the user buys would
lift it.
A year's ``name`` is what its own country calls it, and is what to say to the user:
the United Kingdom's 2025 runs 6 April 2025 to 5 April 2026 and HMRC writes it
"2025-26". ``tax_year`` is the number every argument of every tool takes.
A year carries the user's own word that its return is filed (``filed`` when it was
said, ``filed_by`` whose hand where it was not this account's owner's, ``filed_through``
the assistant it was said through): their claim and never ours, and it moves no figure
of the year.
While ``reading.reading`` is true the history is still being read and **no year comes
with it** until one source of it is read whole: ``years`` and ``attention`` are empty,
``reading.chains`` and ``reading.statements`` say what is still being read, and nothing
of a year is to be stated to the user meanwhile. Once a source is read whole the years
come, **provisional** (``reading.provisional``, and ``provisional`` here and on every
tool stating a year says it in words): every figure may still move as the rest is read
in, the questions those sources could answer are held, and nothing final is made — no
document, no declaration file, no filed mark. ``reading.problem``, where it is set, is a
reading that went wrong on our side — say it as it reads, and that it is ours to fix
and not theirs.
``reading.updating`` is another thing: chains of a history already read whole where
only what is new is being brought in. Nothing is withheld for it — the years come as
they stand and may be stated — but say that they are as of ``reading.read_at`` (when
the history was last brought in) and that a new operation is being worked out, since
the figures will move when it is.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_tax_reports"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | An 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| held | Yes | ||
| used | Yes | ||
| years | Yes | ||
| country | Yes | ||
| paid_by | Yes | ||
| reading | Yes | ||
| attention | Yes | ||
| time_zone | No | ||
| time_zones | No | ||
| filing_year | Yes | ||
| provisional | No | ||
| generated_at | Yes |