Skip to main content
Glama

Sales Tax Calculator API - add or reverse sales tax for one or many amounts

sales_tax_calculator
Read-onlyIdempotent

Add sales tax to net prices or back out sales tax from totals (single or batch amounts), using a custom rate %, US state base rate (all 50 states + DC) and optional local city/county rate. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.001/call via x402 at https://radarbg.com/x402/sales-tax-calculator.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "mode": "add",
      "amounts": "49.99\n120\n8.50",
      "ratePercent": "8.25"
    },
    "name": "sales_tax_calculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoadd (price -> total) or reverse (total -> net + tax)add
stateNo2-letter US state code for base rate, e.g. CA, TX, NY (optional)
amountsYesPrices or totals, newline-separated (or JSON array)
ratePercentNoCustom tax rate % (optional if state is given)8.25
localPercentNoOptional local city/county rate % to add

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already mark it readOnly, idempotent, and open-world, and the description adds genuine context beyond that: server-side execution, files deleted immediately, nothing stored, a 5 calls/day per IP free tier, and the two payment paths (Radar API key via X-API-Key or x402 at $0.001/call). Rate limiting and auth requirements are exactly the behavioral traits an agent cannot infer from annotations or schema.

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?

The core capability and mode distinction are front-loaded in the first clause, and the pricing/auth sentence, while long and URL-heavy, carries information an agent needs for invocation. Slight redundancy between the description and the schema text on rate parameters keeps it from a 5.

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

Completeness3/5

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

There is no output schema, so the description carries the burden of explaining what comes back, and it never describes the response shape (total, net, tax amount, per-line breakdown for batch input). Auth, cost, and privacy are covered well, but for a calculator whose entire product is its numeric result, that omission is a real 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?

Schema description coverage is 100%, so every one of the 5 parameters is already documented, making 3 the baseline. The description echoes the rate inputs ('custom rate %', state base rate, 'optional local city/county rate') but adds no format, precedence, or validation detail beyond what the schema already says.

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 precise verb+resource pair: 'Add sales tax to net prices or back out sales tax from totals,' and scopes it to 'custom rate %, US state base rate (all 50 states + DC) and optional local city/county rate.' That US-state framing implicitly separates it from the eu_vat_calculator sibling, but it never names a sibling or explicitly rules one out, keeping it below 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clarifies the two operating modes ('add (price -> total) or reverse (total -> net + tax)') and that single or batch amounts are supported, which is real operational guidance. However, there is no guidance on when to pick this over eu_vat_calculator or the other calculator siblings, and no stated prerequisites beyond the pricing/auth block.

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