Skip to main content
Glama

Delete Tax Rate

delete_tax_rate
Destructive

Delete a tax rate by id (GUID) or exact name, as the Settings page does (a soft delete). The default rate and the tenant's last rate cannot be deleted: make another rate the default first with save_tax_rate. The preview counts the items, item groups and customers or vendors that still use the rate; they keep it, so move them first if they should land elsewhere. Requires an operator (unpinned) credential.

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": {
      "taxRate": "<taxRate>"
    },
    "name": "delete_tax_rate"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
taxRateYesThe tax rate to delete: its id (GUID) or its exact name.
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.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description still adds real value beyond that: it discloses the soft-delete nature, the deletion-blocking rules, and the credential requirement. However, it never states the mandatory two-step preview/commit requirement or the dependency-handling outcome, which are the most consequential behaviors; those live only in the schema.

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

Conciseness5/5

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

Four dense sentences, front-loaded with the action and identifier formats, then constraints, then credential needs. No filler; every clause carries operational information.

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

Completeness4/5

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

For a destructive mutation with an output schema and fully documented parameters, the description covers constraints and credentials well. The one meaningful gap is that it does not say the delete must go through preview-then-commit with an idempotency key, leaving the agent to discover the mandatory flow from the schema alone.

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 adds meaning beyond the schema by explaining what the preview actually counts (items, item groups, customers/vendors still using the rate) and what happens to them, which the schema only describes as 'a structured preview'. It restates id-or-exact-name for taxRate, which is duplicative but harmless.

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?

States a specific verb and resource ('Delete a tax rate') plus accepted identifiers (GUID or exact name) and the deletion semantics ('a soft delete'). It also names the counterpart tool save_tax_rate, so the agent can distinguish this action from related rate operations.

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-not rules: the default rate and the tenant's last rate cannot be deleted, and the remediation is named (make another rate the default with save_tax_rate). It also flags the dependency constraint (items, item groups, customers/vendors keep the rate) and the credential prerequisite (operator, unpinned).

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