Ledger Lint
ledger_lintFind the problems that break a lot build: missing values, duplicates, negative balances. FREE.
Typical input {"ledger": } returns {"issues": [{"severity": "error", "row": "cb12", "issue": "sell of 0.5 BTC exceeds balance 0.2 in account coinbase"}], "balances": {"coinbase": {"BTC": "0.2"}}, "counts": {...}}. Balances are running quantities per account and asset in time order, ignoring transfers' fiat values. Use after parse_transactions and before build_lots. Not a tax check: it checks the ledger's arithmetic consistency only. Errors: on invalid, missing, or malformed input this tool never raises a protocol error; it returns {"error": ""}. Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
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": {
"ledger": "<ledger>"
},
"name": "ledger_lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ledger | Yes | canonical rows (ts, type, asset, qty, fiat_value, fees, account...). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||