Skip to main content
Glama

Save Tax Rate

save_tax_rate
Destructive

Create or edit one tax rate. Omit id to create (name and percentage required); pass id to edit, where every omitted field keeps its value. Names are unique per tenant. isDefault=true makes it the default rate new items take; the preview names the rate that loses the flag. The tenant always keeps a default: the current one stays default until another rate takes the flag, and with no default yet the saved rate becomes it. On an edit the preview counts the items, item groups and customers or vendors that use the rate. Requires an operator (unpinned) credential. For bulk onboarding use upsert_tax_rates.

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": {
      "input": "<input>"
    },
    "name": "save_tax_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoThe tax rate id (GUID) to edit; omit to create.
inputYesThe fields to set.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
deletedNo
previewNo
taxRateNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say destructiveHint=true and readOnlyHint=false; the description supplies the real behavior behind that: uniqueness per tenant, the cascade where making a rate default strips the flag from another ('the preview names the rate that loses the flag'), the invariant that a default always exists, and that the preview counts dependent items, item groups and customers/vendors on edit. That dependency-count disclosure is exactly the destructive-impact context the annotation cannot convey.

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?

Front-loaded with the create/edit distinction, then the risky default-flag semantics, then credential and sibling routing. Dense and mostly waste-free, though the default-flag rule is stated twice in close succession ('new items take' then 'the tenant always keeps a default...'), which slightly pads the middle.

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, two-mode mutation with a nested input object, the description covers mode selection, field-retention rules, uniqueness, default-flag cascade, edit-time dependency counting and auth. Return values need not be explained because an output schema exists and the two-step preview/commit flow is fully specified in the schema's preview/previewReceipt/idempotencyKey descriptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3; the description still adds framing by pairing id presence with create-vs-edit mode and stating that omitted fields keep their value on edit, which the schema states per-field but never as a mode rule. It largely restates schema content on name/percentage requiredness, so it does not exceed a 4.

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?

Opens with a specific verb and resource ('Create or edit one tax rate') and immediately disambiguates the two modes via the id parameter. It also names the sibling it is not (upsert_tax_rates) for bulk work, so an agent can route without opening either schema.

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 explicit when-to-use for create (omit id) and edit (pass id), plus a named alternative with its condition: 'For bulk onboarding use upsert_tax_rates.' It adds a prerequisite the agent could not otherwise know ('Requires an operator (unpinned) credential'), leaving nothing to inference.

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