Documentation
assert_balance
assert_balance MCP tool reference, parameters, return type, and safety hints.
What it does
Checks balance in the local Clovis ledger.
(account_id: string, expected: number, date?: string | null, asset_id?: string | null, status?: string | null) => Record<string, unknown>Read-only. This is appropriate for inspection, reporting, diagnostics, and first-pass agent answers.
When to use it
Use this section to decide whether the tool fits the user request before calling it.
Before calling
Agents should gather these facts or confirmations first.
Have exact values for required inputs: account_id, expected.
Parameters
Required inputs are marked clearly. Optional inputs can usually be omitted unless the workflow needs them.
account_idrequiredLedger account id or resolvable account reference.
expectedrequiredExpected balance amount to compare with the ledger.
dateoptionalLedger date in YYYY-MM-DD format.
Default: nullasset_idoptionalAsset or currency id used by the ledger.
Default: nullstatusoptionalTransaction status filter or value: posted, pending, planned, or void.
Default: nullAgent call shape
Use the exact tool name and pass arguments as structured JSON through the MCP client.
assert_balance
Copy this shape into agent instructions, evals, or MCP client tests.
{
"tool": "assert_balance",
"arguments": {
"account_id": "<account_id>",
"expected": 1
}
}