Get plan and allowance
get_planWhat the user may read and what their history holds. allowance is the figure
that matters: the free transactions, the packs they bought (theirs for ever) and the
years of their annual plan while that plan is live — purchased is everything they
ever bought, which is the larger of the two once a plan has run out. Past the
allowance their history is simply not read any further; everything already computed
stays, and reading goes on the moment the plan is paid for again. used is what they
have paid for — charged once ever, when a transaction became their history, and
kept when the wallet that brought it is removed — so it can exceed what their reports
compute over. held is the transactions we hold that the plan has no room for: no
figure counts them, and a pack brings them in with nothing read again. paid_by,
where it is set, is the accountant whose own plan pays for this account's reading,
one client at a time: while it holds, the limits above are that plan's and not this
account's, and a pack bought here would sit unused — say so rather than offering one.
Always this user's own account, never a client's: what an account bought, what it
costs and what it has left is the owner's alone here exactly as it is on the site, and
an accountant reads neither (``GET /billing`` is the signed-in account's). Whose plan
pays for a client's reading — the one fact an accountant needs — is ``pays`` in
list_clients and ``paid_by`` in get_tax_reports.
``plans`` are
the annual plans on sale, each with the ``addresses`` an account on it may add (null:
no cap), and ``free_addresses`` the cap without one: an address refused for the cap is
explained by these. ``plan`` is the one the user is on: ``until`` the end of the year
paid for, ``renews`` whether it bills the next year by itself (false: cancelled, it
ends then), ``next`` the plan that next year bills where a move down waits, and
``store`` that it was bought in the iOS app — the App Store bills such a plan, and
only the user can change or cancel it there, on their iPhone, so ``renews`` and
``next`` say nothing about it. Each of ``purchases`` names its ``key`` (a pack, or the
plan a year or a move up was of). A plan or a pack is moved or cancelled where it was
bought, never through an assistant.
Nothing is bought through this tool: paying is the person's own act, and
start_purchase shows them our page.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_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | Refused, with where to read it instead: a client's money is their own, as it is on the site. Whose plan pays for a client's reading is ``pays`` in list_clients and ``paid_by`` in get_tax_reports. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| free | Yes | ||
| held | Yes | ||
| plan | No | ||
| used | Yes | ||
| packs | Yes | ||
| plans | No | ||
| in_app | Yes | ||
| paid_by | No | ||
| selling | Yes | ||
| allowance | Yes | ||
| purchased | Yes | ||
| purchases | Yes | ||
| in_app_plans | No | ||
| free_addresses | Yes |