jaz-clio 9.5.11 → 9.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,13 +3,13 @@
3
3
  <p align="center">
4
4
  <a href="https://www.npmjs.com/package/jaz-clio"><img src="https://img.shields.io/npm/v/jaz-clio?style=for-the-badge&logo=npm" alt="npm"></a>
5
5
  <a href="https://www.npmjs.com/package/jaz-clio"><img src="https://img.shields.io/npm/dm/jaz-clio?style=for-the-badge&label=downloads" alt="npm downloads"></a>
6
- <img src="https://img.shields.io/badge/tools-476-blue?style=for-the-badge" alt="476 tools">
6
+ <img src="https://img.shields.io/badge/tools-477-blue?style=for-the-badge" alt="477 tools">
7
7
  <a href="https://github.com/teamtinvio/jaz-ai/blob/main/LICENSE"><img src="https://img.shields.io/github/license/teamtinvio/jaz-ai?style=for-the-badge&color=green" alt="License"></a>
8
8
  </p>
9
9
 
10
10
  <p align="center"><b>Fastest ledger for agents.</b><br>Jaz accounting on the command line, and inside any AI agent.</p>
11
11
 
12
- 476 tools · 77 command groups · 7 skills · 13 calculators · 12 job playbooks · 148 field-tested API rules.
12
+ 477 tools · 77 command groups · 7 skills · 13 calculators · 12 job playbooks · 148 field-tested API rules.
13
13
 
14
14
  ```bash
15
15
  npm install -g jaz-clio
@@ -109,7 +109,7 @@ that ends up in a journal.
109
109
 
110
110
  ## MCP server
111
111
 
112
- 476 tools for any AI agent that speaks MCP. Runs locally: no cloud, no ports.
112
+ 477 tools for any AI agent that speaks MCP. Runs locally: no cloud, no ports.
113
113
 
114
114
  > **No install at all?** Claude.ai, ChatGPT, Cowork, and Microsoft Copilot Studio can use Jaz through the hosted connector. Add `https://mcp.jaz.ai/mcp` as a custom connector and sign in with OAuth, no key. The local setup below is for terminal use, scripting, and editors that run MCP servers as local processes.
115
115
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-api
3
- version: 9.5.11
3
+ version: 9.5.13
4
4
  description: >-
5
5
  Use this skill whenever you call, debug, or review code that touches the Jaz
6
6
  REST API. Covers field names, response shapes, 148 production gotchas, error
@@ -404,9 +404,10 @@ Bills, invoices, and credit notes share identical mandatory field specs. Adding
404
404
 
405
405
  ### Reconciliation actions (write-side)
406
406
 
407
- 123. **12 reconciliation action endpoints under `/api/v1/reconciliations/*`**. These *commit* a reconciliation decision against a bank statement entry, distinct from `view_auto_reconciliation` (which queries `/search-magic-reconciliation` for *suggestions*):
407
+ 123. **13 reconciliation action endpoints under `/api/v1/reconciliations/*`**. These *commit* a reconciliation decision against a bank statement entry, distinct from `view_auto_reconciliation` (which queries `/search-magic-reconciliation` for *suggestions*):
408
408
  - **Async (jobId):** `quick_reconcile` (bulk match entries to journals, max 500), `apply_bank_rule` (bulk apply a rule to entries, max 500). Poll `search_background_jobs` filtered by `resourceId`; on `PARTIAL_SUCCESS` read `data[0].errorDetails` for per-row failures.
409
409
  - **Sync (single bank entry):** `reconcile_direct_cash_entry`, `reconcile_cash_journal`, `reconcile_manual_journal`, `reconcile_cash_transfer`, `reconcile_invoice_receipt`, `reconcile_bill_receipt`, `reconcile_with_payments` (match EXISTING; see Rule 158), `reconcile_learned_prediction`. Each returns `{bankStatementEntryResourceId, status, reference, valueDate}`.
410
+ - **Sync, several entries to one document:** `reconcile_match_to_transaction` (1-100 entries against ONE open invoice/bill/credit note, all or nothing; see Rule 158) returns `{reconciled[], paymentResourceIds[], businessTransactionResourceId, businessTransactionType, businessTransactionStatus, balanceAmount}`.
410
411
  - **Sync bulk:** `reconcile_magic_match` (bulk-accept MAGIC_MATCH and MAGIC_RECONCILE_WITH_CASH_IN_OUT suggestions, max 500) returns `{reconciled[], failed[]}`; `undo_reconciliations` (unlink, 1-500) returns `{resetReconciliationResponse[], linkedRecords[]}`; see Rule 125.
411
412
 
412
413
  124. **Recon prefill from the bank statement entry**: when caller omits `valueDate`, `dueDate`, payment `amount`, or direction (cash-in vs cash-out), the API fills these from the bank entry. Best-effort: a missing entry lookup logs a warning and forwards the payload as-is. Caller can always override by passing the field explicitly.
@@ -506,8 +507,9 @@ When the user wants to OPEN, SEE, or SHARE something in the Jaz dashboard ("open
506
507
  - **Scheduled journals**: Flat: `{ status, startDate, endDate, repeat, valueDate, schedulerEntries, reference }`. `valueDate` is required.
507
508
  - **FX currency (invoices, bills, credit notes, AND journals)**: `currency: { sourceCurrency: "USD" }` (auto-fetches platform rate) or `currency: { sourceCurrency: "USD", exchangeRate: 0.74 }` (custom rate). Same object form on all transaction types. **Never use `currencyCode` string**: silently ignored.
508
509
 
509
- 158. **Match-to-EXISTING reconciliation: `reconcile_with_payments` / `reconcile_magic_match` / `reconcile_learned_prediction`.** These reconcile a bank entry against transactions/payments the org ALREADY has, vs `invoice_receipt`/`bill_receipt` which CREATE new ones. Prefer match-to-existing to avoid duplicates.
510
+ 158. **Match-to-EXISTING reconciliation: `reconcile_with_payments` / `reconcile_match_to_transaction` / `reconcile_magic_match` / `reconcile_learned_prediction`.** These reconcile a bank entry against transactions/payments the org ALREADY has, vs `invoice_receipt`/`bill_receipt` which CREATE new ones. Prefer match-to-existing to avoid duplicates.
510
511
  - **`reconcile_with_payments`**: the headline. `businessTransactionPayments[]` each carry an open bill/invoice's `cashflowTransactionResourceId` (from `search_cashflow_transactions` or a suggestion's `cftBtResourceId`) + `transactionAmount`; the endpoint CREATES the payment AND reconciles in one call; **no `pay_bill`/`pay_invoice` first.** Also accepts `matchedPayments[]` (existing payments) / `matchedBatchPayments[]` / `adjustment` (over/under-payment + FX write-off). Guard: ≥1 match array non-empty. **FX is auto-resolved server-side; pass NO `currencySettings`/rate for the common case.** Only the rare bill-currency ≠ bank-currency case needs explicit `paymentAmount` (bank ccy) + `currencySettings`. FX gain/loss is NOT auto-posted; post it via `adjustment.cashAdjustmentEntries[]` to an FX account. Errors: `PAYMENT_AMOUNT_REQUIRED_IN_BUSINESS_TRANSACTION_SOURCE_CURRENCY` (cross-ccy missing paymentAmount), `INVALID_EXCHANGE_RATE_ERROR` (adjustment leg in non-functional ccy missing rate), `TOTAL_RECONCILIATION_AMOUNT_MISMATCHED_WITH_STATEMENT_ENTRY_AMOUNT` (sum ≠ entry → add adjustment leg). **NOT idempotent, no client key: a blind retry double-creates a payment; re-check `search_bank_records(status:'RECONCILED')` before retry.**
512
+ - **`reconcile_match_to_transaction`**: SEVERAL bank entries (1-100, unique, same bank account, all money in or all money out) against ONE open invoice, bill or credit note (instalments, a payment split across bank lines). For one entry against an invoice or bill use `reconcile_with_payments`; one entry against a credit note takes this tool too. Body: `bankAccountResourceId` (also the payment account), `bankStatementEntryResourceIds[]`, `cashflowTransactionResourceId` (the document's cashflow id from `search_cashflow_transactions`; never a payment, batch payment, cash entry or journal) and `paymentAmount`: gross, in bank currency, >0, equal to the entries' sum plus a fee charged or minus a fee collected on money in, minus a fee charged on money out. When the document currency differs from the bank account's, or the bank account is not in the base currency, also send `transactionAmount` (document currency) and `currencySettings`: `sourceCurrencyCode` plus `rateFunctionalToSource` or `exchangeToken`, one rate for the whole match (no live rate is fetched; `transactionAmount` without `currencySettings`, or `currencySettings` with neither rate nor token, is refused with 422). Same-currency in the base currency: omit both. Optional `transactionFee` / `transactionFeeCollected` (collected: invoices only; `feeAccountResourceId`, `feeType` FLAT|PERCENTAGE, `feeValue`, `feeTaxVatApplicable` required), split pro-rata across the payments. One payment per entry, dated and sized from the entry, in one transaction: every entry reconciles or nothing is written. The document may stay partly open; an amount over its open balance is refused, never adjusted, and a zero or negative payment is refused. Not idempotent, but a retry after success is refused because the entries are already reconciled.
511
513
  - **`reconcile_magic_match`**: bulk-accept suggestions (max 500 entries, at most 100 of them `MAGIC_RECONCILE_WITH_CASH_IN_OUT`; each bank entry once per call). A `MAGIC_MATCH` entry matches existing transactions/payments; a `MAGIC_RECONCILE_WITH_CASH_IN_OUT` entry carries `learnedPredictionResourceId` + `predictedPayload` + `predictedPayloadSchemaVersion` verbatim from the suggestion (optional `retryToken`), exactly as `reconcile_learned_prediction` takes them for one entry. Pass each suggestion's `recommendationId` on its entry (and on `reconcile_learned_prediction`) so the accept is credited to it. Returns `{reconciled[], failed[]}` (either may be absent or empty); a 200 with non-empty `failed[]` is a PARTIAL success (per-entry `errorCode`); when nothing reconciled the call fails with 422. An entry carries only its own workflow's fields (no matches on a CASH_IN_OUT entry, no learned-prediction fields on MAGIC_MATCH). A `failed[]` entry may still have posted (an unexpected failure reports the whole group failed), so re-read each line's state before any retry. `MAGIC_MATCH` entries are NOT idempotent: never blind-retry a timed-out batch; re-read the line state (`search_bank_records`) first. A `MAGIC_RECONCILE_WITH_CASH_IN_OUT` entry is keyed on bank entry + prediction + `retryToken`, so resending it unchanged never books a second journal.
512
514
  - **`reconcile_learned_prediction`**: accept an ML prediction. `predictedPayload` + `predictedPayloadSchemaVersion` come VERBATIM from a `view_auto_reconciliation` (MAGIC_RECONCILE_WITH_CASH_IN_OUT) suggestion; never hand-construct. `retryToken` forces a fresh journal on edit-retry; omit for idempotent replay. On failure (stale payload), fall back to `reconcile_with_payments`; don't retry the blob.
513
515
 
@@ -210,8 +210,14 @@ Four entities sharing one shape. Replace `{entity}` with `sale-quotes`, `sale-or
210
210
  | POST | `/reconciliations/cash-transfer` | **Sync**. Inter-account transfer. `amount` required only for cross-currency transfers. |
211
211
  | POST | `/reconciliations/invoice-receipt` | **Sync (AR)**. Creates an invoice and auto-reconciles to the bank entry. |
212
212
  | POST | `/reconciliations/bill-receipt` | **Sync (AP)**. Creates a bill and auto-reconciles to the bank entry. |
213
-
214
- The 6 sync endpoints are NOT idempotent on the same `bankStatementEntryResourceId`; confirm reconciled state before retrying. Most fields prefill from the bank entry when omitted.
213
+ | POST | `/reconciliations/with-payments` | **Sync**. One bank entry against EXISTING open bills/invoices (creates the payment) and/or existing payments. |
214
+ | POST | `/reconciliations/match-to-transaction` | **Sync**. 1-100 bank entries (same account, same direction) against ONE open invoice, bill or credit note; one payment per entry, all or nothing. |
215
+ | POST | `/reconciliations/learned-prediction` | **Sync**. Accept a learned-prediction suggestion; payload passed verbatim from the suggestion. |
216
+ | POST | `/reconciliations/magic-match` | **Sync, bulk**. Accept magic suggestions (max 500); returns `{ reconciled[], failed[] }`. |
217
+ | POST | `/reconciliations/unapplied-payment` | **Sync**. Record an unapplied payment for the bank entry and match the two; amount, when sent, must equal the entry's. |
218
+ | POST | `/reconciliations/reset` | **Sync, bulk**. Undo: unlink entries (1-500); the matched record stays, listed in `linkedRecords`. |
219
+
220
+ Confirm reconciled state (`search_bank_records`) before retrying a call whose answer was lost. Most fields prefill from the bank entry when omitted.
215
221
 
216
222
  ### Drafts (server-side bulk lifecycle)
217
223
  **One batch can mix any combination** of `SALE` (invoice), `PURCHASE` (bill), `SALE_CREDIT_NOTE`, `PURCHASE_CREDIT_NOTE`. No per-type endpoints. Max 500 items per call. Journals are NOT in the enum (separate approval flow).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-cli
3
- version: 9.5.11
3
+ version: 9.5.13
4
4
  description: >-
5
5
  Use this skill when running Clio CLI commands, building shell scripts with
6
6
  Clio, debugging auth issues, understanding --json output, paginating results,
@@ -8,7 +8,7 @@ description: >-
8
8
  precedence, output formats, entity resolution, and common workflow patterns.
9
9
  Also use when the user asks how to use clio, what commands are available, or
10
10
  how to automate accounting tasks from the command line. Covers all
11
- 77 command groups and 476 tools, including employee-expense claims.
11
+ 77 command groups and 477 tools, including employee-expense claims.
12
12
  license: MIT
13
13
  compatibility: Requires Node.js >= 18.0.0. Install via npm install -g jaz-clio.
14
14
  ---
@@ -17,7 +17,7 @@ compatibility: Requires Node.js >= 18.0.0. Install via npm install -g jaz-clio.
17
17
 
18
18
  > **Audience note:** for power users and CI/automation. Load this skill only when you're scripting from a terminal, building shell pipelines, or debugging from `clio --json` output. For day-to-day accounting inside Claude Desktop / Cowork, the MCP tools cover the common flows without dropping to the CLI.
19
19
 
20
- You are working with **Clio** (`jaz-clio`), the CLI for the Jaz accounting platform. 77 command groups, 13 calculators, 12 job playbooks (jaz-jobs skill), 476 tools. Also fully compatible with Juan Accounting (same API, same endpoints).
20
+ You are working with **Clio** (`jaz-clio`), the CLI for the Jaz accounting platform. 77 command groups, 13 calculators, 12 job playbooks (jaz-jobs skill), 477 tools. Also fully compatible with Juan Accounting (same API, same endpoints).
21
21
 
22
22
  ## When to Use This Skill
23
23
 
@@ -402,8 +402,8 @@ The register never posts cash: record the drawdown and every installment yoursel
402
402
  | `undo <id>` | `--event`: reverse the latest event |
403
403
  | `bulk-upsert` / `bulk-update` | `--input <file>`: max 500, async → jobId |
404
404
 
405
- ### `clio reconciliations` (alias: `recon`): Bank reconciliation actions (8 tools)
406
- 2 async + 6 sync. Sync endpoints are NOT idempotent: re-running creates duplicate journals.
405
+ ### `clio reconciliations` (alias: `recon`): Bank reconciliation actions (13 subcommands)
406
+ 2 async + 11 sync. Each sync call is sent once: after a lost answer, read the entries (`clio bank records --status`) before running it again.
407
407
 
408
408
  | Subcommand | Type | Key flags |
409
409
  |------------|------|-----------|
@@ -415,6 +415,11 @@ The register never posts cash: record the drawdown and every installment yoursel
415
415
  | `cash-transfer` | sync | `--input <file>`: inter-account transfer; `accountResourceId` is counterparty |
416
416
  | `invoice-receipt` | sync | `--input <file>`: ⚠️ requires BSE from `bank import` (BANK_STATEMENT_ENTRY type). `bank add-records` BSEs (BANK_RECORD type) → 422 "Invalid business transaction type" |
417
417
  | `bill-receipt` | sync | `--input <file>`: same BSE-type warning as invoice-receipt |
418
+ | `with-payments` | sync | `--input <file>`: ONE BSE against EXISTING open bills/invoices (creates the payment) and/or existing payments |
419
+ | `match-to-transaction` | sync | `--input <file>`: 1-100 BSEs (same account, same direction) against ONE open invoice, bill or credit note; one payment per BSE, all or nothing |
420
+ | `learned-prediction` | sync | `--input <file>`: accept a learned-prediction suggestion (payload verbatim from `bank auto-recon`) |
421
+ | `magic-match` | sync, bulk | `--input <file>`: accept magic suggestions (max 500); a partial success exits 1 |
422
+ | `undo` | sync, bulk | `--input <file>`: unlink BSEs; the matched record stays and its id is printed |
418
423
 
419
424
  ### `clio drafts`: Server-side draft lifecycle (3 tools)
420
425
  Bulk-friendly: one call accepts mixed btTypes (max 500). NOT idempotent on already-promoted drafts (422).
@@ -799,7 +804,7 @@ Valid entity types: INVOICE, BILL, CUSTOMER_CREDIT_NOTE, SUPPLIER_CREDIT_NOTE, S
799
804
  Universal async tracker: any operation returning a jobId (contacts bulk-upsert, items bulk-upsert, bank import, magic processing) can be polled here.
800
805
 
801
806
  ### `clio mcp`: MCP stdio server
802
- Starts an MCP server for Claude Code / AI tool integration. Exposes all 476 operations.
807
+ Starts an MCP server for Claude Code / AI tool integration. Exposes all 477 operations.
803
808
 
804
809
  ### `clio init`: Skill installer
805
810
  Installs AI agent skills into your project.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-conversion
3
- version: 9.5.11
3
+ version: 9.5.13
4
4
  description: >-
5
5
  Use this skill when migrating accounting data into Jaz, importing from Xero,
6
6
  QuickBooks, Sage, MYOB, or Excel exports. Covers the full conversion pipeline:
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-kit
3
- version: 9.5.11
3
+ version: 9.5.13
4
4
  description: >-
5
5
  Use this skill when an accountant, bookkeeper, or owner is running real books
6
6
  in Jaz across one or more organizations from the terminal: setting up a
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-pseudo-sql
3
- version: 9.5.11
3
+ version: 9.5.13
4
4
  description: >-
5
5
  Use this skill when answering ad-hoc data questions that aren't covered by
6
6
  download_export (canonical reports: anomaly, audit, aging, P&L, BS, GL,
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-jobs
3
- version: 9.5.11
3
+ version: 9.5.13
4
4
  description: >-
5
5
  Use this skill for recurring accounting workflows: month/quarter/year-end
6
6
  close, bank reconciliation, GST/VAT filing, payment runs, credit control,
@@ -228,6 +228,7 @@ clio jobs bank-recon match --input data.json --find-all --json
228
228
  The matcher finds matches against transactions the org **already has**, so commit via the MATCH-EXISTING path, not create-new:
229
229
 
230
230
  - A 1:1 (or N:1) match to an **existing open bill/invoice** at `exact` / `fuzzy-high` (≥0.85) confidence → **`reconcile_with_payments`** (pass the matched transaction's `cashflowTransactionResourceId` in `businessTransactionPayments[]`). Do NOT use `reconcile_invoice_receipt`/`reconcile_bill_receipt`; those CREATE a duplicate.
231
+ - A 1:N match (several bank records → ONE existing open invoice, bill or credit note) → **`reconcile_match_to_transaction`** with all of the records' ids: one payment per record, all or nothing.
231
232
  - A batch of high-confidence matches → **`reconcile_magic_match`** in one call.
232
233
  - Only when the matcher finds NO existing transaction → create one (`reconcile_invoice_receipt`/`reconcile_bill_receipt` or `create_cash_*`).
233
234
  - `fuzzy-medium` (0.70 to 0.85) / `nm-confident` → surface for confirmation before committing (checkpoint), don't auto-commit.
@@ -15,6 +15,7 @@
15
15
  ### Platform tools: execute reconciliation (NOT idempotent; see error table)
16
16
  **Match to EXISTING (preferred, no duplicates):**
17
17
  - **`reconcile_with_payments(bankStatementEntryResourceId, businessTransactionPayments: [{cashflowTransactionResourceId, transactionAmount}], matchedPayments?, matchedBatchPayments?, adjustment?)`**: **the primary match path.** Match a bank entry to an EXISTING open bill/invoice/payment; creates the payment AND reconciles in one call (no `pay_bill`/`pay_invoice` first). FX auto-resolved server-side; pass no rate. Sync.
18
+ - **`reconcile_match_to_transaction(bankAccountResourceId, bankStatementEntryResourceIds, cashflowTransactionResourceId, paymentAmount, transactionAmount?, currencySettings?, transactionFee?, transactionFeeCollected?)`**: SEVERAL bank entries (1-100, same account, all money in or all money out) against ONE existing open invoice, bill or credit note, e.g. instalments. One payment per entry, all or nothing; the document may stay partly open, and an amount over its open balance is refused. `paymentAmount` is gross in bank currency: the entries' sum, plus a fee charged or minus a fee collected on money in, minus a fee charged on money out. Cross-currency, or a bank account outside the base currency: add `transactionAmount` and `currencySettings` with a rate (`rateFunctionalToSource` or `exchangeToken`; no live rate is fetched). Sync.
18
19
  - **`reconcile_magic_match(bankAccountResourceId, entries: [{workflowType:'MAGIC_MATCH', bankStatementEntryResourceId, matchedBusinessTransactions, recommendationId?} | {workflowType:'MAGIC_RECONCILE_WITH_CASH_IN_OUT', bankStatementEntryResourceId, learnedPredictionResourceId, predictedPayload, predictedPayloadSchemaVersion, retryToken?, recommendationId?}])`**: bulk-accept suggestions (max 500); learned-prediction fields pass through verbatim from the suggestion. Returns `{reconciled[], failed[]}` (either may be absent or empty); a non-empty `failed[]` is a partial success; a failed entry may still have posted, so re-read its line before any retry.
19
20
  - **`reconcile_learned_prediction(bankStatementEntryResourceId, learnedPredictionResourceId, predictedPayload, predictedPayloadSchemaVersion, retryToken?, recommendationId?)`**: accept an ML learned-prediction (payload passed verbatim from a `MAGIC_RECONCILE_WITH_CASH_IN_OUT` suggestion).
20
21
  - **`apply_bank_rule(actionShortcutResourceId, businessTransactionResourceIds)`**: rule-driven recon (async; returns jobId).
@@ -107,6 +108,7 @@ Returns matches with confidence scores: `exact` (Phase 1 hash), `fuzzy-high` (Ph
107
108
  | **AP bill ↔ bank cash-out (MATCH EXISTING open bill)** | **`reconcile_with_payments(bankStatementEntryResourceId, businessTransactionPayments:[{cashflowTransactionResourceId, transactionAmount}])`** ← primary |
108
109
  | **AR invoice ↔ bank cash-in (MATCH EXISTING open invoice)** | **`reconcile_with_payments(...)`** ← primary |
109
110
  | Existing payment ↔ bank | `reconcile_with_payments(..., matchedPayments:[...])` |
111
+ | **Several bank entries ↔ ONE existing open invoice/bill/credit note (instalments, split payment)** | **`reconcile_match_to_transaction(bankAccountResourceId, bankStatementEntryResourceIds:[...], cashflowTransactionResourceId, paymentAmount)`** |
110
112
  | Bulk accept magic suggestions | `reconcile_magic_match(bankAccountResourceId, entries:[...])` → `{reconciled[],failed[]}` |
111
113
  | Learned-prediction (cash-in-out) | `reconcile_learned_prediction(...)` |
112
114
  | AR invoice: CREATE NEW (no existing match) | `reconcile_invoice_receipt(...)` |
@@ -130,7 +132,7 @@ Call `search_bank_records` (status `UNRECONCILED`) to get the entry ids, then `v
130
132
 
131
133
  ## Step 4b: Match a bank entry to an existing open bill/invoice
132
134
 
133
- When you have a specific open bill/invoice to match (e.g. from `search_cashflow_transactions`), pass its `cashflowTransactionResourceId` to `reconcile_with_payments`: one call creates the payment AND reconciles. **No `pay_bill`/`pay_invoice` first.** Cross-currency (bank ccy ≠ bill ccy) is auto-resolved server-side: pass no rate; only the rare bill-ccy≠bank-ccy case needs explicit `paymentAmount` + `currencySettings`. On `TOTAL_RECONCILIATION_AMOUNT_MISMATCHED...`, put the delta into an `adjustment.cashAdjustmentEntries[]` leg (over/under-payment or FX write-off; the platform does NOT auto-post FX gain/loss) so the total equals the bank entry, then resend.
135
+ When you have a specific open bill/invoice to match (e.g. from `search_cashflow_transactions`), pass its `cashflowTransactionResourceId` to `reconcile_with_payments`: one call creates the payment AND reconciles. **No `pay_bill`/`pay_invoice` first.** When several bank entries settle that one document (instalments, a payment split across bank lines), call `reconcile_match_to_transaction` once with all of their ids instead of `reconcile_with_payments` per entry: one call, all or nothing. Cross-currency (bank ccy ≠ bill ccy) is auto-resolved server-side: pass no rate; only the rare bill-ccy≠bank-ccy case needs explicit `paymentAmount` + `currencySettings`. On `TOTAL_RECONCILIATION_AMOUNT_MISMATCHED...`, put the delta into an `adjustment.cashAdjustmentEntries[]` leg (over/under-payment or FX write-off; the platform does NOT auto-post FX gain/loss) so the total equals the bank entry, then resend.
134
136
 
135
137
  ## Step 5: Manual match (residuals)
136
138
 
@@ -247,6 +249,8 @@ Per account: `bookBalance == bankStatementBalance ± documentedTimingDifference`
247
249
  | `reconcile_with_payments` | (any 5xx/network), NOT idempotent, **no client key** | A blind retry **double-creates a payment**. ALWAYS re-check `search_bank_records(status:'RECONCILED')` for the entry before retrying. (`reconcile_magic_match` is NOT idempotent for `MAGIC_MATCH` entries either; a learned-prediction accept, single or in a batch, is keyed on entry + prediction + `retryToken`.) |
248
250
  | `reconcile_magic_match` | 200 with non-empty `failed[]` | PARTIAL success: `reconciled[]` succeeded, `failed[]` carries per-entry `errorCode`. Surface failures. A failed entry may still have posted, so re-read each line's state before retrying it. **All-fail** = a 422 error, not a 200; entries may still have posted: hard stop, surface, re-read the lines. Never resubmit a `MAGIC_MATCH` entry whose outcome you did not see: re-read its line state first. |
249
251
  | `reconcile_learned_prediction` | error (stale/invalid `predictedPayload`) | Do NOT retry the same opaque payload. Fall back to `reconcile_with_payments` or manual match. `retryToken` forces a fresh journal on an intentional edit-retry; omit for idempotent replay. |
252
+ | `reconcile_match_to_transaction` | 422 `Allocation exceeds the outstanding balance of the transaction` | The records total more than the document still owes; nothing was written. Ask the user how to treat the excess (an overpayment, another document) instead of shrinking amounts to fit. |
253
+ | `reconcile_match_to_transaction` | other 4xx on amounts or entries | Nothing was written (all or nothing). Check that every entry is unreconciled, on the same account and in the same direction, that `paymentAmount` equals the entries' sum adjusted for fees, and that `transactionAmount` does not exceed the document's open balance. A retry after success is refused because the entries are already reconciled; after a lost answer, read the entries (`search_bank_records`) before resending. |
250
254
  | `reconcile_with_payments` | 422 `TOTAL_RECONCILIATION_AMOUNT_MISMATCHED...` | Payments + adjustments ≠ bank entry amount. Add the delta as an `adjustment.cashAdjustmentEntries[]` leg (over/under-payment or FX write-off) so the total matches, then resend. |
251
255
  | `reconcile_with_payments` | 422 `...does not exist` / invalid status | The BT isn't an open bill/invoice (wrong id, already paid, or draft). Re-fetch via `search_cashflow_transactions`; finalize if draft. |
252
256
  | `reconcile_invoice_receipt` | 422 `invoice_status_invalid` | Matched invoice still DRAFT. `finalize_invoice(resourceId: <id>)` first. |
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: jaz-recipes
3
- version: 9.5.11
3
+ version: 9.5.13
4
4
  description: >-
5
5
  Use this skill when modeling complex multi-step accounting transactions:
6
6
  anything that spans multiple periods, involves changing amounts, or requires
@@ -4,11 +4,11 @@ Jaz accounting guidance for this workspace. Load the installed Jaz skills for de
4
4
 
5
5
  ## Discovery
6
6
 
7
- Jaz exposes **476 tools across 56 namespaces**. Your tool list shows **3, 56, or 476** entries depending on packaging; **never infer capability from its length.**
7
+ Jaz exposes **477 tools across 56 namespaces**. Your tool list shows **3, 56, or 477** entries depending on packaging; **never infer capability from its length.**
8
8
 
9
9
  - **3**: `search_tools(query)` → `describe_tools(names)` → `execute_tool(name, args)`. Empty query returns the namespace map.
10
10
  - **56**: namespace routers; call one with `{ operation, arguments }`.
11
- - **476**: call operations directly by name.
11
+ - **477**: call operations directly by name.
12
12
 
13
13
  **Before telling the user Jaz cannot do something, call `describe_capabilities`** (the capability map, on all three).
14
14