Skip to main content
Glama

Sales Tax Calculator

SalesTaxCalculator
Read-only

Sales Tax Calculator: Sales Tax Calculator is a US sales tax calculation API: send an order amount with a ZIP code or state and get the combined rate, the tax amount and the order total back as JSON. Paid plans split both the rate and the tax amount by state, county, city and special district. (Cost: 2 credits)

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": {
      "amount": "<amount>"
    },
    "name": "SalesTaxCalculator"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoValid US 5-digit ZIP code (required unless state is given)
stateNo2-letter US state code (e.g., CA, NY, TX); used when zip is not given, state rate only
amountYesPurchase amount to calculate tax on

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNoError message, null on success
statusNo"ok" on success

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare this as a read-only, non-destructive, open-world operation. The description adds useful behavioral context beyond them, including the JSON response fields, paid-plan rate breakdowns, and a 2-credit cost.

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

Conciseness3/5

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

The description is reasonably short and front-loads the core calculation, but it redundantly repeats “Sales Tax Calculator” twice before providing useful information. The remaining content is efficient, though the opening could be tightened.

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 simple three-parameter calculation tool with an output schema and annotations, the description covers inputs, outputs, cost, and paid-plan behavior adequately. The main missing context is how it differs from the similar SalesTaxLookup sibling.

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 the schema already explains amount, zip, and state. The description restates the same input concept without adding meaningful syntax, constraints, or examples beyond what is already structured.

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 verb and resource: calculate US sales tax from an amount plus ZIP code or state, returning combined rate, tax amount, and order total. It is clear what the tool does, but it does not distinguish itself from the sibling SalesTaxLookup tool.

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 implies usage by saying to send an order amount with a ZIP code or state, and the schema clarifies that state is used when ZIP is not given. However, it provides no explicit when-to-use or when-not-to-use guidance relative to alternatives such as SalesTaxLookup.

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.