Books status and the one next step
get_books_statusTHE loop driver — call this first, and again after every action. One call reports every queue (connections + degraded credentials, pending human approvals, onboarding gaps, payout-decomposition adjudications, the classification review queue, suggested transfers, captured documents) and next_step: the ONE thing to do now, from a fixed priority ladder (degraded connections → pending approvals → first-ever connection → adjudications → reviews → transfers → document match proposals → missing receipts → done). Loop contract: call this, do next_step (gate=true means relay next_step.ask to your human and wait; otherwise call next_step.tool), call this again — until next_step.section is 'done'. All sections are always present; an empty section means that queue is clear. pending_approvals are the OOB requests your above-guard calls opened — remind your human, NEVER re-call the refused tool. Supersedes get_onboarding_status (still available for the pure connect walk). Reads state only — never calls provider APIs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org_id | No | Optional. Defaults to the organisation the authenticated API key is bound to, so you normally omit it and never need to ask the user for their organisation UUID. If provided, it must match the key’s org or the request is rejected. | 0e91146d-511c-469f-bdee-5c867b26ae0d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reviews | Yes | ||
| documents | Yes | ||
| next_step | Yes | ||
| transfers | Yes | ||
| onboarding | Yes | ||
| connections | Yes | ||
| adjudications | Yes | ||
| pending_approvals | Yes |