Skip to main content
Glama

Set a tax choice

set_choice
Destructive

A provision of their own law the user sets, ONLY as the user said: key and option as list_choices gives them, and tax_year where that choice is of one year (per_year). The reports are computed again, because this moves figures.

    Refused where the law does not admit it, and a choice whose own time limit has passed
    cannot be answered at all. Put the options and what each does to the user first: this
    is their decision about their own return, never one to infer from what they asked.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "key": "<key>",
      "option": "<option>"
    },
    "name": "set_choice"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe question's ``key``, as list_choices gives it.
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.
optionYesThe answer: one of that question's ``options`` in list_choices.
tax_yearNoThe tax year the choice is of, where list_choices says the question is ``per_year``. Left out for a choice of the whole history.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / key / description
      Added value: +"The question's ``key``, as list_choices gives it."
    • addedInput schema / properties / option / description
      Added value: +"The answer: one of that question's ``options`` in list_choices."
    • addedInput schema / properties / tax_year / description
      Added value: +"The tax year the choice is of, where list_choices says the question is ``per_year``. Left out for a choice of the whole history."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the description's main added value is substantive: it discloses the downstream side effect that reports are recomputed and figures move, plus two hard failure modes (law does not admit it, time limit expired). It does not describe the error/response shape or whether the change is reversible, so it stops short of a 5.

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

Conciseness4/5

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

Three short blocks, each with a job: what is set, what happens as a result, and what is refused / how to involve the user. Some phrasing is oblique ('a provision of their own law') and would be clearer as a direct statement, but there is no filler.

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 destructive mutation the agent has everything needed: the source of parameter values, the consent rule that the answer is never inferred, the recomputation side effect, and the two refusal cases. An output schema exists, so return-value description is correctly omitted, and the client-account scoping is covered by the schema.

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?

Schema coverage is 100% and each property already documents itself, including 'as list_choices gives it' and the per_year condition for tax_year. The description largely restates that same mapping, though the emphasis that ``option`` is only what the user said adds a mild authority constraint. Baseline 3 is the right level here.

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 description states a specific action on a specific resource: the user's own tax provision is set, using the ``key``/``option`` pair that list_choices supplies. Combined with the title, an agent can tell this apart from the read-only list_choices sibling. It is slightly indirect by never saying plainly 'records the user's answer to a tax question', which keeps it from a 5.

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 is explicit about when to use it (only when the user has actually stated the choice, with values sourced from list_choices) and when not to (never infer the answer from what the user asked). It also names the refusal conditions — the law does not admit the choice, or the choice's time limit has passed — and instructs the agent to present options to the user before invoking.

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