cost basis
buscalc_chain_cost_basisLot accounting for crypto (not tax advice): realized gain/loss per disposal with FIFO, LIFO, HIFO or specific identification, remaining lots and average cost, holding-period label (> 1 year). Exact decimals; cost moved + cost remaining = total cost exactly. Put tool fields inside inputs. Supply units or modelVersion only when listed in inputSchema. Follow its required fields and exact choices. Do not pass the REST calculator field inside MCP arguments.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"inputs": {
"lots": [
{
"id": "A",
"date": "2024-01-01",
"quantity": "1",
"unit_cost": "100"
}
],
"method": "FIFO",
"disposals": [
{
"date": "2025-03-01",
"quantity": "0.5",
"unit_price": "300"
}
]
}
},
"name": "buscalc_chain_cost_basis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | ||
| modelVersion | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | ||
| inputs | Yes | ||
| receipt | Yes | ||
| results | Yes | ||
| sourceURL | Yes | ||
| calculator | Yes | ||
| modelVersion | Yes |