Paid Crypto Tax Computation API via x402. Unpaid tool calls return 402.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Apply the Australian 12-month CGT discount by entity type after losses, from caller event proceeds and cost base. Price $0.03 USDC. POST /api/v1/crypto-tax/australia-cgt-discount. An unpaid call returns the x402 payment terms and does not run.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http crypto-tax https://www.brainiac.software/mcp/crypto-tax
Apply the Australian 12-month CGT discount by entity type after losses, from caller event proceeds and cost base. Price $0.03 USDC. POST /api/v1/crypto-tax/australia-cgt-discount. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| entity* | string | |
| events* | array | |
| resident* | boolean | |
| carriedForwardLosses | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"entity",
"resident",
"events"
],
"properties": {
"entity": {
"enum": [
"individual",
"trust",
"super_fund",
"company"
],
"type": "string"
},
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"acquired",
"eventDate",
"capitalProceeds",
"costBase"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"acquired": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"costBase": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"eventDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"capitalProceeds": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
"maxItems": 100000,
"minItems": 1
},
"resident": {
"type": "boolean"
},
"carriedForwardLosses": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
}
}
}Compute Canadian ACB and capital gains with superficial-loss detection for identical properties on a CAD ledger. Price $0.04 USDC. POST /api/v1/crypto-tax/canada-acb. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ledger* | array | |
| feePolicy | string | |
| treatment | string | |
| fiatCurrency | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds"
},
"treatment": {
"type": "string",
"const": "capital",
"default": "capital"
},
"fiatCurrency": {
"type": "string",
"default": "CAD",
"maxLength": 3,
"minLength": 3
}
}
}Match disposals to acquisition lots by FIFO, LIFO, HIFO or average cost and compute gains from a caller-supplied ledger and fiat values. No market prices are fetched. Price $0.05 USDC. POST /api/v1/crypto-tax/cost-basis-lots. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ledger* | array | |
| method* | string | |
| feePolicy | string | |
| fiatCurrency* | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fiatCurrency",
"method",
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"method": {
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string"
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds"
},
"fiatCurrency": {
"type": "string",
"maxLength": 3,
"minLength": 3
}
}
}Compute realised P/L for linear perpetuals/futures and options including fees and funding from caller trade inputs. Price $0.03 USDC. POST /api/v1/crypto-tax/derivatives-pnl. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| trades* | array |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"trades"
],
"properties": {
"trades": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"instrument",
"kind",
"side",
"qty",
"entryPrice",
"exitPrice"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"fees": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"kind": {
"enum": [
"linear_future",
"option"
],
"type": "string"
},
"side": {
"enum": [
"long",
"short"
],
"type": "string"
},
"premium": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"exitPrice": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"entryPrice": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"instrument": {
"type": "string",
"maxLength": 64,
"minLength": 1
},
"fundingPayments": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"default": [],
"maxItems": 10000
},
"settlementValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
}
}
},
"maxItems": 100000,
"minItems": 1
}
}
}Convert a caller CSV export into the shared ledger schema using a caller column mapping, or return a mapping template from headers. Price $0.03 USDC. POST /api/v1/crypto-tax/exchange-csv-normalize. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| csv* | string | |
| wallet | string | |
| mapping | object | |
| fiatCurrency | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"csv"
],
"properties": {
"csv": {
"type": "string",
"maxLength": 10485760
},
"wallet": {
"type": "string",
"default": "exchange",
"maxLength": 128,
"minLength": 1
},
"mapping": {
"type": "object",
"required": [
"ts",
"type",
"asset",
"qty",
"fiatValue"
],
"properties": {
"id": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"ts": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"qty": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"type": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"asset": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"txHash": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"wallet": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"feeFiat": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"fiatValue": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"counterQty": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"required": [
"column"
],
"properties": {
"scale": {
"type": "number",
"exclusiveMinimum": 0
},
"column": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"minLength": 1
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"timezone": {
"type": "string",
"minLength": 1
}
}
}
]
}
}
},
"fiatCurrency": {
"type": "string",
"default": "USD",
"maxLength": 3,
"minLength": 3
}
}
}Classify crypto private sales under ยง23 EStG with FIFO (or caller method), one-year holding and the โฌ1,000 Freigrenze. Price $0.04 USDC. POST /api/v1/crypto-tax/germany-holding-period. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ledger* | array | |
| method | string | |
| feePolicy | string | |
| calendarYear* | integer | |
| fiatCurrency | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"calendarYear"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"method": {
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string",
"default": "FIFO"
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds"
},
"calendarYear": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"fiatCurrency": {
"type": "string",
"default": "EUR",
"maxLength": 3,
"minLength": 3
}
}
}Value staking, mining, airdrop and interest receipts in fiat using caller-supplied prices within a max lag window. Price $0.03 USDC. POST /api/v1/crypto-tax/income-events-value. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| events* | array | |
| prices* | array | |
| fiatCurrency* | string | |
| maxPriceLagHours* | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"events",
"prices",
"maxPriceLagHours",
"fiatCurrency"
],
"properties": {
"events": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"asset",
"qty",
"kind"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"kind": {
"enum": [
"staking",
"mining",
"airdrop",
"interest",
"other"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
}
}
},
"maxItems": 100000,
"minItems": 1
},
"prices": {
"type": "array",
"items": {
"type": "object",
"required": [
"asset",
"ts",
"price"
],
"properties": {
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"price": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
},
"maxItems": 100000,
"minItems": 1
},
"fiatCurrency": {
"type": "string",
"maxLength": 3,
"minLength": 3
},
"maxPriceLagHours": {
"type": "number",
"maximum": 8760,
"exclusiveMinimum": 0
}
}
}Replay balances to find disposal-without-acquisition, negative balance, unmatched transfer-in and unpriced events before gains are computed. Price $0.03 USDC. POST /api/v1/crypto-tax/missing-basis-detect. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ledger* | array | |
| prices | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"prices": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
}
}
}Assign network/gas fees to acquisition basis, disposal proceeds, expense or fee-asset disposal per caller policy. Price $0.02 USDC. POST /api/v1/crypto-tax/network-fee-allocate. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| fees* | array | |
| policy* | object |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"fees",
"policy"
],
"properties": {
"fees": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"relatedId",
"context",
"asset",
"qty",
"fiatValue"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"context": {
"enum": [
"disposal",
"acquisition",
"transfer",
"failed_tx"
],
"type": "string"
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"relatedId": {
"type": "string",
"minLength": 1
}
}
},
"maxItems": 100000,
"minItems": 1
},
"policy": {
"type": "object",
"required": [
"transfer",
"failed_tx"
],
"properties": {
"disposal": {
"enum": [
"deduct_from_proceeds"
],
"type": "string",
"default": "deduct_from_proceeds"
},
"transfer": {
"enum": [
"add_to_basis",
"disposal_of_fee_asset",
"expense"
],
"type": "string"
},
"failed_tx": {
"enum": [
"expense",
"ignore"
],
"type": "string"
},
"acquisition": {
"enum": [
"add_to_basis"
],
"type": "string",
"default": "add_to_basis"
}
}
}
}
}Apply caller-chosen lot identifications to disposals, validate timing and quantities, and return matched basis or structured selection errors. Price $0.05 USDC. POST /api/v1/crypto-tax/specific-id-select. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ledger* | array | |
| feePolicy | string | |
| selections* | array | |
| fiatCurrency | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"selections"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds"
},
"selections": {
"type": "array",
"items": {
"type": "object",
"required": [
"disposalId",
"lots"
],
"properties": {
"lots": {
"type": "array",
"items": {
"type": "object",
"required": [
"lotId",
"qty"
],
"properties": {
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"lotId": {
"type": "string",
"minLength": 1
}
}
},
"minItems": 1
},
"disposalId": {
"type": "string",
"minLength": 1
}
}
},
"maxItems": 100000,
"minItems": 1
},
"fiatCurrency": {
"type": "string",
"default": "USD",
"maxLength": 3,
"minLength": 3
}
}
}List open lots with unrealised losses at caller prices and an estimated tax saving, with US/UK rule flags. Price $0.03 USDC. POST /api/v1/crypto-tax/tax-loss-harvest. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| asOf* | string | |
| prices* | object | |
| openLots* | array | |
| jurisdiction* | string | |
| marginalRate* | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"openLots",
"prices",
"marginalRate",
"jurisdiction",
"asOf"
],
"properties": {
"asOf": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"prices": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"openLots": {
"type": "array",
"items": {
"type": "object",
"required": [
"lotId",
"asset",
"qty",
"basis",
"acquired"
],
"properties": {
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"basis": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"lotId": {
"type": "string",
"minLength": 1
},
"acquired": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
}
}
},
"maxItems": 100000,
"minItems": 1
},
"jurisdiction": {
"enum": [
"US",
"UK",
"other"
],
"type": "string"
},
"marginalRate": {
"type": "number",
"maximum": 1,
"minimum": 0
}
}
}Pair outgoing and incoming transfers between the caller's own wallets by txHash or amount/time so they are not treated as disposals. Price $0.04 USDC. POST /api/v1/crypto-tax/transfer-match. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ledger* | array | |
| maxFeeRatio | number | |
| windowMinutes | number |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"maxFeeRatio": {
"type": "number",
"default": 0.02,
"maximum": 1,
"minimum": 0
},
"windowMinutes": {
"type": "number",
"default": 120,
"maximum": 43200,
"exclusiveMinimum": 0
}
}
}Apply same-day, 30-day and section 104 share-pooling rules to a GBP ledger and return allowable cost, gains, pool balances and AEA. Price $0.05 USDC. POST /api/v1/crypto-tax/uk-share-pooling. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| ledger* | array | |
| taxYear* | string | |
| feePolicy | string | |
| fiatCurrency | string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"taxYear"
],
"properties": {
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"taxYear": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}$"
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds"
},
"fiatCurrency": {
"type": "string",
"default": "GBP",
"maxLength": 3,
"minLength": 3
}
}
}Replay a ledger to a date with a cost-basis method and report holdings, basis, unrealised gain, dust and unpriced assets at caller prices. Price $0.04 USDC. POST /api/v1/crypto-tax/unrealized-snapshot. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| asOf* | string | |
| ledger* | array | |
| method | string | |
| prices* | object | |
| feePolicy | string | |
| fiatCurrency | string | |
| dustThresholdFiat | integer |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"ledger",
"asOf",
"prices"
],
"properties": {
"asOf": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"ledger": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"ts",
"type",
"asset",
"qty",
"fiatValue",
"wallet"
],
"properties": {
"id": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"ts": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"qty": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
"type": {
"enum": [
"buy",
"sell",
"transfer_in",
"transfer_out",
"income",
"fee",
"trade"
],
"type": "string"
},
"asset": {
"type": "string",
"maxLength": 32,
"minLength": 1
},
"txHash": {
"anyOf": [
{
"type": "string",
"maxLength": 128,
"minLength": 1
},
{
"type": "null"
}
]
},
"wallet": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"feeFiat": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0
},
"fiatValue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"counterQty": {
"anyOf": [
{
"type": "string",
"pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
},
{
"type": "null"
}
]
},
"counterAsset": {
"anyOf": [
{
"type": "string",
"maxLength": 32,
"minLength": 1
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"method": {
"enum": [
"FIFO",
"LIFO",
"HIFO",
"AVERAGE"
],
"type": "string",
"default": "FIFO"
},
"prices": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
}
},
"feePolicy": {
"enum": [
"add_to_basis_and_deduct_from_proceeds",
"ignore"
],
"type": "string",
"default": "add_to_basis_and_deduct_from_proceeds"
},
"fiatCurrency": {
"type": "string",
"default": "USD",
"maxLength": 3,
"minLength": 3
},
"dustThresholdFiat": {
"type": "integer",
"default": 100,
"maximum": 9007199254740991,
"minimum": 0
}
}
}Produce Form 8949 rows and Schedule D box totals from caller disposals using 2025 short/long-term and 1099-B / 1099-DA box rules. Price $0.04 USDC. POST /api/v1/crypto-tax/us-form-8949-rows. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| taxYear* | integer | |
| disposals* | array | |
| roundToDollars | boolean |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"taxYear",
"disposals"
],
"properties": {
"taxYear": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"disposals": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"description",
"acquired",
"sold",
"proceeds",
"basis",
"reportedOn",
"basisReported"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"sold": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"basis": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"acquired": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"proceeds": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"adjustment": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"reportedOn": {
"enum": [
"1099-DA",
"1099-B",
"none"
],
"type": "string"
},
"description": {
"type": "string",
"maxLength": 256,
"minLength": 1
},
"basisReported": {
"type": "boolean"
},
"adjustmentCode": {
"anyOf": [
{
"type": "string",
"maxLength": 8
},
{
"type": "null"
}
]
}
}
},
"maxItems": 100000,
"minItems": 1
},
"roundToDollars": {
"type": "boolean",
"default": false
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 19, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.