Compare Standard Books
compare_standard_booksWhere two Standard Books documents say different things, compared by what they say rather than by their ids, which two systems need not share: for example a book made from an export and the book a workspace holds after its documents were submitted. An entry is its date and what it does to each account (by label, debit and credit; lines to one account summed, in any order), and entries are compared as a set, so order does not matter; accounts by label and kind; parties by name; registers by account, kind and number; documents by kind, reference and date; and the two trial balances per account as of the later book's last day.
Supply each book by transfer handle or inline (first_handle or first_book, second_handle or second_book). status is same_content or different; same_identity says whether they are the very same book. The counts and the trial balance differences are inline; the handle names every differing entry, account, party, register and document. Nothing is changed and no model runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first_book | No | The first book inline. Exclusive with first_handle. | |
| second_book | No | The second book inline. Exclusive with second_handle. | |
| first_handle | No | Transfer handle naming the first book. Exclusive with first_book. | |
| second_handle | No | Transfer handle naming the second book. Exclusive with second_book. | |
| workspace_tag | Yes | Active workspace id (the workspace_tag create_workspace and list_workspaces return). Scopes the call and the handle it returns. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first | Yes | The first book: identity, chart_identity, name and its counts. | |
| engine | Yes | Stamped engine build/version identity for the tool result. | |
| handle | Yes | Multi-read download:N handle naming every difference: per category onlyInFirst and onlyInSecond, and trialBalance. | |
| second | Yes | The second book: identity, chart_identity, name and its counts. | |
| status | Yes | same_content or different. | |
| retained | Yes | Download descriptor for the comparison. | |
| same_identity | Yes | Whether the two are the very same book. | |
| workspace_tag | Yes | Workspace scoped by the tool call. | |
| difference_counts | Yes | Per category (entries, accounts, parties, registers, documents): only_in_first and only_in_second. | |
| trial_balance_differences | Yes | Accounts whose net differs: account (label), first, second, difference, in minor units, debit positive. |