audit_double_entry_ledger_balance
Audits Beancount and hledger ledger files offline by verifying every transaction's postings sum to zero using exact integer minor-unit math, avoiding floating-point drift.
Instructions
Audits Beancount (.bean) or hledger (.journal) double-entry ledger text offline using exact BigInt minor-unit math to verify that every transaction satisfies SUM(postings) === 0 without floating-point drift.
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": "audit_double_entry_ledger_balance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | Optional local path to a .bean, .beancount, or .journal file when ledgerText is omitted. | |
| filename | No | Optional display filename attached to audit results. | |
| ledgerText | No | Raw Beancount (.bean) or hledger (.journal) text to audit in memory. |