tax_gains
Crypto capital gains & cost basis (FIFO/LIFO/HIFO/ACB) ($0.05 per call, paid via MPP on Tempo). Full crypto tax calculation from your transaction history (up to 5,000 rows, JSON or Coinbase/Koinly/generic CSV): realized gains per disposal with lot matching (FIFO, LIFO, HIFO, average or Canadian ACB with the superficial-loss rule), short vs long term (US), per-year totals by asset, staking/airdrop/reward income, remaining holdings and cost basis, unrealized P&L, and warnings for missing purchase history. Crypto-to-crypto trades, crypto fees and spending are taxable disposals. Information, not tax advice. HTTP POST https://mpp-cryptotax.fmf-x402.workers.dev/tax/gains. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.
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": "tax_gains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | Alternative to transactions: CSV text. Auto-detects Coinbase transaction report, Koinly universal format (Sent/Received/Net Worth) or generic headers (date,type,asset,amount,price,total,fee). | |
| year | No | Tax year filter for disposals/reports | |
| method | No | Lot method (default fifo; acb forced for country=ca) | |
| prices | No | Optional current unit prices {BTC: 90000} for unrealized P&L on remaining holdings | |
| country | No | us: short/long-term split (held > 1 year); ca: pooled ACB, superficial-loss rule, 50% inclusion | |
| currency | No | Reporting currency label (prices/totals must already be in it), default USD (CAD for ca) | |
| transactions | No | Rows: {date, type: buy|sell|trade|income|spend|gift_in|gift_out|lost|transfer_in|transfer_out|fee, asset, amount, price or total (reporting currency), fee?, fee_asset?/fee_amount? (crypto fee), cost_basis? (transfer_in from outside), form_1099da?: basis_reported|basis_not_reported}. Trades: {sell_asset, sell_amount, buy_asset, buy_amount, value}. |