calculate_tax
Computes US sales or use tax for AI agent transactions, returning tax amount, rate, jurisdiction, audit trail, and advisories.
Instructions
Calculate US sales tax or use tax for an AI agent transaction. Returns tax amount, rate, jurisdiction, audit trail, and advisories.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Your role in the transaction | |
| amount | Yes | Transaction amount in USD | |
| is_b2b | No | Business-to-business transaction (affects rates in MD, IA) | |
| buyer_zip | No | 5-digit US zip code for local rate lookup | |
| work_type | No | What the AI agent does — drives per-state tax classification | |
| buyer_state | Yes | 2-letter US state code (e.g. TX, NY, CA) | |
| counterparty_id | Yes | Identifier for the other party in the transaction | |
| seller_remitting | No | Whether the seller is already collecting tax | |
| transaction_type | Yes | Type of transaction |