Skip to main content
Glama

Get the Planner

get_planner
Read-only

What 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

NameRequiredDescriptionDefault
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.

Output Schema

NameRequiredDescriptionDefault
planYes
viewYes
readyYes
stateYes
assetsNo
glanceNo
countryYes
premiumYes
read_atNo
readingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • addedOutput schema / $defs / Day
      Added value: +{
      +  "description": "What the account's holdings were worth at the end of one day of its country, at that\nday's quote and official rate (``value_by_day``). ``unvalued``: holdings it had that day\nthat are in no figure (no price then, or not all of them read); ``value`` None: it held\nsomething and nothing of it could be valued — so a day is never a zero it was not.",
      +  "properties": {
      +    "on": {
      +      "format": "date",
      +      "title": "On",
      +      "type": "string"
      +    },
      +    "unvalued": {
      +      "title": "Unvalued",
      +      "type": "integer"
      +    },
      +    "value": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Value"
      +    }
      +  },
      +  "required": [
      +    "on",
      +    "value",
      +    "unvalued"
      +  ],
      +  "title": "Day",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / Holding
      Added value: +{
      +  "description": "One holding of ``Standing``: a token at a private place of the account's own, in whole\nunits, and what selling it today would fetch, what its units cost (None: some of them\nnobody knows) and the part of the value a holding period has already freed.",
      +  "properties": {
      +    "address": {
      +      "title": "Address",
      +      "type": "string"
      +    },
      +    "amount": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      +          "type": "string"
      +        }
      +      ],
      +      "title": "Amount"
      +    },
      +    "asset": {
      +      "title": "Asset",
      +      "type": "integer"
      +    },
      +    "cost": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Cost"
      +    },
      +    "free": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Free"
      +    },
      +    "source": {
      +      "title": "Source",
      +      "type": "string"
      +    },
      +    "symbol": {
      +      "title": "Symbol",
      +      "type": "string"
      +    },
      +    "token": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "title": "Token"
      +    },
      +    "value": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      +          "type": "string"
      +        }
      +      ],
      +      "title": "Value"
      +    }
      +  },
      +  "required": [
      +    "source",
      +    "address",
      +    "token",
      +    "asset",
      +    "symbol",
      +    "amount",
      +    "value",
      +    "cost",
      +    "free"
      +  ],
      +  "title": "Holding",
      +  "type": "object"
      +}
    • changedOutput schema / $defs / Standing / description
      Previous value: -"What the account holds today in money, read off one more replay: everything it could\nsell, sold today at the price a plan is priced at. ``value`` what that would fetch,\n``cost`` what those units cost (None: some of it nobody knows), ``free`` the part of the\nvalue a holding period has already freed. ``free_by_month``: that part at the end of each\nof the next twelve months if nothing is sold, empty where the law has no holding period.\n``left_out``: holdings it could not sell (no price, spam, the tax currency itself).\n\nThe picture a person reads their position from; no figure of record, and nothing a\nyear is taxed by."New value: +"What the account holds today in money, read off one more replay: everything it could\nsell, sold today at the price a plan is priced at. ``value`` what that would fetch,\n``cost`` what those units cost (None: some of it nobody knows), ``free`` the part of the\nvalue a holding period has already freed. ``free_by_month``: that part at the end of each\nof the next twelve months if nothing is sold, empty where the law has no holding period.\n``left_out``: holdings it could not sell (no price, spam, the tax currency itself).\n\n``frees``: whether the law frees units by a holding period at all; where it does not,\n``free`` is a zero of nothing and each holding's is None. ``holdings``: the same, holding\nby holding. ``headline`` and ``tax``: what that sale\nwould add to the running tax year's figure and to its tax (None: the law states no tax\nin money for that year, the rate depending on the person's other income), over the parts\nof it the replay could compute — ``unsettled`` counts the rest. ``days``: what\nthe holdings were worth at the end of each day, in this currency (``value_by_day``).\n\nThe picture a person reads their position from; no figure of record, and nothing a\nyear is taxed by."
    • addedOutput schema / $defs / Standing / properties / days
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/Day"
      +  },
      +  "title": "Days",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / Standing / properties / frees
      Added value: +{
      +  "title": "Frees",
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / Standing / properties / headline
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Headline"
      +}
    • addedOutput schema / $defs / Standing / properties / holdings
      Added value: +{
      +  "items": {
      +    "$ref": "#/$defs/Holding"
      +  },
      +  "title": "Holdings",
      +  "type": "array"
      +}
    • addedOutput schema / $defs / Standing / properties / tax
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Tax"
      +}
    • addedOutput schema / $defs / Standing / properties / unsettled
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "title": "Unsettled"
      +}
    • changedOutput schema / $defs / Standing / required
      Previous value: -[
      -  "currency",
      -  "value",
      -  "cost",
      -  "free",
      -  "free_by_month",
      -  "left_out",
      -  "priced_at"
      -]New value: +[
      +  "currency",
      +  "value",
      +  "cost",
      +  "free",
      +  "free_by_month",
      +  "left_out",
      +  "priced_at",
      +  "frees",
      +  "holdings",
      +  "headline",
      +  "tax",
      +  "unsettled",
      +  "days"
      +]
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say readOnlyHint/openWorldHint, yet the description discloses far more than safety: a pollable state machine ("working" — call again in a few seconds vs. reading/no_country/no_analysis/nothing/failed which should not be retried), refusal behavior (plan_operation refused on non-premium; nothing computed while an operation is refused), and the key caveat that all planned figures are priced at priced_at rather than the planned day. That is exactly the context annotations cannot carry.

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?

Front-loaded with purpose and trigger conditions, and grouped into coherent paragraphs with bold labels. However, it is very long for a single-parameter read tool, and a large share of the length re-documents return-value structure (states, block kinds, years, effects) that the output schema already defines, plus cross-tool material about the pricing page that is only tangentially this tool's job.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex, high-stakes tax tool the definition leaves nothing an agent needs to call it correctly: what each state means and whether to retry, how to respond when premium is absent, how to treat refused/passed operations, and how to caveat priced figures. Return values are documented in the output schema, so the prose is reinforcement rather than a gap.

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?

One optional parameter (client) with 100% schema description coverage, so the schema already explains it fully. The description never mentions the client/accountant-case parameter at all, adding no meaning beyond the schema. Baseline 3 applies where the schema does the heavy lifting.

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 sentence is slightly abstract ("What lies ahead of the user under their country's law") but the body makes the purpose unambiguous: a forward-looking tax planner that returns law-derived facts, planned operations, and per-year effects. It distinguishes itself from close siblings by name (get_plan for plan/premium status, get_scan_status for history reads, plan_operation, remove_planned_operation, start_purchase), so an agent can route correctly.

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?

Gives an explicit trigger list: asks about what a sale or swap would cost in tax, when a holding becomes tax-free, how much of a yearly threshold is left, or what is due when. It also names the alternatives for adjacent needs (get_plan for premium pricing, start_purchase is called out as NOT the way Premium is bought) and gives a stop rule when premium is false.

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