track_payment
Track a received payment to calculate sales tax liability and log the classified transaction to your AgentTax account.
Instructions
Track a payment you received and calculate your sales tax liability. Call this after receiving any payment — Stripe, x402, or direct. Automatically classifies the transaction, calculates tax owed, and logs it to your AgentTax account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": "<amount>",
"buyer_state": "<buyer_state>"
},
"name": "track_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Payment amount in USD | |
| is_b2b | No | Buyer is a business (affects rates in MD, IA, NJ) | |
| source | No | Payment processor used | |
| buyer_zip | No | Buyer's 5-digit zip code for local tax rates (more precise) | |
| payment_id | No | Your payment reference ID for deduplication (Stripe payment_intent ID, x402 receipt, invoice number, etc.) | |
| buyer_state | Yes | 2-letter US state where the buyer is located (e.g. TX, NY, CA) | |
| description | No | What you sold — used to classify the transaction (e.g. 'API access', 'MCP tool subscription', 'compute credits', 'AI consulting') |