jaz-clio 9.7.4 → 9.8.0
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 +3 -3
- package/assets/skills/api/SKILL.md +2 -2
- package/assets/skills/api/references/dependencies.md +1 -1
- package/assets/skills/api/references/endpoints.md +47 -7
- package/assets/skills/api/references/errors.md +12 -4
- package/assets/skills/api/references/feature-glossary.md +1 -1
- package/assets/skills/api/references/full-api-surface.md +8 -1
- package/assets/skills/cli/SKILL.md +3 -3
- package/assets/skills/cli/references/command-catalog.md +3 -1
- package/assets/skills/conversion/SKILL.md +1 -1
- package/assets/skills/jaz-kit/SKILL.md +1 -1
- package/assets/skills/jaz-pseudo-sql/SKILL.md +1 -1
- package/assets/skills/jobs/SKILL.md +1 -1
- package/assets/skills/transaction-recipes/SKILL.md +1 -1
- package/assets/templates/platform-rules/jaz-agent-rules.md +2 -2
- package/cli.mjs +447 -447
- package/package.json +1 -1
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-
|
|
6
|
+
<img src="https://img.shields.io/badge/tools-523-blue?style=for-the-badge" alt="523 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
|
-
|
|
12
|
+
523 tools · 80 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
|
-
|
|
112
|
+
523 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.
|
|
3
|
+
version: 9.8.0
|
|
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
|
|
@@ -174,7 +174,7 @@ The rest of this skill (field names, gotchas, error catalog, dependency order, s
|
|
|
174
174
|
45. **Withholding tax (PH) has two sides.** Expanded withholding (EWT) on what you pay sits on each bill / supplier credit note line as `withholdingTax`: copy `code`, `rate`, `type` and `description` from one `list_withholding_codes` row (a field left out is not stored, measured 2026-10-06). Creditable withholding (CWT) a customer deducts is recorded from the customer's BIR Form 2307 with `record_withholding_tax_certificate`, never on the invoice lines (rule 98). On `WITHHOLDING_CODE_NOT_FOUND`, check the code against `list_withholding_codes` (codes contain a space: `WC 158`); never strip the field silently, because the tax disappears from the bill.
|
|
175
175
|
46. **Known API bugs (500s)**: none on this list today. **Capsules POST, catalogs POST, inventory balances by status GET, contact groups PUT and custom fields PUT are NO LONGER on this list.** Capsules POST creates the capsule and returns its `resourceId`. Catalogs POST returned 201 on a live probe 2026-09-23 (item `unit` omitted, it is optional); its response is counts (`createdCatalogs`, `createdCatalogItems`), not a resourceId, so find the new catalog with `search_catalogs`. Inventory balances by status works (Rule 97). Contact groups PUT and custom fields PUT were re-probed live 2026-09-02 and returned 200 and applied the change. Do not route around any of them.
|
|
176
176
|
47. **Non-existent endpoints**: `POST /inventory/adjustments` (and `/inventory-adjustments`, `/inventory-items/:id/adjustments`, `/items/:id/inventory-adjustments`; no stock-adjustment write path exists at any spelling), `GET /payments` (list), and `POST /payments/search` return 404; these endpoints are not implemented. For payments, per-payment CRUD is `GET/PUT/DELETE /payments/:resourceId` and there ARE two payment-scoped searches; see Rule 64. `POST /deposits` also 404s, but for a different reason, see Rule 47a; do not read it as a missing feature.
|
|
177
|
-
47a. **Deposits are not an entity; the 404 on `/deposits` is by design.** A deposit is a **flag on a Chart of Accounts account**, not a document: the account carries `depositContactType` = `CUSTOMER` (advance received, a liability) or `SUPPLIER` (advance paid, an asset). Once flagged, a deposit movement is an **ordinary transaction against that account**: top up with `POST /journals` / `POST /cash-in-entries` / `POST /cash-out-entries` (one leg on the flagged account), draw down with `POST /invoices/:id/payments` or `POST /bills/:id/payments` passing `accountResourceId` = the flagged account **and `paymentMethod` set to something other than BANK_TRANSFER / CASH / CHEQUE** (use `OTHER`; those three force a bank/cash account and 422 here, see Rule 80), read with `POST /cashflow-transactions/search`. **
|
|
177
|
+
47a. **Deposits are not an entity; the 404 on `/deposits` is by design.** A deposit is a **flag on a Chart of Accounts account**, not a document: the account carries `depositContactType` = `CUSTOMER` (advance received, a liability) or `SUPPLIER` (advance paid, an asset). Once flagged, a deposit movement is an **ordinary transaction against that account**: top up with `POST /journals` / `POST /cash-in-entries` / `POST /cash-out-entries` (one leg on the flagged account), draw down with `POST /invoices/:id/payments` or `POST /bills/:id/payments` passing `accountResourceId` = the flagged account **and `paymentMethod` set to something other than BANK_TRANSFER / CASH / CHEQUE** (use `OTHER`; those three force a bank/cash account and 422 here, see Rule 80), read with `POST /cashflow-transactions/search`. **The flag has its own endpoint**: `GET /deposit-accounts?depositContactType=CUSTOMER|SUPPLIER` lists the flagged accounts with balances per currency (the type is required, one side per call; pages count account-and-currency rows, so merge by `accountResourceId`), and `PUT /deposit-accounts` `{ accounts: [{ organizationAccountResourceId, depositContactType, restrictPaymentOverdraft }] }` (1-500) flags (`CUSTOMER` needs an active liability account, `SUPPLIER` an active asset account; never control, bank, cash or inventory accounts) or unflags (`depositContactType: null`; the key is required). `restrictPaymentOverdraft` is required when flagging: the PUT sets both fields every time. One change: any bad account refuses the whole PUT with a 422 naming each. `depositContactType` is still on no chart-of-accounts model, so `POST /chart-of-accounts` cannot create a deposit account: create the account, then flag it. Tools: `list_deposit_accounts`, `flag_deposit_accounts`. Full walkthrough: `references/endpoints.md` → Deposits.
|
|
178
178
|
48. **Attachments (full CRUD)**: **Add**: `POST /:type/:id/attachments` (multipart, `file` field, `application/pdf` or `image/*`, NOT `text/plain`). **List**: `GET /:type/:id/attachments`. **Delete**: `DELETE /:type/:id/attachments/:attachmentResourceId` (HTTP 200). CLI: `clio attachments add --file <path>` or `--url <url>`, `clio attachments list`, `clio attachments delete <attachmentResourceId>`. **The list response shape depends on the entity**. Measured raw 2026-09-07: `/invoices/:id/attachments` returns `{ reference, resourceId, attachments: [{fileName, fileType, fileId, attachmentResourceId}] }`, while `/bills/:id/attachments` and `/journals/:id/attachments` return the conventional `{ data: [...] }`. Both credit-note types were unmeasured (every sampled record was void; see below). `listAttachments` in `core/api/attachments.ts` reads either key, so through the CLI or a tool you get `.data` in all cases; only a raw request sees the split. The attachment ID field is `attachmentResourceId` (not `resourceId`). **A VOIDED record 404s on three of the five types.** Measured 2026-09-07: a voided invoice, customer credit note and supplier credit note each answer `404 not_found` with `"<Entity> is voided"`, while a voided bill and a voided journal return 200 and list normally. The 404 is about the record's status, not its existence (`GET /invoices/:id` on the same id works), so never read this 404 as a bad resourceId. Anything fanning out to attachments alongside other calls must treat that leg as degradable, or one voided record destroys the whole response; `get_transaction_summary` did exactly that until 5.55.1.
|
|
179
179
|
49. **Currency rate direction: `rate` = functionalToSource (1 base = X foreign)**. POST `rate: 0.74` for a SGD org means 1 SGD = 0.74 USD. **If your data stores rates as "1 USD = 1.35 SGD" (sourceToFunctional), you MUST invert: `rate = 1 / 1.35 = 0.74`.** GET confirms both: `rateFunctionalToSource` (what you POSTed) and `rateSourceToFunctional` (the inverse). **You do not have to do the arithmetic**: `add_currency_rate`, `update_currency_rate` and the `currency` object on the 8 FX create tools (invoice, bill, journal, both credit notes, both cash entries, TTB) accept an optional `rateDirection` (`FUNCTIONAL_TO_SOURCE` | `SOURCE_TO_FUNCTIONAL`): declare how your figure reads and pass it verbatim. Omitting it always means `FUNCTIONAL_TO_SOURCE`. The two families differ only in where the label is applied: the rate-table tools (plus `bulk_upsert_currency_rates`) send it on the wire and the server applies it, while the 8 FX create tools have no such field, so the client inverts and strips it there. Prefer either to inverting by hand: a wrong inversion is silent and wrong by rate². `clio calc fx-reval` REQUIRES the direction; that calculator historically assumed the opposite convention to the API.
|
|
180
180
|
|
|
@@ -76,7 +76,7 @@ Resources MUST be created in this order. Steps at the same level can run in para
|
|
|
76
76
|
### Level 5b: Optional/Experimental (Parallel)
|
|
77
77
|
- `POST /api/v1/catalogs` (needs Items from Level 2)
|
|
78
78
|
- `POST /api/v1/fixed-assets` (needs CoA from Level 0-1)
|
|
79
|
-
- **Deposit movements**: `POST /api/v1/journals` or `POST /api/v1/invoices/:id/payments` / `POST /api/v1/bills/:id/payments` against a deposit-flagged CoA account with `paymentMethod: OTHER` (BANK_TRANSFER/CASH/CHEQUE force a bank account, Rule 80) (needs Contacts + a CoA account
|
|
79
|
+
- **Deposit movements**: `POST /api/v1/journals` or `POST /api/v1/invoices/:id/payments` / `POST /api/v1/bills/:id/payments` against a deposit-flagged CoA account with `paymentMethod: OTHER` (BANK_TRANSFER/CASH/CHEQUE force a bank account, Rule 80) (needs Contacts + a CoA account flagged as a deposit account: create the account at Level 0-1, then flag it with `PUT /api/v1/deposit-accounts`). There is no `POST /api/v1/deposits` (SKILL.md Rule 47a).
|
|
80
80
|
|
|
81
81
|
These endpoints may not be available on all organizations. Use try/catch with graceful fallback.
|
|
82
82
|
|
|
@@ -1837,7 +1837,7 @@ POST /api/v1/catalogs
|
|
|
1837
1837
|
|
|
1838
1838
|
---
|
|
1839
1839
|
|
|
1840
|
-
## Deposits (
|
|
1840
|
+
## Deposits (a flag on an account, not an entity)
|
|
1841
1841
|
|
|
1842
1842
|
> **There is no deposits entity.** No `/deposits` route exists at any spelling and none is
|
|
1843
1843
|
> planned. A deposit is a *flag on a Chart of Accounts account*, not a document. See
|
|
@@ -1846,7 +1846,48 @@ POST /api/v1/catalogs
|
|
|
1846
1846
|
|
|
1847
1847
|
**The flag**: a CoA account carries `depositContactType`, which is `CUSTOMER` (customer deposit /
|
|
1848
1848
|
advance received, a liability), `SUPPLIER` (supplier deposit / advance paid, an asset), or
|
|
1849
|
-
`NULL` (an ordinary account).
|
|
1849
|
+
`NULL` (an ordinary account). The flag is listed and set through `/deposit-accounts`.
|
|
1850
|
+
|
|
1851
|
+
### GET /api/v1/deposit-accounts
|
|
1852
|
+
|
|
1853
|
+
`depositContactType=CUSTOMER|SUPPLIER` is required: one side per call. `limit` (max 1000,
|
|
1854
|
+
default 100) and `offset` (0-indexed page). Returns the active flagged accounts with their
|
|
1855
|
+
balances per currency:
|
|
1856
|
+
|
|
1857
|
+
```json
|
|
1858
|
+
{ "data": [{ "accountResourceId": "uuid", "accountCode": "2150", "accountName": "Customer Deposits",
|
|
1859
|
+
"accountClass": "Liability", "accountType": "Current Liability", "depositContactType": "CUSTOMER",
|
|
1860
|
+
"restrictPaymentOverdraft": false,
|
|
1861
|
+
"accountBalances": [{ "sourceCurrencyCode": "SGD", "sourceBalanceAmount": 500 }] }],
|
|
1862
|
+
"totalElements": 1, "totalPages": 1 }
|
|
1863
|
+
```
|
|
1864
|
+
|
|
1865
|
+
Paging counts one row per account AND currency, so an account holding several currencies can
|
|
1866
|
+
appear on two pages, each with part of its balances: merge by `accountResourceId`. An account
|
|
1867
|
+
with no entries yet has no `accountBalances`.
|
|
1868
|
+
|
|
1869
|
+
### PUT /api/v1/deposit-accounts
|
|
1870
|
+
|
|
1871
|
+
```json
|
|
1872
|
+
{ "accounts": [
|
|
1873
|
+
{ "organizationAccountResourceId": "uuid", "depositContactType": "CUSTOMER", "restrictPaymentOverdraft": true },
|
|
1874
|
+
{ "organizationAccountResourceId": "uuid-2", "depositContactType": null }
|
|
1875
|
+
] }
|
|
1876
|
+
```
|
|
1877
|
+
|
|
1878
|
+
- 1-500 entries, each account once. `depositContactType` is required on every entry: `null`
|
|
1879
|
+
unflags, a missing key is refused (so a missing value can never unflag by accident).
|
|
1880
|
+
- `restrictPaymentOverdraft` is required when flagging: the PUT sets both fields every time, so
|
|
1881
|
+
a default would clear a stored `true`. `true` refuses a payment against the account that
|
|
1882
|
+
exceeds the contact's remaining deposit balance. It cannot be `true` on an unflag.
|
|
1883
|
+
- `CUSTOMER` needs an active **liability** account, `SUPPLIER` an active **asset** account.
|
|
1884
|
+
Control accounts and Bank Accounts, Cash and Inventory accounts cannot be deposit accounts.
|
|
1885
|
+
- Applied as one change: an account not found in the organization, or one that cannot take the
|
|
1886
|
+
setting, refuses the whole request with a 422 naming every such account; nothing changes.
|
|
1887
|
+
- Unflagging takes the account and its balances out of the list; payments already recorded on
|
|
1888
|
+
it are kept.
|
|
1889
|
+
- Tools: `list_deposit_accounts`, `flag_deposit_accounts`. CLI: `clio accounts deposit-accounts`,
|
|
1890
|
+
`clio accounts flag-deposit-accounts`.
|
|
1850
1891
|
|
|
1851
1892
|
**The movement**: once an account is flagged, a deposit is an *ordinary transaction posted
|
|
1852
1893
|
against that account*. Nothing about the call is deposit-specific. The transaction types that
|
|
@@ -1868,11 +1909,10 @@ land on a deposit account are the normal ones: `SALE`, `PURCHASE`, `PAYMENT_SALE
|
|
|
1868
1909
|
> plain choice. The tools default `paymentMethod` to `BANK_TRANSFER`, so a drawdown that
|
|
1869
1910
|
> does not set it explicitly will 422. See SKILL.md Rule 80.
|
|
1870
1911
|
|
|
1871
|
-
**What the
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
and post against an account someone already flagged.
|
|
1912
|
+
**What the chart-of-accounts calls cannot do**: `depositContactType` is not on any
|
|
1913
|
+
chart-of-accounts request or response model, so `POST /chart-of-accounts` cannot create a
|
|
1914
|
+
deposit account and `GET /chart-of-accounts` does not show the flag. Create the account, then
|
|
1915
|
+
flag it with `PUT /deposit-accounts`; read the flag with `GET /deposit-accounts`.
|
|
1876
1916
|
|
|
1877
1917
|
---
|
|
1878
1918
|
|
|
@@ -605,12 +605,20 @@ nothing is missing: a deposit is not a document.
|
|
|
605
605
|
carries `depositContactType` = `CUSTOMER` or `SUPPLIER`; a deposit is then an ordinary
|
|
606
606
|
transaction on it.
|
|
607
607
|
- Top up: `POST /journals`, `POST /cash-in-entries`, `POST /cash-out-entries` (one leg on the flagged account).
|
|
608
|
-
- Draw down against an invoice or bill: `POST /invoices/:resourceId/payments` or `POST /bills/:resourceId/payments` with `accountResourceId` = the flagged account.
|
|
608
|
+
- Draw down against an invoice or bill: `POST /invoices/:resourceId/payments` or `POST /bills/:resourceId/payments` with `accountResourceId` = the flagged account and `paymentMethod: OTHER` (Rule 80).
|
|
609
609
|
- Read movements: `POST /cashflow-transactions/search` on that account.
|
|
610
610
|
|
|
611
|
-
**
|
|
612
|
-
|
|
613
|
-
|
|
611
|
+
**The flag is set with `PUT /deposit-accounts`** and listed with
|
|
612
|
+
`GET /deposit-accounts?depositContactType=CUSTOMER|SUPPLIER`. `depositContactType` is not on any
|
|
613
|
+
chart-of-accounts model, so `POST /chart-of-accounts` cannot create a deposit account: create the
|
|
614
|
+
account, then flag it. Full model: SKILL.md Rule 47a, `endpoints.md` → Deposits, `feature-glossary.md` → Deposits.
|
|
615
|
+
|
|
616
|
+
### 422 on `PUT /deposit-accounts`
|
|
617
|
+
The request is applied as one change, so one bad entry refuses all of them and the error names
|
|
618
|
+
every bad account: not found in the organization, inactive, a control account, a Bank Accounts,
|
|
619
|
+
Cash or Inventory account, or the wrong class (`CUSTOMER` needs a liability, `SUPPLIER` an
|
|
620
|
+
asset). A missing `depositContactType` key, or a flag without `restrictPaymentOverdraft`, is a
|
|
621
|
+
422 too. Fix the named accounts and send the whole request again.
|
|
614
622
|
|
|
615
623
|
**`/cash-entries` is NOT a 404 path**; an earlier version of this note listed it. A bare
|
|
616
624
|
`POST /cash-entries` has no handler, but the prefix is live:
|
|
@@ -80,7 +80,7 @@ Track advance payments and prepaid balances. Customer deposits are liabilities (
|
|
|
80
80
|
|
|
81
81
|
Can block payments if deposit balance is insufficient. View all contacts with deposits and filter by balance status. Managed via dedicated deposit accounts in the Chart of Accounts.
|
|
82
82
|
|
|
83
|
-
**The mechanism**: an account is marked as a deposit account by `depositContactType` on the chart-of-accounts record: `CUSTOMER` (advance received, a liability), `SUPPLIER` (advance paid, an asset), or `NULL` (an ordinary account). The flag is
|
|
83
|
+
**The mechanism**: an account is marked as a deposit account by `depositContactType` on the chart-of-accounts record: `CUSTOMER` (advance received, a liability), `SUPPLIER` (advance paid, an asset), or `NULL` (an ordinary account). The flag is listed with `GET /deposit-accounts?depositContactType=CUSTOMER|SUPPLIER` (balances per currency) and set or cleared with `PUT /deposit-accounts`, which also sets `restrictPaymentOverdraft` (block a payment beyond the contact's deposit balance). It is not on the chart-of-accounts models, so `POST /chart-of-accounts` cannot create a deposit account: create the account, then flag it.
|
|
84
84
|
|
|
85
85
|
There is no dedicated `/deposits` endpoint (returns 404) and none is planned; a deposit is not a document. Once an account is flagged, a deposit movement is an ordinary transaction against it, carrying the ordinary `businessTransactionType` values (`SALE`, `PURCHASE`, `PAYMENT_SALE`, `PAYMENT_PURCHASE`, `JOURNAL_DIRECT_CASH_IN`, `JOURNAL_DIRECT_CASH_OUT`, `JOURNAL_MANUAL`).
|
|
86
86
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> **The endpoints clio wraps (the REST surface is larger).** This file catalogues roughly 200
|
|
4
4
|
> paths, organized by resource, including undocumented endpoints, magic AI features, admin
|
|
5
5
|
> APIs, and advanced search/filter syntax. The committed OpenAPI spec (`spec/openapi.yaml`)
|
|
6
|
-
> carries
|
|
6
|
+
> carries 619 spec paths and 777 spec operations and is the authoritative list; check it before concluding
|
|
7
7
|
> an endpoint does not exist. For request/response examples of core endpoints, see
|
|
8
8
|
> endpoints.md.
|
|
9
9
|
>
|
|
@@ -965,6 +965,13 @@ for `fixed-assets`, `deferrals`, `leases`, `loans`, `cash-in-entries`, `cash-out
|
|
|
965
965
|
Upload takes the `file` field only (no `attachmentType`). Wrapped by `get_attachments` /
|
|
966
966
|
`add_attachment` / `delete_attachment` and `clio attachments`.
|
|
967
967
|
|
|
968
|
+
### Deposit accounts (2): 2026-11-24
|
|
969
|
+
|
|
970
|
+
| Method | Path | Description |
|
|
971
|
+
|--------|------|-------------|
|
|
972
|
+
| GET | `/deposit-accounts` | Flagged deposit accounts, one side per call (`depositContactType` required), balances per currency (`list_deposit_accounts`) |
|
|
973
|
+
| PUT | `/deposit-accounts` | Flag (`CUSTOMER` / `SUPPLIER` + `restrictPaymentOverdraft`) or unflag (`null`) accounts, 1-500, one change (`flag_deposit_accounts`) |
|
|
974
|
+
|
|
968
975
|
---
|
|
969
976
|
|
|
970
977
|
*Last updated: 2026-08-16 (added the "Additions since 2026-07-11" section: request-changes ×18, payments bulk/batch ×9, cash bulk ×3, record-list option pickers ×4, bank-record archive ×2, withholding ×1; dropped the "every endpoint" claim: the tables above cover the endpoints clio wraps, not the whole surface). Previous: 2026-07-11 (added Jots judgment journal: 3 endpoints). 2026-04-29: Added 3 drafts lifecycle endpoints (validate, convert-to-active, submit-for-approval), bulk-friendly, mixed-type batches up to 500. Same day: 8 reconciliation action endpoints; 8 bulk-upsert endpoints. 2026-04-09: Background Jobs, Export Records, contacts bulk-upsert.*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: jaz-cli
|
|
3
|
-
version: 9.
|
|
3
|
+
version: 9.8.0
|
|
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
|
-
80 command groups and
|
|
11
|
+
80 command groups and 523 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. 80 command groups, 13 calculators, 12 job playbooks (jaz-jobs skill),
|
|
20
|
+
You are working with **Clio** (`jaz-clio`), the CLI for the Jaz accounting platform. 80 command groups, 13 calculators, 12 job playbooks (jaz-jobs skill), 523 tools. Also fully compatible with Juan Accounting (same API, same endpoints).
|
|
21
21
|
|
|
22
22
|
## When to Use This Skill
|
|
23
23
|
|
|
@@ -148,6 +148,8 @@ Same subcommands and flags as `cash-in`.
|
|
|
148
148
|
| `get <id>` | `--json` |
|
|
149
149
|
| `create` | `--name`, `--code`, `--type`, `--currency`, `--status`, `--input` |
|
|
150
150
|
| `delete <id>` | |
|
|
151
|
+
| `deposit-accounts` | `--type CUSTOMER\|SUPPLIER` (required), `--limit`, `--offset`, `--all` |
|
|
152
|
+
| `flag-deposit-accounts` | `--account <id...>`, `--type CUSTOMER\|SUPPLIER`, `--restrict-overdraft true\|false` (required to flag), `--unflag`, `--input`: changes org setup |
|
|
151
153
|
|
|
152
154
|
### `clio items`: Products and services
|
|
153
155
|
| Subcommand | Key flags |
|
|
@@ -876,7 +878,7 @@ Valid entity types: INVOICE, BILL, CUSTOMER_CREDIT_NOTE, SUPPLIER_CREDIT_NOTE, S
|
|
|
876
878
|
Universal async tracker: any operation returning a jobId (contacts bulk-upsert, items bulk-upsert, bank import, magic processing) can be polled here.
|
|
877
879
|
|
|
878
880
|
### `clio mcp`: MCP stdio server
|
|
879
|
-
Starts an MCP server for Claude Code / AI tool integration. Exposes all
|
|
881
|
+
Starts an MCP server for Claude Code / AI tool integration. Exposes all 523 operations.
|
|
880
882
|
|
|
881
883
|
### `clio init`: Skill installer
|
|
882
884
|
Installs AI agent skills into your project.
|
|
@@ -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 **
|
|
7
|
+
Jaz exposes **523 tools across 61 namespaces**. Your tool list shows **3, 61, or 523** 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
|
- **61**: namespace routers; call one with `{ operation, arguments }`.
|
|
11
|
-
- **
|
|
11
|
+
- **523**: 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
|
|