Skip to main content
Glama

FMF Tools Crypto Tax

tax_harvest

Crypto tax-loss harvesting candidates ($0.05 per call, paid via MPP on Tempo). From your history and current prices, list the lots (or ACB pools) sitting at an unrealized loss, largest first, with short/long term if sold today, plus total harvestable loss and the rules to watch (Canada superficial loss; US wash-sale check). Information, not tax advice. HTTP POST https://mpp-cryptotax.fmf-x402.workers.dev/tax/harvest. 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

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": {
      "prices": "<prices>"
    },
    "name": "tax_harvest"
  }
}

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)
pricesYesRequired: current unit prices {BTC: 60000, ETH: 1800}
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

A4.1/5.0
Behavior4/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 well: it discloses the $0.05 per-call cost, the MPP/Tempo payment mechanism, and critically that the MCP wrapper does not settle payment itself. It omits failure behavior when payment is missing or rejected and any rate limits, which keeps it below a 5.

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 core capability is front-loaded in the first sentence, followed by output shape, caveats, and payment mechanics. The HTTP URL and payment boilerplate lengthen it, but they are load-bearing given the pay-per-call model rather than filler.

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 7-parameter tool with nested transaction objects and no output schema, the description covers what comes back (loss lots, term, total harvestable loss, applicable rules) and how to pay. The main residual gap is error/payment-failure behavior, which an agent would need before retrying.

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 csv, transactions, method, country, currency, year and prices. The description only reinforces that current prices drive the loss calculation; it adds no format or interaction detail beyond the schema, so the baseline 3 applies.

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

Purpose5/5

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

The description names a specific verb and resource ('list the lots ... sitting at an unrealized loss') and pins down the output ordering ('largest first'), term classification, and totals. That framing is inherently distinct from the gain/report siblings, so an agent can route on it without opening a schema.

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

Usage Guidelines4/5

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

It gives clear invocation guidance: call with an MPP Payment Authorization header or use mppx against the HTTP route, and it states the input premise ('from your history and current prices'). It stops short of naming when to prefer tax_gains or tax_form_8949 instead, so there is no explicit exclusion.

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