Skip to main content
Glama

Get plan and allowance

get_plan
Read-only

What 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

NameRequiredDescriptionDefault
clientNoRefused, 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

NameRequiredDescriptionDefault
freeYes
heldYes
planNo
usedYes
packsYes
plansNo
in_appYes
paid_byNo
sellingYes
allowanceYes
purchasedYes
purchasesYes
in_app_plansNo
free_addressesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint and openWorldHint, it explains that past-allowance history is not read further, already computed data remains, reading resumes once the plan is paid for, and how used, held, and paid_by affect what is visible. It also explicitly says nothing is bought through this tool, consistent with readOnlyHint=true.

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

Conciseness2/5

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

The description is a dense, multi-paragraph block that explains many return-field semantics even though an output schema exists. It is front-loaded, but it is far longer and more meandering than needed for a read-only, one-parameter tool.

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?

Given the annotations, output schema, and single optional parameter, the description is more than complete. It covers scope, alternatives, billing logic, and data-retention effects, with no essential invocation context missing.

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?

There is one optional parameter and schema description coverage is 100%; the schema already documents that client is refused and where to read that data instead. The description repeats the account-versus-client boundary but adds little parameter-specific meaning beyond the structured schema.

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

Purpose5/5

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

The opening sentence states the resource clearly: the user's reading allowance and transaction history. The description also distinguishes this tool from client-facing reads by saying it is always the user's own account and pointing to list_clients and get_tax_reports for client payer data.

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?

It gives explicit exclusions: the client parameter is refused; client money is read via pays in list_clients and paid_by in get_tax_reports; purchases and cancellations happen where bought, not through this tool; and payment uses start_purchase. This leaves little ambiguity about when to use this tool versus those alternatives.

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