calculate_sales_tax
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
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | US ZIP code to look up the combined state and local rate, for example 98101. Details: https://api.freedailypro.com/docs | |
| mode | No | add: prices are before tax, add it. extract: prices already include tax, split it out. | |
| items | No | Several items (mode add only). Response adds 'cart' with taxable and exempt subtotals, tax, total, steps and lines. | |
| state | No | 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. | |
| amount | No | Amount to tax (or the tax-inclusive amount in extract mode). Required unless items is sent. | |
| shipping | No | With items: shipping charged. | |
| taxPercent | No | Tax rate in percent. Required unless state or an exact zip is sent. Takes priority over state. | |
| discountPct | No | With items: percentage discount on every line. | |
| shippingTaxable | No | With items: true adds shipping to the taxable amount. Default false (rules differ by state, so you choose). |