Skip to main content
Glama

FreeDailyPro Calculators

calculate_sales_tax

Read-onlyIdempotent

Sales tax calculator with US state base-rate lookup (local rates excluded) — add or extract tax

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "calculate_sales_tax"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNoUS ZIP code to look up the combined state and local rate, for example 98101. Details: https://api.freedailypro.com/docs
modeNoadd: prices are before tax, add it. extract: prices already include tax, split it out.
itemsNoSeveral items (mode add only). Response adds 'cart' with taxable and exempt subtotals, tax, total, steps and lines.
stateNoUS state (two-letter code such as TX, or the full name; DC included). Looks up the STATE base sales tax rate only (Tax Foundation, 1 July 2026). Local city, county and district rates are not included.
amountNoAmount to tax (or the tax-inclusive amount in extract mode). Required unless items is sent.
shippingNoWith items: shipping charged.
taxPercentNoTax rate in percent. Required unless state or an exact zip is sent. Takes priority over state.
discountPctNoWith items: percentage discount on every line.
shippingTaxableNoWith items: true adds shipping to the taxable amount. Default false (rules differ by state, so you choose).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / items / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / items / items / properties / name / description
      Added value: +"A name or label, for example: Jane Smith."
    • addedInput schema / properties / items / items / properties / price / description
      Added value: +"A price as a plain number, for example: 19.99."
    • addedInput schema / properties / items / items / properties / qty / description
      Added value: +"Quantity as a whole number, for example: 2."
    • addedInput schema / properties / mode / description
      Added value: +"add: prices are before tax, add it. extract: prices already include tax, split it out."
    • changedInput schema / properties / zip / description
      Previous value: -"US ZIP code (5 digits or ZIP+4). Used to find the STATE. The rate is filled in only where it is exact: 0% for DE, NH and OR, or the state rate for states with no local add-on in the Tax Foundation midyear 2026 table. For any other state no rate is guessed (a ZIP can cross city, county and district lines): the response's zip.message says so, and you send taxPercent or state. Response adds 'zip' with the state, status, message, source and the state's official lookup page where one was verified."New value: +"US ZIP code to look up the combined state and local rate, for example 98101. Details: https://api.freedailypro.com/docs"
  2. Changed8 schema fields changed
    • addedInput schema / properties / amount / description
      Added value: +"Amount to tax (or the tax-inclusive amount in extract mode). Required unless items is sent."
    • addedInput schema / properties / discountPct
      Added value: +{
      +  "description": "With items: percentage discount on every line.",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / items
      Added value: +{
      +  "description": "Several items (mode add only). Response adds 'cart' with taxable and exempt subtotals, tax, total, steps and lines.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "price": {
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "qty": {
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "taxable": {
      +        "description": "Default true. false marks the item exempt.",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "price"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 100,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • addedInput schema / properties / shipping
      Added value: +{
      +  "description": "With items: shipping charged.",
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / shippingTaxable
      Added value: +{
      +  "description": "With items: true adds shipping to the taxable amount. Default false (rules differ by state, so you choose).",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / taxPercent / description
      Previous value: -"Tax rate in percent. Required unless state is sent. Takes priority over state."New value: +"Tax rate in percent. Required unless state or an exact zip is sent. Takes priority over state."
    • addedInput schema / properties / zip
      Added value: +{
      +  "description": "US ZIP code (5 digits or ZIP+4). Used to find the STATE. The rate is filled in only where it is exact: 0% for DE, NH and OR, or the state rate for states with no local add-on in the Tax Foundation midyear 2026 table. For any other state no rate is guessed (a ZIP can cross city, county and district lines): the response's zip.message says so, and you send taxPercent or state. Response adds 'zip' with the state, status, message, source and the state's official lookup page where one was verified.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "amount"
      -]
  3. Changed3 schema fields changed
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "US state (two-letter code such as TX, or the full name; DC included). Looks up the STATE base sales tax rate only (Tax Foundation, 1 July 2026). Local city, county and district rates are not included.",
      +  "type": "string"
      +}
    • addedInput schema / properties / taxPercent / description
      Added value: +"Tax rate in percent. Required unless state is sent. Takes priority over state."
    • changedInput schema / required
      Previous value: -[
      -  "amount",
      -  "taxPercent"
      -]New value: +[
      +  "amount"
      +]
  4. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description's key contribution is the important caveat that only state base rates are used and local city/county/district rates are excluded. That is a genuine behavioral disclosure an agent needs. It does not mention any rate-limit, freshness, or fallback behavior beyond the state-rate date noted 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.

Conciseness4/5

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

A single dense sentence with the core function, the qualification about local rates, and the two operations – nothing wasted and front-loaded. The em-dash compression makes it terse but still parseable.

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 9-parameter tool with zero required parameters and full schema coverage, the definition plus schema is nearly sufficient; the schema even describes the 'cart' response shape in the items parameter. The remaining gap is that the description does not explain how the alternative rate-input paths interact, leaving that entirely to 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 description coverage is 100% and every parameter is documented in detail, so the schema carries the semantics. The description reinforces the state-vs-local restriction but adds nothing about mode switching, the items/amount mutual exclusivity, or priority rules beyond what the schema already states.

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 names a specific tool type ('sales tax calculator'), a concrete scope ('US state base-rate lookup'), and both supported operations ('add or extract tax'). It is clearly distinguishable from the income-tax converters in the sibling list, though it does not explicitly name the nearest alternative (converters_state_tax).

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?

The 'add or extract' phrase implies which mode to pick, but the description gives no guidance on the more consequential choice among the three rate sources (state, zip, taxPercent) or on when the tool should not be used. Usage is only inferable from the schema rather than stated in the definition.

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