Skip to main content
Glama

FMF Tools Crypto Tax

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

NameRequiredDescriptionDefault
csvNoAlternative 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).
yearNoTax year filter for disposals/reports
methodNoLot method (default fifo; acb forced for country=ca)
pricesNoOptional current unit prices {BTC: 90000} for unrealized P&L on remaining holdings
countryNous: short/long-term split (held > 1 year); ca: pooled ACB, superficial-loss rule, 50% inclusion
currencyNoReporting currency label (prices/totals must already be in it), default USD (CAD for ca)
transactionsNoRows: {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}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does so: it discloses cost ($0.05 per call), the payment mechanism (MPP on Tempo), the authorization prerequisite (MPP Payment Authorization header, and that the wrapper does not settle payment itself), the underlying HTTP route, and a 5,000-row ceiling. It also states domain behavior rules (crypto-to-crypto trades, crypto fees, and spending count as taxable disposals) and a disclaimer that this is information, not tax advice.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in a short header phrase, followed by capability details and then payment/logistics. It is dense and information-rich, and every element is relevant. It loses a point because a large parenthetical enumerating output fields plus a trailing transport paragraph make the middle of the description harder to scan than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 7-parameter financial computation with no annotations and no output schema, the description is thorough: it enumerates the returned report sections (per-disposal gains, per-year totals, income, remaining holdings, unrealized P&L, warnings), so the agent knows what comes back without an output schema. Gaps remain around error/failure behavior and how partial or ambiguous transaction data is handled.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents every parameter including the enum meanings and the CSV auto-detection formats, making 3 the baseline. The description adds only light context — naming the lot methods and the ACB superficial-loss rule, and mentioning the 5,000-row cap — rather than explaining parameter interactions or defaults beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource — capital gains and cost basis calculation from transaction history, with named lot methods and a full list of computed outputs (realized gains, per-year totals, income, unrealized P&L). This is far more than a restatement of the name. It stops short of a 5 because it never names or contrasts the sibling tools (tax_form_8949, tax_harvest, tax_import, tax_schedule_3), leaving the agent to infer the division of labor.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implicit usage is clear from the content: supply either transactions or CSV, and the tool computes a tax report. It also states a hard limit of 5,000 rows and notes that warnings appear for missing purchase history. However, there is no explicit when-to-use/when-not guidance and no routing signal relative to the tax_* siblings, so an agent still has to guess whether this or tax_harvest/tax_import is the right entry point.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources