Get the Planner
get_plannerWhat lies ahead of the user under their country's law, what they plan to do, and what that would do to their tax years. Use it when they ask what a sale or a swap they are thinking of would cost in tax, when a holding becomes tax-free, how much of a yearly threshold is left, or what is due when.
**The Planner is part of Premium.** ``premium`` false: the account has none, and the
answer holds ``glance``, with ``plan`` where something was planned under Premium.
``glance`` is four figures of where they stand today: ``year`` the running tax year's
own figure so far; ``holdings`` what they hold is worth, and ``free`` of it could be
sold free of tax today (null where their law frees nothing by a holding period);
``limit`` the year's first threshold with the figure ``measured`` against it;
``ahead`` the nearest day of the law. ``read_at`` is when the history those rest on
was last brought in, which for such an account moves only when they ask for it
(read_again). Nothing behind the figures is given then — no ``view`` — and
plan_operation is refused: state the figures with that date, say the rest is
Premium, and stop. **Premium is ordered on the site's pricing page, as a plan is**
(get_plan's ``premium`` has each tier's price beside its plan's, and ``selling``
whether anything is sold today): state the price if they ask and name that page.
start_purchase opens the plain plans and the packs, so it is not how Premium is
bought. ``plan`` is then only what they planned while they had Premium, whose
reminders still go out; they may remove one (remove_planned_operation) and change
none.
``plan``: the operations they planned (plan_operation), each with its ``id``.
``view`` is the answer, given only while ``state`` is ``ready``. ``working``: it is
being worked out — call again in a few seconds. Any other state waits on something a
second call does not bring, so say it and stop: ``reading`` their history is still
being read, and no figure of it is stated until it is in (get_scan_status);
``no_country`` they have chosen no tax country; ``no_analysis`` their years have not
been computed yet, or the last computation failed (get_tax_reports); ``nothing``
nothing of their history is computed, because their plan has no room for it
(get_plan); ``failed`` working it out failed on our side, which is ours to fix and
is tried again by itself.
Each operation's ``reminded`` true means no word of its day is owed any more: the
email went out, or the day had already come when it was planned. It does not say an
email was sent.
In ``view``: ``blocks`` are the facts of their country's law as their years stand, and
``blocks_planned`` the same with the plan carried out — each block has a ``kind``:
``deadline`` (a return and its last day), ``year_turn`` (the running tax year's last
day), ``law_change`` (a day the law changes), ``claim`` (a choice of theirs and its
last day), ``buy_back`` (what is bought within ``days`` after a sale is matched to that
sale; ``open`` the sales still inside them), ``lots`` (each holding the law frees after
a holding period, with ``free_from``, the first day a sale of it is free of tax),
``limits`` (a yearly threshold or band and the figure ``measured`` against it) and
``losses`` (what becomes of a loss of the year, and what earlier years carried in).
A country returns only the kinds its law has. ``years``: each tax year's
``headline`` as it stands and ``headline_planned`` with the plan, ``tax`` and
``tax_planned`` where that country's tax can be stated in money, and the form lines
the plan moves. ``effects``: per planned operation, what it would fetch, what the
units cost (null: unknown for some of them) and how much of it is tax-free.
``refused``: the operation the plan cannot be replayed with, and why — until it is
changed or removed nothing of the plan is computed. ``passed``: operations whose day
is over.
**Every planned figure is at the price of ``priced_at``, not of the planned day**,
which nobody knows: say so whenever you state one. State what an operation would come
to and stop there — this is no advice to make it, and the tax is one of several things
that decide a sale.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_planner"
}
}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 |
|---|---|---|---|
| plan | Yes | ||
| view | Yes | ||
| ready | Yes | ||
| state | Yes | ||
| assets | No | ||
| glance | No | ||
| country | Yes | ||
| premium | Yes | ||
| read_at | No | ||
| reading | Yes |