AgentTax
v1.3.1US sales/use tax, nexus thresholds, capital gains and 1099-DA tools for AI agent transactions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
calculate_tax Calculate sales or use tax
Calculate US sales tax (seller) or use tax (buyer) for an AI agent transaction. Without an API key (demo mode, 10 calls/day) the result is an estimate: total_tax, combined_rate, applied_rate, confidence, resolution, and, when a $0 is a default or an exemption, tax_if_nexus or exemption; there is no jurisdiction breakdown, audit trail, citation or advisories, and seller calls use AgentTax's shared demo nexus profile, not yours. A free API key adds the full response: jurisdiction and sales_tax/use_tax breakdown, audit trail, advisories with citations, history and your own nexus. Sellers get $0 s…
| Parameter | Type | Description |
|---|---|---|
amount * | number | Transaction amount in USD |
buyer_state * | string | 2-letter US state code of the buyer (or DC) |
counterparty_id * | string | Identifier for the other party (letters, digits and _-.:@ only) |
role * | string | Your role in the transaction |
transaction_type * | string | Type of transaction |
buyer_zip | string | Buyer's 5-digit zip code for local rate lookup |
custom_software_attestation | object | Required with work_type custom_software; without a complete attestation the sale is answered as prewritten software / SaaS. Complete = written_for_buyer true, not_offered_to_others true, deliverable s… |
digital_content_type | string | With transaction_type digital_good: what the download is. Several states tax e-books, music and video but not digital art or printables |
includes_prewritten_software_access | boolean | With transaction_type web_hosting: true when the plan gives the buyer vendor prewritten software beyond an incidental control panel or file manager (site builder, CMS or app platform, email or office… |
intent | string | "estimate" = quote before a wallet signs; nothing is saved to history or nexus revenue; counts toward your quota. "record" (the default with an API key) logs the calculation. Keyless demo calls are al… |
is_b2b | boolean | Business-to-business transaction (triggers state B2B rules, e.g. IA, MD) |
it_support_scope | string | With transaction_type or work_type it_support: what the remote IT support engagement is. Absent = managed_bundle, the per-state default; some states answer specific scopes differently |
maintenance_contract | object | With transaction_type software_maintenance: facts about a maintenance contract on prewritten software. Every field is optional; a missing fact is answered conservatively (updates assumed included). se… |
payment_provider_type | string | With transaction_type payment_processing_fee: who provides the payment processing. Changes the answer in some states; absent = the conservative answer. Your representation, recorded with the transacti… |
seller_remitting | boolean | Buyer side: whether the seller is already collecting the tax |
seller_state | Seller's 2-letter state code (needed for origin-sourced intrastate sales) | |
seller_zip | Seller's 5-digit zip. Required for TX/UT/AZ/TN origin-sourced intrastate sales and intrastate OH license/digital_good sales | |
use_context | string | Maryland only, with is_b2b=true: whether the purchase is solely for use in an enterprise computer system |
work_type | string | What the agent's work is economically; drives per-state taxability (compute, research, information_service, content, consulting, trading, payment_processing, web_hosting, software_maintenance, it_supp… |
track_payment Track a payment you received
Track a payment you received and calculate your sales tax liability. Call this after receiving any payment — Stripe, x402, or direct. Calculates tax owed and logs it to your AgentTax account (requires API key for history; keyless calls are estimates). A $0 because no nexus is configured for the buyer's state is reported as such, with tax_if_nexus (what the payment owes once nexus is set); it is not reported as an untaxed sale. Pass work_type when you know what you sold, for an exact answer; it is the only way to get the consulting exemption (AI consulting is exempt in Arizona) or the trading…
| Parameter | Type | Description |
|---|---|---|
amount * | number | Payment amount in USD |
buyer_state * | string | 2-letter US state where the buyer is located (e.g. TX, NY, CA) |
buyer_zip | string | Buyer's 5-digit zip code for local tax rates (more precise) |
description | string | What you sold (e.g. 'API access', 'MCP tool subscription', 'compute credits'). Used only when work_type is not given; a guess never takes the consulting or trading exemption |
is_b2b | boolean | Buyer is a business (affects rates in MD, IA, NJ, OH). Omit if unknown: false declares a consumer |
payment_id | string | Your payment reference ID (Stripe payment_intent ID, x402 receipt, invoice number); letters, digits and _-.:@ only |
source | string | Payment processor used |
work_type | string | What you sold, declared: compute, research, information_service, content, consulting, trading, payment_processing, web_hosting, software_maintenance, it_support, custom_software. Overrides description… |
ingest_transactions Bulk-log x402 purchases
Bulk-log up to 100 transactions (e.g. purchases from third-party x402 sellers) into your AgentTax history in one call. Idempotent on external_tx_id. Requires API key.
| Parameter | Type | Description |
|---|---|---|
records * | array | Transactions to log (max 100) |
list_transactions List your transactions
List your logged transactions with a running summary (seller/buyer counts, total taxable, total tax). Requires API key.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
role | string | |
since | string | ISO 8601 date or date-time lower bound, e.g. 2026-08-01 |
state | string | Filter to one state |
log_trade Log a trade for capital gains
Log a buy or sell trade for capital gains tracking. Sell trades return realized gain/loss with cost basis, holding period, and federal/state estimates. Feeds the 1099-DA export. Requires API key.
| Parameter | Type | Description |
|---|---|---|
asset_symbol * | string | Asset ticker: equity (AAPL), crypto (BTC), or token (COMPUTE-TOKEN) |
price_per_unit * | number | Price per unit in USD |
quantity * | number | Number of units |
trade_type * | string | Buy or sell |
accounting_method | string | Cost basis method (default: fifo) |
asset_class | string | stock/security/equity enables wash-sale tracking; digital_asset/crypto do not |
estimated_annual_income | number | Enables bracket-aware federal estimate and NIIT detection |
fee_amount | number | Fees in USD (default 0) |
filing_status | string | |
notes | string | Free-text notes about the trade |
resident_state | string | Resident state for the state capital gains estimate |
specific_lot_id | string | Lot ID, required when accounting_method is specific_id |
tax_entity_type | string | |
trade_date | string | ISO 8601 trade timestamp; defaults to now |
list_trades List logged trades
List trades you have logged, with realized gains on sells. Requires API key.
| Parameter | Type | Description |
|---|---|---|
asset_symbol | string | |
limit | integer | Default 50 |
offset | integer | |
trade_type | string |
export_1099_da Export draft Form 1099-DA
Export a DRAFT IRS Form 1099-DA payload for realized digital-asset gains from your logged trades: payer and recipient blocks, per-trade lines (boxes 1a–5), and a short/long-term summary. Draft only; not a filed return. Requires API key.
| Parameter | Type | Description |
|---|---|---|
year | integer | Tax year; defaults to the current year |
get_rates Get state sales tax rates
Get US state sales tax rates with digital-goods taxability, SaaS notes, and verification metadata, for all 51 jurisdictions or one state. No API key needed.
| Parameter | Type | Description |
|---|---|---|
explain | boolean | Include human-readable explanations for the rate and taxability |
format | string | default: full; compact: machine-optimized; verified: with verification details |
state | string | 2-letter state code for a single state. Omit for all states. |
get_local_rate Get combined rate for a zip code
Get the combined state + local sales tax rate for a US zip code, with the breakdown and self-administered locality flags (e.g. Colorado home-rule cities). No API key needed.
| Parameter | Type | Description |
|---|---|---|
zip * | string | 5-digit US zip code |
get_capital_gains_rates Get state capital gains rates
Get state capital gains rates (short and long term) with federal context and per-state caveats, for all states or one. No API key needed.
| Parameter | Type | Description |
|---|---|---|
explain | boolean | With state: add an explanation block |
state | string | 2-letter state code. Omit for all states. |
get_nexus_thresholds Get economic nexus thresholds
Get each state's economic nexus threshold (revenue and transaction count), whether it has sales tax, marketplace-facilitator and origin-sourcing rules, notes, and the state DOR source link. Use it to see where your sales could require registration. No API key needed.
| Parameter | Type | Description |
|---|---|---|
state | string | 2-letter state code. Omit for all 51 jurisdictions. |
get_nexus Get your configured nexus states
List the states where you have told AgentTax you have nexus, with each state's rate and how nexus monitoring measures thresholds. Requires API key.
configure_nexus Configure your nexus states
Set which US states you have economic nexus in. Sellers must configure nexus to get non-zero sales tax results. Merge semantics: only the states you send change; send hasNexus:false to remove one. Requires API key.
| Parameter | Type | Description |
|---|---|---|
nexus * | object | State codes as keys, e.g. { TX: { hasNexus: true, reason: '...' } } |
get_pricing Get AgentTax pricing
Get AgentTax's machine-readable pricing contract: tiers, call limits, and the x402 per-call price. No API key needed.
check_health Check API health
Check AgentTax API health, available endpoints, pricing tiers, and registry validation status.