AgentTax

v1.3.1
io.github.AgentTax/agenttax-mcp Checked 14 hours ago Published 26 days ago

US 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…

ParameterTypeDescription
amount *numberTransaction amount in USD
buyer_state *string2-letter US state code of the buyer (or DC)
counterparty_id *stringIdentifier for the other party (letters, digits and _-.:@ only)
role *stringYour role in the transaction
transaction_type *stringType of transaction
buyer_zipstringBuyer's 5-digit zip code for local rate lookup
custom_software_attestationobjectRequired 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_typestringWith 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_accessbooleanWith 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…
intentstring"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_b2bbooleanBusiness-to-business transaction (triggers state B2B rules, e.g. IA, MD)
it_support_scopestringWith 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_contractobjectWith 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_typestringWith 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_remittingbooleanBuyer side: whether the seller is already collecting the tax
seller_stateSeller's 2-letter state code (needed for origin-sourced intrastate sales)
seller_zipSeller's 5-digit zip. Required for TX/UT/AZ/TN origin-sourced intrastate sales and intrastate OH license/digital_good sales
use_contextstringMaryland only, with is_b2b=true: whether the purchase is solely for use in an enterprise computer system
work_typestringWhat 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…

ParameterTypeDescription
amount *numberPayment amount in USD
buyer_state *string2-letter US state where the buyer is located (e.g. TX, NY, CA)
buyer_zipstringBuyer's 5-digit zip code for local tax rates (more precise)
descriptionstringWhat 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_b2bbooleanBuyer is a business (affects rates in MD, IA, NJ, OH). Omit if unknown: false declares a consumer
payment_idstringYour payment reference ID (Stripe payment_intent ID, x402 receipt, invoice number); letters, digits and _-.:@ only
sourcestringPayment processor used
work_typestringWhat 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.

ParameterTypeDescription
records *arrayTransactions 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.

ParameterTypeDescription
limitinteger
rolestring
sincestringISO 8601 date or date-time lower bound, e.g. 2026-08-01
statestringFilter 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.

ParameterTypeDescription
asset_symbol *stringAsset ticker: equity (AAPL), crypto (BTC), or token (COMPUTE-TOKEN)
price_per_unit *numberPrice per unit in USD
quantity *numberNumber of units
trade_type *stringBuy or sell
accounting_methodstringCost basis method (default: fifo)
asset_classstringstock/security/equity enables wash-sale tracking; digital_asset/crypto do not
estimated_annual_incomenumberEnables bracket-aware federal estimate and NIIT detection
fee_amountnumberFees in USD (default 0)
filing_statusstring
notesstringFree-text notes about the trade
resident_statestringResident state for the state capital gains estimate
specific_lot_idstringLot ID, required when accounting_method is specific_id
tax_entity_typestring
trade_datestringISO 8601 trade timestamp; defaults to now

list_trades List logged trades

List trades you have logged, with realized gains on sells. Requires API key.

ParameterTypeDescription
asset_symbolstring
limitintegerDefault 50
offsetinteger
trade_typestring

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.

ParameterTypeDescription
yearintegerTax 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.

ParameterTypeDescription
explainbooleanInclude human-readable explanations for the rate and taxability
formatstringdefault: full; compact: machine-optimized; verified: with verification details
statestring2-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.

ParameterTypeDescription
zip *string5-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.

ParameterTypeDescription
explainbooleanWith state: add an explanation block
statestring2-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.

ParameterTypeDescription
statestring2-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.

ParameterTypeDescription
nexus *objectState 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.