Simpler.Asia is an MCP server published by asia.simpler, hosted at simpler.asia. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 300 tools, including simpler.directory, simpler.describe_service, simpler.invoke, simpler.outcomes, simpler.approval_status.
Free back office for small businesses in Singapore and Southeast Asia: invoices, expenses, stock.
3 connections through 4 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
DISCOVERY TIER 1 of 3 — the service directory: one token-dense line per service (s:name st:status cost:class ops:N — purpose). START HERE instead of reading every tool. No auth required. NEXT: simpler.describe_service with a service name from the listing.
No parameters.
{
"name": "simpler.directory",
"description": "DISCOVERY TIER 1 of 3 — the service directory: one token-dense line per service (s:name st:status cost:class ops:N — purpose). START HERE instead of reading every tool. No auth required. NEXT: simpler.describe_service with a service name from the listing.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}DISCOVERY TIER 2 of 3 — one service's operations and entity shapes from the live catalog, token-dense (op lines name the underlying tool). No auth required. NEXT: simpler.invoke {service, operation, args} — or call the named tool directly.
| Parameter | Type | Description |
|---|---|---|
| service * | string | A service name from simpler.directory. |
{
"name": "simpler.describe_service",
"description": "DISCOVERY TIER 2 of 3 — one service's operations and entity shapes from the live catalog, token-dense (op lines name the underlying tool). No auth required. NEXT: simpler.invoke {service, operation, args} — or call the named tool directly.",
"inputSchema": {
"type": "object",
"required": [
"service"
],
"properties": {
"service": {
"type": "string",
"description": "A service name from simpler.directory."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}DISCOVERY TIER 3 of 3 — execute one operation: dispatches to the underlying generated tool (same gates, same envelope, same idempotency as calling it directly). Requires auth. args = the underlying tool's arguments object.
| Parameter | Type | Description |
|---|---|---|
| args | object | Arguments for the resolved tool. |
| service * | string | A service name from simpler.directory. |
| operation * | string | An op name from simpler.describe_service (e.g. 'create'), or the full tool name (e.g. 'sticky_note_create'). |
{
"name": "simpler.invoke",
"description": "DISCOVERY TIER 3 of 3 — execute one operation: dispatches to the underlying generated tool (same gates, same envelope, same idempotency as calling it directly). Requires auth. args = the underlying tool's arguments object.",
"inputSchema": {
"type": "object",
"required": [
"service",
"operation"
],
"properties": {
"args": {
"type": "object",
"description": "Arguments for the resolved tool."
},
"service": {
"type": "string",
"description": "A service name from simpler.directory."
},
"operation": {
"type": "string",
"description": "An op name from simpler.describe_service (e.g. 'create'), or the full tool name (e.g. 'sticky_note_create')."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}DISCOVERY TIER 0 — the OUTCOME MENU: one line per common business outcome, each mapped to ONE tool with one-call notes (composites: ONE call creates the whole document). START HERE for a business task. No auth required. NEXT: call the named tool directly, or simpler.directory for the full catalog.
| Parameter | Type | Description |
|---|---|---|
| outcome | string | Optional: what you want done, in a few words. The answer is that outcome's one line and its tool. |
{
"name": "simpler.outcomes",
"description": "DISCOVERY TIER 0 — the OUTCOME MENU: one line per common business outcome, each mapped to ONE tool with one-call notes (composites: ONE call creates the whole document). START HERE for a business task. No auth required. NEXT: call the named tool directly, or simpler.directory for the full catalog.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"outcome": {
"type": "string",
"description": "Optional: what you want done, in a few words. The answer is that outcome's one line and its tool."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Check a parked approval by approval_id (returned in an APPROVAL_REQUIRED refusal). States: pending (the account owner has not decided — tell the user, do NOT retry the original call), executed (done — the result rides this response; never re-run the call; an approved invoice_share or quote_share keeps no link or document here, so read the current link with that tool and action 'get' as result.link_not_stored.next_call says), rejected / expired / failed (terminal — re-compose only if the user asks again). Scoped to the granting user's approvals.
| Parameter | Type | Description |
|---|---|---|
| approval_id * | string | The approval id from the APPROVAL_REQUIRED refusal envelope. |
{
"name": "simpler.approval_status",
"description": "Check a parked approval by approval_id (returned in an APPROVAL_REQUIRED refusal). States: pending (the account owner has not decided — tell the user, do NOT retry the original call), executed (done — the result rides this response; never re-run the call; an approved invoice_share or quote_share keeps no link or document here, so read the current link with that tool and action 'get' as result.link_not_stored.next_call says), rejected / expired / failed (terminal — re-compose only if the user asks again). Scoped to the granting user's approvals.",
"inputSchema": {
"type": "object",
"required": [
"approval_id"
],
"properties": {
"approval_id": {
"type": "string",
"description": "The approval id from the APPROVAL_REQUIRED refusal envelope."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Send a cross-tenant AI-to-AI message into another tenant's agent_note inbox — the door that turns a cross_tenant_comm consent grant into an actual reach. Both tenants must be KYB-approved and the recipient must hold an active grant (claims can narrow it further); every recipient-side failure refuses identically so the network can't be probed for who exists — only your OWN unapproved KYB answers distinctly, since that discloses nothing about the target. Your sender identity is injected server-side into from_tenant_id and cannot be spoofed. NEXT: agent_note_list on the recipient side confirms delivery.
| Parameter | Type | Description |
|---|---|---|
| body | string | |
| status | string | one of ["unread","read"] |
| subject | string | |
| to_tenant_id * | string | The recipient tenant id — must be another tenant, never your own. The recipient must hold an active cross_tenant_comm consent grant and both tenants must be KYB-approved, or the door refuses uniformly without revealing which condition failed. |
| from_tenant_id | string | |
| consent_grant_id | string | |
| related_entity_id | string | |
| related_entity_type | string |
Create-or-merge a contact keyed on email-then-phone identity — the sync door the future desktop harness and ingest lanes write through. Matching probes email first, then phone; a hit MERGES only the fields you send (omitted fields keep their stored values, so a partial sync payload can never wipe a curated field), a miss creates. Status moves still obey the transition machine — an upsert cannot jump straight to vip. Accepts the same first-note/first-interaction composite children as contact_create.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| note | string | Log a first note in the SAME call — ONE call makes both. |
| tags | string | |
| string | ||
| notes | string | Alias of note. |
| phone | string | |
| source | string | one of ["manual","import","invoice","sync"] |
| status | string | one of ["lead","contacted","qualified","customer","vip","inactive"] |
| address | string | |
| company | string | |
| interaction | object | Log the first interaction in the same call: {type, summary, occurred_at?} — occurred_at takes "YYYY-MM-DD". |
Logs a new expense — amount_cents must be integer CENTS (a decimal string via `amount` also works, and `category` resolves to a category_id by name). A same-amount, same-UTC-day duplicate for the same user is refused as CONFLICT unless you resend identically with force: true. Status is honor-or-refuse: admin/owner creators land 'approved' by default (or may request it explicitly), everyone else always starts 'draft'. NEXT: expense_submit sends a draft into the approval queue.
| Parameter | Type | Description |
|---|---|---|
| cost | string | Alias of amount — same decimal money STRING parsing. |
| date | string | YYYY-MM-DD (omitted = today). |
| force | boolean | Resend an identical expense_create with force: true to save it despite a same-amount, same-UTC-day duplicate match; omitted or false leaves the duplicate check refusing with CONFLICT. |
| notes | string | |
| total | string | Alias of amount — same decimal money STRING parsing. |
| amount | string | Decimal money STRING ("23.50") — the platform converts; integer CENTS ($23.50 → 2350) via amount_cents is also accepted. |
| status | string | one of ["draft","pending","approved","rejected","reimbursed"] |
| vendor | string | |
| category | string | Category by name or slug, e.g. 'food'. |
Sends your own draft expense into the approval queue — draft only; an already-submitted or resolved expense refuses CONFLICT, and only the expense's own creator may submit it. Nobody is notified automatically — approvers see it appear in the Team Claims view. NEXT: expense_approve or expense_reject (admin/owner).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense id (expense_list shows them). |
| notes | string | |
| status | string | one of ["draft","pending","approved","rejected","reimbursed"] |
| vendor | string | |
| currency | string | |
| ocr_json | string | |
| tax_type | string | one of ["GST","SST","VAT","PPN"] |
| tags_json | string | |
| approved_at | integer | |
| approved_by | string | |
| category_id | string | |
| receipt_key | string |
Approves a submitted expense claim — requires the admin or owner role, and only a 'pending' expense qualifies (CONFLICT otherwise). Stamps approved_by and approved_at with the caller and the current time; once approved, the row's content freezes for everyone except the approver themselves. NEXT: expense_reimburse (owner only) to pay it out.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense id (expense_list shows them). |
| notes | string | |
| status | string | one of ["draft","pending","approved","rejected","reimbursed"] |
| vendor | string | |
| currency | string | |
| ocr_json | string | |
| tax_type | string | one of ["GST","SST","VAT","PPN"] |
| tags_json | string | |
| approved_at | integer | |
| approved_by | string | |
| category_id | string | |
| receipt_key |
Log an interaction — call, meeting, email, message, visit, payment, or other — against a contact. The ONE activity-logging door every lane funnels through, so the contact's last_contact_at freshness bumps no matter which surface logged the touch; the bump never moves backward, so importing older history can never regress a fresher touch. Accepts contact_name, contact_email or contact_phone in place of contact_id. NEXT: contact_read to see the bumped last_contact_at.
| Parameter | Type | Description |
|---|---|---|
| summary | string | |
| contact_id | string | |
| source_ref | string | |
| occurred_at | integer | |
| contact_name | string | No contact_id handy? Resolves the contact by exact name — a unique match wins; ambiguity refuses with the candidate ids. |
| contact_email | string | Resolves the contact by exact email when contact_id is absent. |
| contact_phone | string | Resolves the contact by exact phone when contact_id is absent. |
| interaction_type | string | one of ["meeting","call","email","message","visit","payment","other"] |
ONE call creates the whole document: client_name + `items` [{description, quantity, unit_price}], each price as written ("5000.00"). It claims the next invoice number and writes every line; client_name finds or creates the client. A 'paid' birth needs items in the same call. tax_scheme sg_gst or my_sst taxes each line by its tax_code (refusals: see tax_scheme). When present, the second content block is the invoice as copy-ready text, shown with a Copy button where the host draws MCP Apps; if the user says they cannot see the invoice, give them that block word for word; share:true adds a client link, only when the user asks for one. NEXT: invoice_payment_record to record money-in.
| Parameter | Type | Description |
|---|---|---|
| force | boolean | Confirms a create whose notes or single line item read like a payment RECEIVED or a write-off rather than a new bill — resend the SAME call with force:true to create it anyway. No effect on quote_create (the intent trap is invoice-only). |
| items | array | ONE call creates the whole document — each line's unit_price is its price exactly as written, a decimal string ("5000.00" for $5,000), and the platform stores the cents itself; or send unit_price_cents in integer CENTS ($15.00 → 1500). quantity takes up to 3 decimals (1.5 hours → 1.5); unit is an op… |
| notes | string | |
| share | boolean | Only when the user asks for a link: true also returns share_url (the client's link to view the invoice) and the full document in this same call. Where this environment has no public address, share_path and share_url_unavailable come back instead of share_url. Nothing is sent. |
| status | string | one of ["draft","sent","paid","cancelled"] |
| paid_at | integer | |
[REQUIRES APPROVAL] Records a credit note, write-off or post-issue discount on an issued invoice. A credit_note is numbered from the credit note series, holds its tax at the invoice's rate and takes reason_code and credit_outcome: reduce_balance (default) lowers what is owed; refunded_outside records a refund the business made outside Simpler, moves no money and is how a 'paid' invoice gets one. write_off and discount_post_issue need a 'sent' invoice. Money is integer CENTS (amount_cents) or a decimal STRING (amount); caps: see preconditions. Refuses a draft, a cancelled invoice, an amount over its cap and dispute_settlement; each refusal names the fix. An agent's call parks for approval. NEXT: invoice_read.
| Parameter | Type | Description |
|---|---|---|
| amount | string | Money as a decimal STRING ("1500.00" = $1,500.00), parsed server-side. Use amount_cents for integer CENTS instead — never convert units yourself. |
| reason | string | |
| partial | boolean | Confirms a deliberate PARTIAL write_off below the invoice's full remaining balance (checked only when adjustment_type is write_off) — resend the SAME call with partial:true; without it a below-remainder write_off refuses as a likely mis-carried amount. |
| currency | string | |
| invoice_id | string | |
| occurred_at | integer | |
| reason_code | string | one of ["goods_returned","damaged_or_defective","pricing_error","discount","service_not_rendered","cancellation","other"] |
| amount_cents |
Records a money-in fact row against an invoice (by invoice_id or its invoice_number) in ONE call: money is integer CENTS via amount_cents, or a decimal STRING via amount — never multiply or divide yourself. A draft invoice auto-advances to 'sent'; a cancelled invoice refuses; an amount above the remaining balance refuses unless allow_overpayment is true. status 'paid' derives from the ledger this writes, so this is how an invoice becomes paid. A same invoice/amount/day repeat refuses as a likely duplicate unless resent with force:true. NEXT: invoice_read to read it back.
| Parameter | Type | Description |
|---|---|---|
| note | string | |
| force | boolean | Confirms a genuine second payment when the same invoice/amount/day already has one recorded (default false refuses it as a likely duplicate) — resend the SAME call with force:true. |
| amount | string | Money as a decimal STRING ("1500.00" = $1,500.00), parsed server-side. Use amount_cents for integer CENTS instead — never convert units yourself. |
| method | string | one of ["cash","transfer","ewallet","other"] |
| currency | string | |
| invoice_id | string | |
| occurred_at | integer | |
| amount_cents | integer | |
| invoice_number | string | Alias of invoice_id — the invoice's own number (tenant-unique), resolved server-side. |
Mint a sealed LHDN e-invoice in ONE call: invoice_type, line_items (unit_price_cents in integer CENTS, tax_rate_bps in basis points), and a buyer as customer_id or an inline buyer object. Refuses until myinvois_settings_save is done; invoice_type 02/03/04 also needs original_invoice_id naming a type-01 invoice with a recorded LHDN UUID, checked BEFORE the number is claimed, so a rejected note never burns a number. The result is immutable and carries portal_field_sheet; Simpler never submits it to LHDN. NEXT: the owner keys the field sheet into the MyInvois portal form, then myinvois_invoice_record_submission with the UUID the portal assigns.
| Parameter | Type | Description |
|---|---|---|
| buyer | object | Inline one-off buyer party — {name, tin, brn?, address?, city?, state_code?, postal_code?, country_code?, email?, contact_number?}. Required when customer_id is not given; ignored when it is. |
| notes | string | Free-text notes printed on the generated e-invoice; optional. |
| status | string | one of ["generated","submitted"] |
| currency | string | |
| buyer_tin | string | |
| lhdn_uuid | string | |
| tax_cents | integer | |
| buyer_name | string | |
| issue_date | string | |
| line_items |
Record the UUID the LHDN MyInvois portal assigned after the owner keyed this e-invoice into the portal (its form or LHDN's Excel batch template). Simpler never submits to LHDN and never calls the MyInvois API; this only stores the UUID the owner copies back. Only a type-01 original accepts a UUID: credit, debit and refund notes are refused (they link through BillingReference), so record the UUID on the original instead. Moves status generated to submitted; calling it again on a submitted invoice corrects a mistyped UUID. NEXT: myinvois_invoice_read to see the UUID attached.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_invoice id to record the LHDN UUID against (myinvois_invoice_list shows them). |
| status | string | one of ["generated","submitted"] |
| currency | string | |
| buyer_tin | string | |
| lhdn_uuid | string | |
| tax_cents | integer | |
| buyer_name | string | |
| issue_date | string | |
| customer_id | string | |
| total_cents | integer | |
Read one sealed e-invoice by id, with its portal_field_sheet: the document's values laid out to key into the LHDN MyInvois portal form (e-invoice details, supplier, buyer, each line, totals), coded values with their meaning. Simpler never submits to LHDN; portal_field_sheet.portal_routes names the two portal routes (the online form and LHDN's Excel batch template). Refuses an id outside your tenant with NOT_FOUND: call myinvois_invoice_list for valid ids. NEXT: after the portal accepts it, myinvois_invoice_record_submission with the UUID it assigns.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_invoice id. |
{
"name": "myinvois_invoice_read",
"description": "Read one sealed e-invoice by id, with its portal_field_sheet: the document's values laid out to key into the LHDN MyInvois portal form (e-invoice details, supplier, buyer, each line, totals), coded values with their meaning. Simpler never submits to LHDN; portal_field_sheet.portal_routes names the two portal routes (the online form and LHDN's Excel batch template). Refuses an id outside your tenant with NOT_FOUND: call myinvois_invoice_list for valid ids. NEXT: after the portal accepts it, myinvois_invoice_record_submission with the UUID it assigns.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_invoice id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}ONE call creates the whole document: client_name + `items` [{description, quantity, unit_price}], each price as written ("5000.00"). It claims the next atomic quote number and writes every line together; client_name finds or creates the client. tax_scheme sg_gst or my_sst taxes each line by its tax_code (refusals: see tax_scheme). When present, the second content block is the quote as copy-ready text, shown with a Copy button where the host draws MCP Apps; if the user says they cannot see the quote, give them that block word for word; make a client link with quote_share only when the user asks for one. NEXT: quote_convert to turn the quote into its invoice.
| Parameter | Type | Description |
|---|---|---|
| force | boolean | Confirms a create whose notes or single line item read like a payment RECEIVED or a write-off rather than a new bill — resend the SAME call with force:true to create it anyway. No effect on quote_create (the intent trap is invoice-only). |
| items | array | ONE call creates the whole document — each line's unit_price is its price exactly as written, a decimal string ("5000.00" for $5,000), and the platform stores the cents itself; or send unit_price_cents in integer CENTS ($15.00 → 1500). quantity takes up to 3 decimals (1.5 hours → 1.5); unit is an op… |
| notes | string | |
| status | string | one of ["draft","sent","accepted","declined","converted"] |
| currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| client_id | string | |
| issue_date | integer |
Converts a quote into its invoice in ONE call: claims the quote's 'converted' status first (so a lost race never creates an orphan invoice), copies every live line item across, and records converted_invoice_id — nothing else to do afterward. Refuses if the quote is already converted (the error carries converted_invoice_id) or declined (revive it with quote_update first), and refuses with nothing converted when the quote or its lines changed while it was converting (for example a quote_item call running at the same time): read the quote again with quote_read, then convert. NEXT: invoice_read on the new invoice.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The quote id (quote_list shows them). |
| notes | string | |
| status | string | one of ["draft","sent","accepted","declined","converted"] |
| currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| quote_id | string | Alias of id. |
| client_id | string | |
| issue_date | integer | |
| tax_scheme | string | one of ["sg_gst","my_sst"] |
| valid_until | integer | |
| quote_number |
Record a payment obligation against a KYB-verified partner tenant's settlement_proposals — the record-don't-move on-ramp: this writes the row only, no money moves until a later settlement-rails door executes it. amount_cents is a nonzero integer CENTS (positive = you owe them, negative = a refund/reversal record) and currency must be a 3-letter code. Requires the payee's cross_tenant_settlement consent grant and both sides KYB-approved; payee-side failures refuse identically to block probing, but your OWN unapproved KYB answers distinctly. Your tenant is injected as payer_tenant_id and cannot be spoofed. NEXT: settlement_proposal_accept moves it to accepted on the payee side.
| Parameter | Type | Description |
|---|---|---|
| status | string | one of ["proposed","accepted","settled"] |
| currency | string | |
| accepted_at | integer | |
| description | string | |
| amount_cents | integer | |
| to_tenant_id * | string | The payee tenant id — must be another tenant, never your own. The payee must hold an active cross_tenant_settlement consent grant and both tenants must be KYB-approved, or the door refuses uniformly without revealing which condition failed. |
| payer_tenant_id | string | |
| consent_grant_id | string | |
| related_entity_id |
Create a sticky_note.
| Parameter | Type | Description |
|---|---|---|
| color | string | one of ["amber","rose","verdigris","sky","onyx"] |
| width | integer | |
| height | integer | |
| content * | string | |
| z_index | integer | |
| position_x | integer | |
| position_y | integer | |
| triggers_at | integer |
{
"name": "sticky_note_create",
"description": "Create a sticky_note.",
"inputSchema": {
"type": "object",
"required": [
"content"
],
"properties": {
"color": {
"enum": [
"amber",
"rose",
"verdigris",
"sky",
"onyx"
],
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"content": {
"type": "string",
"maxLength": 2000
},
"z_index": {
"type": "integer"
},
"position_x": {
"type": "integer"
},
"position_y": {
"type": "integer"
},
"triggers_at": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Move stock in or out by id or item name, in one atomic write with its movements-ledger row: stock-out clamps at zero (never negative) and applied_quantity reports what actually moved. An unmatched name CREATES the item at quantity 0 first so the delivery still lands as an audited ledger row; a name matching multiple active items refuses with the candidate ids. Concurrent adjusts on the same item retry instead of losing a write. NEXT: stock_item_list to see the item's updated balance in the full inventory.
| Parameter | Type | Description |
|---|---|---|
| id | string | The stock item id. |
| name | string | No id? Resolve-or-create by item name: a unique active match resolves; an unknown name CREATES the item at quantity 0 and the adjustment lands as its first ledger row. |
| type * | string | "in" | "out" — also accepts received/delivery/restock (→ in) and sold/used (→ out). |
| unit | string | |
| notes | string | Free-form note recorded on the movements-ledger row. |
| reason | string | Why the stock moved — recorded on the movements-ledger row. |
| category | string | |
| quantity * | integer | Whole units — count whole units: 24 bags → 24 (the digit string "24" also works). |
| is_active | integer |
[REQUIRES APPROVAL] Delegates a task to a teammate (or yourself) as a new team_assignment; status is workflow-owned and always starts 'pending' — passing status yourself fails validation instead of being silently overridden. Accepts natural language for the common fields: task_name/task for title, due_date/due for due_at ('YYYY-MM-DD', epoch millis, 'today', 'tomorrow', or 'next <weekday>'), and 'self'/'me'/'yourself' for assigned_to. assigned_to must already be a member of your tenant. NEXT: team_assignment_accept, then _start and _complete, drive the lifecycle from there.
| Parameter | Type | Description |
|---|---|---|
| due | string | Alias of due_at (same accepted forms as due_date). |
| task | string | Alias of title (same as task_name). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| due_date | string | Alias of due_at — "YYYY-MM-DD", "today", "tomorrow", or "next <weekday>" (epoch milliseconds also works — pass it via due_at directly instead). |
| priority | string | one of ["low","normal","high","urgent"] |
| task_name | string | Alias of title — the task's name in plain language. |
| started_at | integer | |
Create a workflow — an AI operator's job: validates definition_json (a { nodes, edges, schedule? } graph) against the platform's node vocabulary, refusing unknown node types and any comms/message-shaped step that isn't a prepare_output node, since the platform prepares outputs but never sends them. trigger_type 'schedule' requires a schedule block; next_run_at is then computed server-side from it, never from a caller value. is_active defaults to 0 (draft) — going live is a separate explicit choice. NEXT: workflow_update to fix a rejected definition or flip is_active.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| is_active | integer | |
| role_name | string | |
| description | string | |
| next_run_at | integer | |
| trigger_type | string | one of ["manual","webhook","schedule"] |
| imported_from | string | |
| definition_json | string |
{
"name": "workflow_create",
"description": "Create a workflow — an AI operator's job: validates definition_json (a { nodes, edges, schedule? } graph) against the platform's node vocabulary, refusing unknown node types and any comms/message-shaped step that isn't a prepare_output node, since the platform prepares outputs but never sends them. trigger_type 'schedule' requires a schedule block; next_run_at is then computed server-side from it, never from a caller value. is_active defaults to 0 (draft) — going live is a separate explicit choice. NEXT: workflow_update to fix a rejected definition or flip is_active.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"is_active": {
"type": "integer"
},
"role_name": {
"type": "string",
"maxLength": 60
},
"description": {
"type": "string",
"maxLength": 500
},
"next_run_at": {
"type": "integer"
},
"trigger_type": {
"enum": [
"manual",
"webhook",
"schedule"
],
"type": "string"
},
"imported_from": {
"type": "string",
"maxLength": 40
},
"definition_json": {
"type": "string",
"maxLength": 40000
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}List this tenant's APPROVED prepared outputs: drafts a workflow's prepare_output nodes parked for review, which a human then approved in the platform inbox. Pending and rejected drafts never appear here — approval happens only in the inbox, never through this call. Optional limit 1-100 (default 50), newest-decided first. This is the platform-prepares-never-sends handoff: the desktop harness pulls approved drafts here and sends them locally.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| limit | integer | Max rows to return, 1-100 (default 50). Out-of-range or non-integer values fall back to 50. |
| is_active | integer | |
| role_name | string | |
| description | string | |
| next_run_at | integer | |
| trigger_type | string | one of ["manual","webhook","schedule"] |
| imported_from | string | |
| definition_json | string |
Your prepaid wallet, period spend, caps, and runway as a compact line DSL (~8 lines). Requires auth (your balance is closed data). Read this BEFORE committing paid actions; pair with ai.estimate_cost to price a specific call first.
No parameters.
{
"name": "ai.budget",
"description": "Your prepaid wallet, period spend, caps, and runway as a compact line DSL (~8 lines). Requires auth (your balance is closed data). Read this BEFORE committing paid actions; pair with ai.estimate_cost to price a specific call first.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Price an AI task BEFORE running it: provider passthrough at wholesale cost, no markup — the per-token platform fee is retired, so text/reasoning passes through at cost. Anonymous — open catalog includes open pricing. Returns integer micro-USD plus a USD total. NEXT: run the action, then ai.budget to watch the runway.
| Parameter | Type | Description |
|---|---|---|
| task * | string | A token-billed task name from the platform task→model map (e.g. 'assistant.ask'). |
| tokens_in | integer | Estimated input tokens (default 1000). |
| tokens_out | integer | Estimated output tokens (default 500). |
{
"name": "ai.estimate_cost",
"description": "Price an AI task BEFORE running it: provider passthrough at wholesale cost, no markup — the per-token platform fee is retired, so text/reasoning passes through at cost. Anonymous — open catalog includes open pricing. Returns integer micro-USD plus a USD total. NEXT: run the action, then ai.budget to watch the runway.",
"inputSchema": {
"type": "object",
"required": [
"task"
],
"properties": {
"task": {
"type": "string",
"description": "A token-billed task name from the platform task→model map (e.g. 'assistant.ask')."
},
"tokens_in": {
"type": "integer",
"description": "Estimated input tokens (default 1000)."
},
"tokens_out": {
"type": "integer",
"description": "Estimated output tokens (default 500)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Who owes you, by client: each client's unpaid balance aged by days past its due date — current (not yet due), 1-30, 31-60, 61-90 and over 90 days — counted in the business's own days (the sales_settings time zone), so an invoice due today is still current. Only issued invoices with a balance left count: drafts, cancelled, paid, written-off and fully credited invoices never do. Money is integer CENTS in each invoice's own currency: one row per client per currency, and totals has one row per currency, never converted or added across currencies; read the figures as given, never multiply or divide them yourself. Clients come oldest past-due first. Optional client_id ages one client; an id that is not one of your clients is refused NOT_FOUND (find it with invoice_client_search or invoice_client_list). A limit outside 1-200 is refused VALIDATION_ERROR (leave it out for 50; totals always cover every client). NEXT: invoice_list with state 'overdue' lists the past-due invoices themselves.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Most client rows to return, 1-200 (default 50). totals always cover every client; truncated says whether rows were left out. |
| client_id | string | One client's id, from invoice_client_search or invoice_client_list. Leave out to age every client. |
{
"name": "sales_receivables",
"description": "Who owes you, by client: each client's unpaid balance aged by days past its due date — current (not yet due), 1-30, 31-60, 61-90 and over 90 days — counted in the business's own days (the sales_settings time zone), so an invoice due today is still current. Only issued invoices with a balance left count: drafts, cancelled, paid, written-off and fully credited invoices never do. Money is integer CENTS in each invoice's own currency: one row per client per currency, and totals has one row per currency, never converted or added across currencies; read the figures as given, never multiply or divide them yourself. Clients come oldest past-due first. Optional client_id ages one client; an id that is not one of your clients is refused NOT_FOUND (find it with invoice_client_search or invoice_client_list). A limit outside 1-200 is refused VALIDATION_ERROR (leave it out for 50; totals always cover every client). NEXT: invoice_list with state 'overdue' lists the past-due invoices themselves.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"minimum": 1,
"description": "Most client rows to return, 1-200 (default 50). totals always cover every client; truncated says whether rows were left out."
},
"client_id": {
"type": "string",
"maxLength": 64,
"description": "One client's id, from invoice_client_search or invoice_client_list. Leave out to age every client."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Show one invoice, quote or receipt as the document itself. When the result has a second content block, it is the document as copy-ready plain text (title, business, billed to, dates, one line per item, the totals as printed, notes, payment terms and details, or on a receipt the day paid and the method) to paste into an email or a chat, and hosts that draw MCP Apps show the page with a Copy button. A paid invoice shows as its receipt, and each payment has its own numbered receipt (the receipt_number invoice_payment_record answers, for example RCT-2026-001), shown by that number or the payment id. Pass id or number (exactly one, from invoice_list, quote_list or invoice_payment_list); kind 'invoice', 'quote' or 'receipt' is optional (else invoice first, then quote, then receipt). It sends nothing and makes no link. Refusals: unknown id or number NOT_FOUND (a removed payment's receipt: reason_code SIMPLER_SALES_RECEIPT_VOID); a missing or doubled id/number or another argument VALIDATION_ERROR; kind 'receipt' before receipts are set up SERVICE_UNAVAILABLE SIMPLER_SALES_RECEIPT_UNMIGRATED; stylesheet unreadable SERVICE_UNAVAILABLE SIMPLER_SALES_DOCUMENT_CHAT_ASSETS_UNAVAILABLE (retry_after); not read within 3 seconds SERVICE_UNAVAILABLE SIMPLER_SALES_DOCUMENT_SHOW_SLOW (call again after retry_after). Read-only tokens and viewers may call it. Free.
| Parameter | Type | Description |
|---|---|---|
| id | string | The invoice's or quote's id (invoice_list, quote_list or the create result), or a payment's id for its receipt (invoice_payment_list). |
| kind | string | 'invoice', 'quote' or 'receipt' (one payment's numbered receipt). Leave out to try invoice, then quote, then receipt. |
| number | string | The document's number as printed, for example 'INV-2026-016' or a receipt's 'RCT-2026-001'. Send id or number, not both. |
Prepare what a business sends a client about one issued invoice: purpose 'invoice', 'reminder' (overdue), 'receipt' (paid in full) or 'promise_follow_up' (promised date passed); left out, the one that fits. language 'en', 'ms' or 'zh'; left out, the client's (invoice_client_update message_language), else English. Returns to, subject, body, share_text, a mailto and link_on; share_url only for a member or above with a live link (never made here). NOTHING IS SENT. Refusals (CONFLICT): draft SIMPLER_SALES_MESSAGE_NOT_ISSUED (issue it with invoice_update status 'sent'); cancelled; written off; SIMPLER_SALES_MESSAGE_PURPOSE_UNFIT (send its next_call). Other arguments: VALIDATION_ERROR. Free.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice's id, from invoice_list or invoice_read. |
| purpose | string | 'invoice' sends the invoice, 'reminder' asks for payment, 'receipt' thanks the client once it is paid in full, 'promise_follow_up' asks when to expect a payment the client promised by a date that has passed (invoice_promise_set). Leave out to get the one that fits the invoice's state. |
| language | string | 'en' English, 'ms' Bahasa Melayu, 'zh' Chinese. Leave out to use the client's message_language (English when none is set). |
{
"name": "invoice_message_prepare",
"description": "Prepare what a business sends a client about one issued invoice: purpose 'invoice', 'reminder' (overdue), 'receipt' (paid in full) or 'promise_follow_up' (promised date passed); left out, the one that fits. language 'en', 'ms' or 'zh'; left out, the client's (invoice_client_update message_language), else English. Returns to, subject, body, share_text, a mailto and link_on; share_url only for a member or above with a live link (never made here). NOTHING IS SENT. Refusals (CONFLICT): draft SIMPLER_SALES_MESSAGE_NOT_ISSUED (issue it with invoice_update status 'sent'); cancelled; written off; SIMPLER_SALES_MESSAGE_PURPOSE_UNFIT (send its next_call). Other arguments: VALIDATION_ERROR. Free.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"description": "The invoice's id, from invoice_list or invoice_read."
},
"purpose": {
"enum": [
"invoice",
"reminder",
"receipt",
"promise_follow_up"
],
"type": "string",
"description": "'invoice' sends the invoice, 'reminder' asks for payment, 'receipt' thanks the client once it is paid in full, 'promise_follow_up' asks when to expect a payment the client promised by a date that has passed (invoice_promise_set). Leave out to get the one that fits the invoice's state."
},
"language": {
"enum": [
"en",
"ms",
"zh"
],
"type": "string",
"description": "'en' English, 'ms' Bahasa Melayu, 'zh' Chinese. Leave out to use the client's message_language (English when none is set)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Today's collection list, in the business's days (its sales_settings time zone). reminders: each issued invoice still owed that is 3 days before its due date, on it, or 7 or 14 days after, as its client's reminder_cadence allows (standard, from_due, overdue_only or off; set it with invoice_client_update), with the amount owed in CENTS, the step, the language and next_call (the invoice_message_prepare call). A step shows only on its own day. issues: drafts the recurring run made, each with the invoice_update call that issues it; recurring_held: due templates it could not make, and why. NOTHING IS PREPARED OR SENT. Any argument is refused VALIDATION_ERROR (it takes none). Free; changes nothing.
No parameters.
{
"name": "invoice_reminders_due",
"description": "Today's collection list, in the business's days (its sales_settings time zone). reminders: each issued invoice still owed that is 3 days before its due date, on it, or 7 or 14 days after, as its client's reminder_cadence allows (standard, from_due, overdue_only or off; set it with invoice_client_update), with the amount owed in CENTS, the step, the language and next_call (the invoice_message_prepare call). A step shows only on its own day. issues: drafts the recurring run made, each with the invoice_update call that issues it; recurring_held: due templates it could not make, and why. NOTHING IS PREPARED OR SENT. Any argument is refused VALIDATION_ERROR (it takes none). Free; changes nothing.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}A client's statement of account over a period of the business's own days (the sales_settings time zone): the balance they owed before it (opening), each invoice issued, payment received, credit and write-off in it with a running balance, the balance at its end (closing), and what was still owed at its end aged current / 1-30 / 31-60 / 61-90 / over 90 days past due, counted as sales_receivables counts. Only issued invoices count: drafts and cancelled invoices never do. Money is integer CENTS in each invoice's own currency, one section per currency, never converted or added across currencies; read the figures as given. It prepares nothing and sends nothing: returns the figures, document_path (the print-ready page, while signed in) and pdf_next_call (the statement_pdf call that makes the PDF). A statement with more than 150 rows lists its first rows, whole business days only, and lines_cut says which and gives the next_call that lists the rest; the balances, totals and ageing always cover the whole period. When the result has a second content block, it is the statement as copy-ready text (a very long one shortened), and hosts that draw MCP Apps show the statement with a Copy button, as plain text when it is too long to draw as a document. Refusals: a client_id that is not one of your clients is NOT_FOUND (find it with invoice_client_search or invoice_client_list); a date not written YYYY-MM-DD, a to after today, a from after to, or a period longer than 366 days is VALIDATION_ERROR naming the field; a client with more than 2000 issued invoices is PAYLOAD_TOO_LARGE SIMPLER_SALES_STATEMENT_TOO_LARGE (sales_receivables still ages them). Free.
| Parameter | Type | Description |
|---|---|---|
| to | string | Last day of the period, YYYY-MM-DD in the business's time zone, today at the latest. Default: today. |
| from | string | First day of the period, YYYY-MM-DD in the business's time zone. Default: the first day of the month of to. |
| client_id * | string | The client's id, from invoice_client_search (by name) or invoice_client_list. |
Get one issued invoice ready to give the client, in one call: the document, the client link (made if it has none), the PDF (printed or the stored one) and the prepared message (invoice_message_prepare's words, with the link). ready lists the parts made; missing gives each other part's reason_code, reason and next_call. A turned-off link is never re-issued: invoice_share action 'rotate' waits for the owner's approval. NOTHING IS SENT. Refusals (CONFLICT): draft SIMPLER_SALES_MESSAGE_NOT_ISSUED (issue it with invoice_update status 'sent'); cancelled; written off; SIMPLER_SALES_MESSAGE_PURPOSE_UNFIT (send its next_call). Read-only token or viewer: FORBIDDEN. Free.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice's id, from invoice_list or invoice_read. |
| purpose | string | The message's purpose: 'invoice', 'reminder', 'receipt' or 'promise_follow_up' (a promised payment date has passed). Leave out to get the one that fits the invoice's state. |
| language | string | The message's language: 'en', 'ms' or 'zh'. Leave out to use the client's message_language (English when none is set). |
{
"name": "invoice_handoff",
"description": "Get one issued invoice ready to give the client, in one call: the document, the client link (made if it has none), the PDF (printed or the stored one) and the prepared message (invoice_message_prepare's words, with the link). ready lists the parts made; missing gives each other part's reason_code, reason and next_call. A turned-off link is never re-issued: invoice_share action 'rotate' waits for the owner's approval. NOTHING IS SENT. Refusals (CONFLICT): draft SIMPLER_SALES_MESSAGE_NOT_ISSUED (issue it with invoice_update status 'sent'); cancelled; written off; SIMPLER_SALES_MESSAGE_PURPOSE_UNFIT (send its next_call). Read-only token or viewer: FORBIDDEN. Free.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"description": "The invoice's id, from invoice_list or invoice_read."
},
"purpose": {
"enum": [
"invoice",
"reminder",
"receipt",
"promise_follow_up"
],
"type": "string",
"description": "The message's purpose: 'invoice', 'reminder', 'receipt' or 'promise_follow_up' (a promised payment date has passed). Leave out to get the one that fits the invoice's state."
},
"language": {
"enum": [
"en",
"ms",
"zh"
],
"type": "string",
"description": "The message's language: 'en', 'ms' or 'zh'. Leave out to use the client's message_language (English when none is set)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}WHAT-IF / scenario lane: runs monthly data YOU supply through a seeded 5,000-path simulation of monthly revenue and costs; bands are simulation outputs, not calibrated probabilities. The paths are clustered into 3-7 outcome bands for the next 6 months, with per-month revenue and cost percentiles and deathRisk, the share of paths the engine marks closed (a distress signal, not a cash-out date). Amounts are in currency (major units, default USD): 1500 or "1500.00" - never cents. currency is one of 16 codes (USD, EUR, GBP, JPY, CNY, AUD, HKD, INR, SGD, MYR, IDR, THB, PHP, VND, BND, MMK); leave it out and USD is assumed, and the output says currency_assumed: true. The engine runs in USD; every output figure converts back into currency at fx_rate_to_usd (USD per 1 unit), named in the top-level currency field. Send cash_balance (the bank balance, negative for an overdraft) with cash_as_of (its date, YYYY-MM-DD, within 45 days) and the cash block adds runway, cash-out share, lowest balance and health from that balance plus each path's revenue minus costs (balance_source 'request'); without them it carries net-flow figures only and its next_step says what to send. Send declared_totals {revenue, costs}, the totals your own source shows for the months sent, and the sums are checked on the server; totals_check echoes them. history_months, shallow (true under 5 months) and blend {yours_pct, peers_pct} (null when shallow) say how much of the result is your own history. Earlier releases removed the per-band cash range and the per-month cash percentiles (they started from an invented balance) and interpreted_money.unit (the top-level currency field replaces it). Refuses with VALIDATION_ERROR and a fix per field: fewer than 2 or more than 120 rows, a date that is not YYYY-MM, revenue or costs sent in cents or as text that is not a number (an exponent such as 1e5, letters other than one currency code or symbol, or a comma that does not group thousands), an amount whose code or symbol names another currency than the one it is read in (currency; cash_balance is read in cash_currency when sent: send that currency, or the amount in it; never converted), no month with revenue, or a currency outside the list; SIMPLER_FORECAST_CASH_WITHOUT_DATE when cash_balance comes without cash_as_of (send both); SIMPLER_FORECAST_CASH_AS_OF_INVALID when cash_as_of is not a real YYYY-MM-DD date or comes without cash_balance; SIMPLER_FORECAST_GRID_TOTALS_MISMATCH when a declared total and the months' sum are more than 0.5% apart (correct the months or the total and resend). Refuses with SERVICE_UNAVAILABLE SIMPLER_FORECAST_FX_UNAVAILABLE when no rate for a non-USD currency is available: retry shortly, or pass USD amounts. Send drivers (at most 20) to ask what if: each is {kind, start, end?, amount?, pct?}, kind one of revenue_pct, cost_pct, revenue_step, cost_step, hire, one_off_in, one_off_out, lose_customer, loan_drawdown, loan_repayment, festive_month. start and end are YYYY-MM (the whole month) or YYYY-MM-DD (that day); revenue_pct, cost_pct, lose_customer and festive_month take months only; start must fall inside the forecast months, and end may be left out to run to the last one. amount is in currency (major units): per month for revenue_step and cost_step (negative for a cut), hire (the full monthly cost), loan_repayment and lose_customer (that customer's average monthly receipts; forecast.run reads no records, so customer_ref is refused here), and the whole sum for one_off_in, one_off_out and loan_drawdown, which hit one month or one day and take no end. In text, commas only group thousands ("4,000.00"); a currency code or symbol may lead or follow ("SGD 4,000") only when it is the currency the amount is read in, and one naming another currency is refused, never converted; no exponent or other letters. The same applies to every amount this tool takes. pct is -100 to 500, not zero, for revenue_pct, cost_pct and festive_month (a revenue_pct on one month you pi
Run the tenant's REAL forecast from the books — cash receipts (recorded invoice payments by payment date, plus paid invoices with no recorded payment at their paid date, flagged) and expenses by expense date, monthly in the tenant's base currency, up to the last complete month (the current month is left out; months are the business's calendar months in its own time zone, set in sales settings, Asia/Singapore when unset, and the books block names it in bucket_timezone) and at most 36 months — through the one import pipeline. The result is STORED, replacing the forecast every member reads, so it is owner or admin only: any other role is refused with FORBIDDEN SIMPLER_FORECAST_IMPORT_ROLE_REFUSED before anything is read, saved, run or charged (ask an owner or admin to run it; forecast.read reads the forecast already stored). No arguments are needed. Optional cash_balance (the bank balance in cash_currency, negative for an overdraft), cash_currency (one of 16 codes) and cash_as_of (its date, YYYY-MM-DD) go together: they are saved as the workspace's declared bank balance, replacing the balance entered before, and then the forecast runs and starts its cash block from that balance. When more than one bank account is saved on the Forecast page, it refuses with CONFLICT SIMPLER_FORECAST_CASH_MULTI_ACCOUNT_REFUSED before anything is saved or run, because one balance would replace them all: ask the owner or an admin to update the balances on the Forecast page, or call without the three cash fields to run from the saved balances. It refuses with SERVICE_UNAVAILABLE SIMPLER_FORECAST_SETTINGS_READ_FAIL when the saved balances cannot be read (retry in a minute). The cash fields refuse like forecast.run's (SIMPLER_FORECAST_CASH_WITHOUT_DATE, SIMPLER_FORECAST_CASH_AS_OF_INVALID, VALIDATION_ERROR naming cash_currency when it is missing or outside the list, or cash_balance when its code or symbol names another currency than cash_currency, before anything is saved) and with SERVICE_UNAVAILABLE SIMPLER_FORECAST_FX_UNAVAILABLE when no rate for cash_currency is available (retry shortly, or send the balance in USD). A refusal after the balance was saved carries cash_balance_saved: true. Cost: no metered model cost. Returns the first-3-months outlook and the cash block (as forecast.read describes it) with money formatted in the business's currency, named in the top-level currency field: the engine runs in USD and figures convert back at the rate pinned on the stored result (fx_rate_to_usd); before this release they were USD. Verify with forecast.read before reporting done. Outlook rows carry distress_risk_pct, the share of paths the engine marks closed by that month (renamed this release from the old death-risk column); they no longer carry a cash median, which started from an invented balance. Runway and cash-out come only from forecast.read's cash block. Refuses with RATE_LIMITED after 5 runs an hour and with 402 when the workspace credit cannot cover the cost: when a forecast is already stored the error names forecast.read, so read that instead. The books block in the result names the base currency, gap months, converted amounts and any paid invoices counted without a recorded payment. Refuses with BAD_REQUEST: SIMPLER_FORECAST_LEDGER_TOO_SHORT when the books have fewer than 2 complete months of receipts or spend, SIMPLER_FORECAST_LEDGER_GAPS when 2 or more of the last 6 complete months have no receipts and no spend, and SIMPLER_FORECAST_LEDGER_NO_RECEIPTS when the books carry no receipts or the last complete month has none. Fix: Record payments against your invoices (invoice_payment_record) and log expenses so each month has activity, or upload a spreadsheet on the Forecast page instead. Then run again. To check first without spending a run, call forecast.read: its summary and its no-forecast error carry readiness with the same refusal_code.
Read the tenant's STORED forecast — the verify-read for this rail. view picks the answer, one of summary, monthly, variance, scenarios, weekly (default summary). summary: the outcome bands (label, growth_direction, probability_pct, final_month_revenue_low and _high, distress_risk_pct, path_count), the cash block, blend {yours_pct, peers_pct} (the share of the result from this business's own history versus businesses like it; null when shallow). monthly: per month revenue, costs and net at p10, p25, p50, p75 and p90 with distress_risk_pct, plus balance_p10 to balance_p90 and below_zero_cum_pct when a balance anchors the cash block, and the cash block. This release moved monthlyForecast out of the default answer into view 'monthly'. Every view carries view, dataMonths, history_months, shallow (true under 5 months of history) and CFO narration status, money formatted in the business's currency, named in the top-level currency field: the engine runs in USD and figures convert back at the rate pinned on the stored result (fx_rate_to_usd); before this release they were USD. Free. Refuses with VALIDATION_ERROR naming view when it is not in the list. The cash block is computed from a real bank balance plus each simulated path's revenue minus costs: with basis 'anchored' it carries provenance (the balance grade), balance_source ('statement': the latest balance on bank statements imported with banking.import_statement, used while under 31 days old in place of a typed balance for the same account; a typed account whose label ends in other last 4 digits, or the same digits in another currency, and dated on or after the statement, is added to it and provenance is then declared (an older one is left out: save it again with today's date); 'settings': entered on the Forecast page or saved by forecast.run_stored; 'upload_row': the cash row of an uploaded sheet), balance_as_of, runway_months_p10 and _p50 (null = no cash-out within the horizon), cash_out_pct, lowest_balance_p10, burn_rate_p50_per_month, cost_cut_to_survive_pct and health. With no balance dated within 45 days before the day the forecast was computed and before its first month, basis is 'unanchored': runway, cash-out and health are null, net-flow figures remain, and unavailable_reason plus next_step say how the owner adds today's balance. unavailable_reason 'forecast_out_of_date' means the forecast's months end before today or before the balance on record, so today's balance cannot start it: rebuild from recent months first (forecast.run_stored, or an upload on the Forecast page), as its next_step says. This release replaced the old cashFlow block (its runway started from an invented balance), removed the monthly cash median and renamed the monthly death-risk column to distress_risk_pct. The summary view also carries readiness, whether the books are ready for forecast.run_stored without running it: ready, months, first_period, last_period, min_months, gap_months, recent_gap_months, gap_window_months, months_with_receipts, refusal_code (null when ready, else SIMPLER_FORECAST_LEDGER_TOO_SHORT, SIMPLER_FORECAST_LEDGER_GAPS or SIMPLER_FORECAST_LEDGER_NO_RECEIPTS), message, next_step, base_currency, base_currency_source, legacy_paid_without_payments, fx_unconverted_currencies, bucket_timezone and excluded_period; when the books cannot be read just now readiness is null and readiness_unavailable {code SIMPLER_FORECAST_LEDGER_READ_FAIL, message, next_step} says to retry, and the forecast still returns. variance: the track record, earlier saved forecasts against what happened, worked out on each read and never stored. variance.rows has one row per month with both an actual and an earlier forecast: month, horizon_months (1 = the forecast whose data ended the month before), forecast_made_on, actual, p10, p50, p90, inside_80 (the actual landed between p10 and p90), error_pct ((actual - p50) / p50 x 100, null when p50 is not above zero) and fx_pinned (false = converted at today's rate because
[paid: $0.06/image max] Generate 1-3 images from a text prompt on the first lane that delivers, tried in order: google/nano-banana-2.1 via the Cloudflare AI catalog ($0.06/image), then @cf/black-forest-labs/flux-2-dev via Cloudflare Workers AI, only when the first lane is down ($0.00/image). Each lane settles its own price per delivered image, so an image never costs more than the first lane's price, the credit a call must have available before it runs; price.charged_micro_usd in the result is the actual charge. Nano Banana keeps printed words (signs, labels, posters) legible; for a product photo the owner already has, image.variation with the photo as reference keeps the real product. Each image is stored in this workspace's image library and returned as JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; never a provider link. A result with no download_url says why in download_url_unavailable. Refuses: VALIDATION_ERROR on an empty prompt (describe the image), INSUFFICIENT_CREDITS (add credits), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later). A partial result lists refunded outputs in output.withheld; SIMPLER_IMAGE_RESULT_UNDELIVERED means nothing was charged: retry. For canvas-sized generation inside an edit session use image.generate_for_edit. NEXT: pass images[0].asset_key as image_asset_key to image.variation or image.upscale.
| Parameter | Type | Description |
|---|---|---|
| count | number | Number of images (1-3, default 1). |
| width | number | Desired width px (256-2048; sets the aspect ratio: the image comes out at about 2K on the long side at the nearest of 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16). |
| height | number | Desired height px (256-2048; sets the aspect ratio with width). |
Fetch a document from a URL, classify its type (personal/medical/business/unknown) with keyword + PII-pattern heuristics (documents containing actual PII data are NEVER business), and return extracted text capped at 100K chars. Free. STREAMING SUPPORTED: send Accept: text/event-stream for started/fetched/classifying/completed phases.
| Parameter | Type | Description |
|---|---|---|
| document_url * | string | Public HTTPS URL (fetched server-side, 30s timeout; text/* formats classify, binary answers unknown). |
{
"name": "document.extract",
"description": "Fetch a document from a URL, classify its type (personal/medical/business/unknown) with keyword + PII-pattern heuristics (documents containing actual PII data are NEVER business), and return extracted text capped at 100K chars. Free. STREAMING SUPPORTED: send Accept: text/event-stream for started/fetched/classifying/completed phases.",
"inputSchema": {
"type": "object",
"required": [
"document_url"
],
"properties": {
"document_url": {
"type": "string",
"description": "Public HTTPS URL (fetched server-side, 30s timeout; text/* formats classify, binary answers unknown)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Free. The media templates: product-shot (product shot), product-lifestyle (product in a real place), poster (promo poster), showcase-video (product video), explainer-voice (voice-over with captions), brand-mockup (brand mockups). Each entry says what it makes, what it delivers, its price, the models it runs on, an example_url of a real output, and its slots: the inputs template.run takes (name, kind, required, choices, default). Image slots take what image.variation takes: an image library asset_key, a public https URL or a data:image URL. NEXT: template.run with a template id and its slots.
No parameters.
{
"name": "template.list",
"description": "Free. The media templates: product-shot (product shot), product-lifestyle (product in a real place), poster (promo poster), showcase-video (product video), explainer-voice (voice-over with captions), brand-mockup (brand mockups). Each entry says what it makes, what it delivers, its price, the models it runs on, an example_url of a real output, and its slots: the inputs template.run takes (name, kind, required, choices, default). Image slots take what image.variation takes: an image library asset_key, a public https URL or a data:image URL. NEXT: template.run with a template id and its slots.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Create a spreadsheet in the user's library from CSV content in ONE call: the platform stores the bytes (honest text/csv) and registers the file row. Free — storage costs nothing; only AI lanes bill. Returns the file row including its id. Refuses: VALIDATION_ERROR when title or csv_content is empty (send both), VALIDATION_ERROR when csv_content is over 10 MB (split it into smaller files), NOT_FOUND when folder_id names no folder in this workspace (call spreadsheet_folder_list, or leave folder_id out), FORBIDDEN when your role is viewer or your token is read-only (ask the owner for the member role, or connect with the 'mcp' scope). Nothing is stored when it refuses. NEXT: spreadsheet_file_list to see the library.
| Parameter | Type | Description |
|---|---|---|
| title * | string | Library title for the file (≤255 chars). |
| folder_id | string | Optional spreadsheet_folder id to file it under. |
| csv_content * | string | The complete CSV content (first row = headers). At most 10 MB. |
{
"name": "spreadsheet.create_with_content",
"description": "Create a spreadsheet in the user's library from CSV content in ONE call: the platform stores the bytes (honest text/csv) and registers the file row. Free — storage costs nothing; only AI lanes bill. Returns the file row including its id. Refuses: VALIDATION_ERROR when title or csv_content is empty (send both), VALIDATION_ERROR when csv_content is over 10 MB (split it into smaller files), NOT_FOUND when folder_id names no folder in this workspace (call spreadsheet_folder_list, or leave folder_id out), FORBIDDEN when your role is viewer or your token is read-only (ask the owner for the member role, or connect with the 'mcp' scope). Nothing is stored when it refuses. NEXT: spreadsheet_file_list to see the library.",
"inputSchema": {
"type": "object",
"required": [
"title",
"csv_content"
],
"properties": {
"title": {
"type": "string",
"description": "Library title for the file (≤255 chars)."
},
"folder_id": {
"type": "string",
"description": "Optional spreadsheet_folder id to file it under."
},
"csv_content": {
"type": "string",
"description": "The complete CSV content (first row = headers). At most 10 MB."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Confirm receipt of a note in your cross-tenant agent_note inbox — the ONLY edit a recipient holds, moving status unread to read under the registry's transition guard. Idempotent: re-confirming an already-read note is a no-op, and the subject/body stay fixed forever so a recipient can never rewrite what the sender said. NEXT: agent_note_list to see the rest of the inbox.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The agent_note id to confirm (agent_note_list shows your inbox). |
| body | string | |
| status | string | one of ["unread","read"] |
| subject | string | |
| from_tenant_id | string | |
| consent_grant_id | string | |
| related_entity_id | string | |
| related_entity_type | string |
{
"name": "agent_note_mark_read",
"description": "Confirm receipt of a note in your cross-tenant agent_note inbox — the ONLY edit a recipient holds, moving status unread to read under the registry's transition guard. Idempotent: re-confirming an already-read note is a no-op, and the subject/body stay fixed forever so a recipient can never rewrite what the sender said. NEXT: agent_note_list to see the rest of the inbox.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The agent_note id to confirm (agent_note_list shows your inbox)."
},
"body": {
"type": "string",
"maxLength": 4000
},
"status": {
"enum": [
"unread",
"read"
],
"type": "string"
},
"subject": {
"type": "string",
"maxLength": 200
},
"from_tenant_id": {
"type": "string",
"maxLength": 40
},
"consent_grant_id": {
"type": "string",
"maxLength": 40
},
"related_entity_id": {
"type": "string",
"maxLength": 40
},
"related_entity_type": {
"type": "string",
"maxLength": 60
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}List your agent_note rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "agent_note_list",
"description": "List your agent_note rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one agent_note by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The agent_note id. |
{
"name": "agent_note_read",
"description": "Read one agent_note by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The agent_note id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one brand_assets by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The brand_assets id. |
{
"name": "brand_assets_read",
"description": "Read one brand_assets by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The brand_assets id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your brand_assets rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "brand_assets_list",
"description": "List your brand_assets rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your consent_grant rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "consent_grant_list",
"description": "List your consent_grant rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one consent_grant by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The consent_grant id. |
{
"name": "consent_grant_read",
"description": "Read one consent_grant by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The consent_grant id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Create a contact and, in the same call, log its first note and/or first interaction — the composite first-touch door. Children validate before the contact write; if the contact commits but a child then fails, the error names the contact's id plus the exact call to finish it, never a silent orphan. A contact with the same email or phone already in this tenant refuses with CONFLICT. NEXT: contact_upsert merges into an existing contact instead of creating a duplicate.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| note | string | Log a first note in the SAME call — ONE call makes both. |
| tags | string | |
| string | ||
| notes | string | Alias of note. |
| phone | string | |
| source | string | one of ["manual","import","invoice","sync"] |
| status | string | one of ["lead","contacted","qualified","customer","vip","inactive"] |
| address | string | |
| company | string | |
| interaction | object | Log the first interaction in the same call: {type, summary, occurred_at?} — occurred_at takes "YYYY-MM-DD". |
Update a contact you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The contact id. |
| name | string | |
| tags | string | |
| string | ||
| phone | string | |
| source | string | one of ["manual","import","invoice","sync"] |
| status | string | one of ["lead","contacted","qualified","customer","vip","inactive"] |
| address | string | |
| company | string | |
| last_contact_at | integer | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
Delete a contact you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The contact id. |
{
"name": "contact_delete",
"description": "Delete a contact you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The contact id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one contact by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The contact id. |
{
"name": "contact_read",
"description": "Read one contact by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The contact id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your contact rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "contact_list",
"description": "List your contact rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search your contact rows by text.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "contact_search",
"description": "Search your contact rows by text.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Add a note to a contact — the same door as the granular tool, extended only to accept contact_name, contact_email or contact_phone in place of contact_id. A name match must be unique: more than one hit refuses, listing the candidate ids; zero matches on every alias refuses with the runnable two-step call to create the contact first, then retry. NEXT: contact_upsert when no contact exists yet.
| Parameter | Type | Description |
|---|---|---|
| content | string | |
| contact_id | string | |
| contact_name | string | No contact_id handy? Resolves the contact by exact name — a unique match wins; ambiguity refuses with the candidate ids. |
| contact_email | string | Resolves the contact by exact email when contact_id is absent. |
| contact_phone | string | Resolves the contact by exact phone when contact_id is absent. |
{
"name": "contact_note_create",
"description": "Add a note to a contact — the same door as the granular tool, extended only to accept contact_name, contact_email or contact_phone in place of contact_id. A name match must be unique: more than one hit refuses, listing the candidate ids; zero matches on every alias refuses with the runnable two-step call to create the contact first, then retry. NEXT: contact_upsert when no contact exists yet.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"content": {
"type": "string",
"maxLength": 5000
},
"contact_id": {
"type": "string",
"maxLength": 40
},
"contact_name": {
"type": "string",
"description": "No contact_id handy? Resolves the contact by exact name — a unique match wins; ambiguity refuses with the candidate ids."
},
"contact_email": {
"type": "string",
"description": "Resolves the contact by exact email when contact_id is absent."
},
"contact_phone": {
"type": "string",
"description": "Resolves the contact by exact phone when contact_id is absent."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}List your contact_note rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "contact_note_list",
"description": "List your contact_note rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one contact_note by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The contact_note id. |
{
"name": "contact_note_read",
"description": "Read one contact_note by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The contact_note id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a contact_note you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The contact_note id. |
{
"name": "contact_note_delete",
"description": "Delete a contact_note you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The contact_note id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Pins one widget or a saved artifact onto the operator's home canvas. kind='widget' requires widget_key from the shipped enum; kind='artifact' requires content_ref (an assistant artifact id) — the door enforces whichever pair the kind demands, since the schema alone cannot express it. Rows are private to the creating user, even though teammates share the same tenant. NEXT: desk_surface_list reads the current layout.
| Parameter | Type | Description |
|---|---|---|
| h | integer | |
| w | integer | |
| x | integer | |
| y | integer | |
| kind | string | one of ["widget","artifact"] |
| z_index | integer | |
| widget_key | string | one of ["calendar-money-month","fx-converter","from-ai-inbox","assignments","market-discovery","sticky-notes","quick-start","coin-flip","interests"] |
| content_ref | string |
{
"name": "desk_surface_create",
"description": "Pins one widget or a saved artifact onto the operator's home canvas. kind='widget' requires widget_key from the shipped enum; kind='artifact' requires content_ref (an assistant artifact id) — the door enforces whichever pair the kind demands, since the schema alone cannot express it. Rows are private to the creating user, even though teammates share the same tenant. NEXT: desk_surface_list reads the current layout.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"h": {
"type": "integer"
},
"w": {
"type": "integer"
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
},
"kind": {
"enum": [
"widget",
"artifact"
],
"type": "string"
},
"z_index": {
"type": "integer"
},
"widget_key": {
"enum": [
"calendar-money-month",
"fx-converter",
"from-ai-inbox",
"assignments",
"market-discovery",
"sticky-notes",
"quick-start",
"coin-flip",
"interests"
],
"type": "string"
},
"content_ref": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Moves, resizes, or restacks a surface already on the desk canvas — x/y/w/h/z_index are real column writes, not a layout cache. The surface's identity is frozen here: kind, widget_key, and content_ref never change through this door, only via delete then re-create. NEXT: desk_surface_list to find the id to move.
| Parameter | Type | Description |
|---|---|---|
| h | integer | |
| w | integer | |
| x | integer | |
| y | integer | |
| id * | string | The desk_surface id (desk_surface_list shows them). |
| kind | string | one of ["widget","artifact"] |
| z_index | integer | |
| widget_key | string | one of ["calendar-money-month","fx-converter","from-ai-inbox","assignments","market-discovery","sticky-notes","quick-start","coin-flip","interests"] |
| content_ref | string | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at from a prior desk_surface_list/read. Mismatch returns CONFLICT — another tab already moved this surface. |
Read one desk_surface by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The desk_surface id. |
{
"name": "desk_surface_read",
"description": "Read one desk_surface by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The desk_surface id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your desk_surface rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "desk_surface_list",
"description": "List your desk_surface rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a desk_surface you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The desk_surface id. |
{
"name": "desk_surface_delete",
"description": "Delete a desk_surface you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The desk_surface id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Create a canvas project from a Fabric.js toJSON serialization (canvas_json, required): every embedded data:image src is pulled out, hashed, and written to a tenant-scoped, content-addressed R2 key before the row is saved, so canvas_json never carries image bytes and identical images dedupe across projects. SVG, an unrecognized image type, an oversized embedded image, or a canvas still too large after externalization refuse the whole create — nothing is silently dropped. An optional thumbnail_data_url is externalized the same way into thumbnail_key; thumbnail_key and version are server-set and refuse if you pass them. NEXT: edit_project_update to autosave the same project as it changes.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| width | integer | |
| height | integer | |
| version | integer | |
| canvas_json | string | |
| thumbnail_key | string | |
| thumbnail_data_url | string | Optional thumbnail as a data: URL (PNG/JPEG/WebP/GIF, max 2MB) — externalized into thumbnail_key the same way embedded canvas images are. Omit to skip thumbnail externalization (create: no thumbnail_key is set; update: the existing thumbnail_key is left unchanged). |
{
"name": "edit_project_create",
"description": "Create a canvas project from a Fabric.js toJSON serialization (canvas_json, required): every embedded data:image src is pulled out, hashed, and written to a tenant-scoped, content-addressed R2 key before the row is saved, so canvas_json never carries image bytes and identical images dedupe across projects. SVG, an unrecognized image type, an oversized embedded image, or a canvas still too large after externalization refuse the whole create — nothing is silently dropped. An optional thumbnail_data_url is externalized the same way into thumbnail_key; thumbnail_key and version are server-set and refuse if you pass them. NEXT: edit_project_update to autosave the same project as it changes.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"version": {
"type": "integer"
},
"canvas_json": {
"type": "string",
"maxLength": 150000
},
"thumbnail_key": {
"type": "string",
"maxLength": 300
},
"thumbnail_data_url": {
"type": "string",
"description": "Optional thumbnail as a data: URL (PNG/JPEG/WebP/GIF, max 2MB) — externalized into thumbnail_key the same way embedded canvas images are. Omit to skip thumbnail externalization (create: no thumbnail_key is set; update: the existing thumbnail_key is left unchanged)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Save changes to an existing canvas project by id — the autosave door: send only the fields that changed (name, canvas_json, width, height, thumbnail_data_url), everything else on the row is left alone. A canvas_json you send goes through the same image-externalization and hygiene refusal as edit_project_create (embedded images become R2 keys; SVG, unrecognized types, oversized images, or a still-too-large canvas refuse the whole save). version is bumped by the door itself on every save and thumbnail_key is server-minted from thumbnail_data_url — both refuse if you pass them directly. NEXT: edit_project_read to confirm the saved version.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The edit_project id (edit_project_list shows them). |
| name | string | |
| width | integer | |
| height | integer | |
| version | integer | |
| canvas_json | string | |
| thumbnail_key | string | |
| thumbnail_data_url | string | Optional thumbnail as a data: URL (PNG/JPEG/WebP/GIF, max 2MB) — externalized into thumbnail_key the same way embedded canvas images are. Omit to skip thumbnail externalization (create: no thumbnail_key is set; update: the existing thumbnail_key is left unchanged). |
| expected_updated_at | integer |
Read one edit_project by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The edit_project id. |
{
"name": "edit_project_read",
"description": "Read one edit_project by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The edit_project id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your edit_project rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "edit_project_list",
"description": "List your edit_project rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a edit_project you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The edit_project id. |
{
"name": "edit_project_delete",
"description": "Delete a edit_project you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The edit_project id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Edits an expense's own fields only — status and approval stamps refuse with VALIDATION_ERROR here since those are transitions (expense_submit, expense_approve, expense_reject, expense_reimburse). amount_cents, if changed, must stay integer CENTS. Only the expense's own creator may edit it, and content freezes once the row is 'pending', reimbursed, or approved by someone else — draft, rejected, and your own self-approved rows stay editable.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense id (expense_list shows them). |
| notes | string | |
| status | string | one of ["draft","pending","approved","rejected","reimbursed"] |
| vendor | string | |
| currency | string | |
| ocr_json | string | |
| tax_type | string | one of ["GST","SST","VAT","PPN"] |
| tags_json | string | |
| approved_at | integer | |
| approved_by | string | |
| category_id | string |
Deletes an expense you created — draft and rejected rows only. Pending, approved, and reimbursed rows are approval-trail records and refuse with CONFLICT (approval_locked: true), and the lock is pinned into the delete itself so a status change racing your read still refuses instead of silently deleting. NEXT: expense_reject it first (admin+) if it must leave the books.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense id (expense_list shows them). |
| notes | string | |
| status | string | one of ["draft","pending","approved","rejected","reimbursed"] |
| vendor | string | |
| currency | string | |
| ocr_json | string | |
| tax_type | string | one of ["GST","SST","VAT","PPN"] |
| tags_json | string | |
| approved_at | integer | |
| approved_by | string | |
| category_id | string |
Rejects a submitted expense claim — requires the admin or owner role, and only a 'pending' expense qualifies (CONFLICT otherwise). rejection_reason (up to 500 chars) is optional but records why; rejected is terminal and never counts as spend, so a corrected claim is a fresh expense_create, never a resubmit.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense id (expense_list shows them). |
| notes | string | |
| status | string | one of ["draft","pending","approved","rejected","reimbursed"] |
| vendor | string | |
| currency | string | |
| ocr_json | string | |
| tax_type | string | one of ["GST","SST","VAT","PPN"] |
| tags_json | string | |
| approved_at | integer | |
| approved_by | string | |
| category_id | string | |
| receipt_key | string |
Marks an approved expense as paid out — restricted to the tenant owner because it moves real money, and only an 'approved' expense qualifies (CONFLICT otherwise). Stamps reimbursed_at, after which the row's content freezes unconditionally since the amount approved is the amount recorded as paid. Records the payout only — no funds move automatically.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense id (expense_list shows them). |
| notes | string | |
| status | string | one of ["draft","pending","approved","rejected","reimbursed"] |
| vendor | string | |
| currency | string | |
| ocr_json | string | |
| tax_type | string | one of ["GST","SST","VAT","PPN"] |
| tags_json | string | |
| approved_at | integer | |
| approved_by | string | |
| category_id | string | |
| receipt_key |
Read one expense by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense id. |
{
"name": "expense_read",
"description": "Read one expense by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your expense rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "expense_list",
"description": "List your expense rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search your expense rows by text.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "expense_search",
"description": "Search your expense rows by text.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Aggregate (count/sum) over your expense rows.
| Parameter | Type | Description |
|---|---|---|
| function * | string | one of ["count","sum"] |
| property | string | Required for sum: a declared numeric property of the entity. |
{
"name": "expense_aggregate",
"description": "Aggregate (count/sum) over your expense rows.",
"inputSchema": {
"type": "object",
"required": [
"function"
],
"properties": {
"function": {
"enum": [
"count",
"sum"
],
"type": "string"
},
"property": {
"type": "string",
"description": "Required for sum: a declared numeric property of the entity."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Create a expense_budget.
| Parameter | Type | Description |
|---|---|---|
| currency | string | |
| is_active | integer | |
| category_id | string | |
| alert_at_pct | integer | |
| monthly_limit_cents * | integer |
{
"name": "expense_budget_create",
"description": "Create a expense_budget.",
"inputSchema": {
"type": "object",
"required": [
"monthly_limit_cents"
],
"properties": {
"currency": {
"type": "string",
"maxLength": 3
},
"is_active": {
"type": "integer"
},
"category_id": {
"type": "string",
"maxLength": 40
},
"alert_at_pct": {
"type": "integer"
},
"monthly_limit_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Update a expense_budget you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_budget id. |
| currency | string | |
| is_active | integer | |
| category_id | string | |
| alert_at_pct | integer | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
| monthly_limit_cents | integer |
{
"name": "expense_budget_update",
"description": "Update a expense_budget you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_budget id."
},
"currency": {
"type": "string",
"maxLength": 3
},
"is_active": {
"type": "integer"
},
"category_id": {
"type": "string",
"maxLength": 40
},
"alert_at_pct": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
},
"monthly_limit_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a expense_budget you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_budget id. |
{
"name": "expense_budget_delete",
"description": "Delete a expense_budget you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_budget id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one expense_budget by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_budget id. |
{
"name": "expense_budget_read",
"description": "Read one expense_budget by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_budget id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your expense_budget rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "expense_budget_list",
"description": "List your expense_budget rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Adds a custom category to your tenant's category table — slug must be 1-50 chars of lowercase a-z, 0-9, '-' or '_' and unique per tenant (CONFLICT if taken). is_default is server-owned: supplying it at all refuses with VALIDATION_ERROR, and this door always creates with is_default 0 — the 9 seeded defaults exist only via expense_category_ensure_defaults. sort_order defaults to the next open slot when omitted.
| Parameter | Type | Description |
|---|---|---|
| icon | string | |
| name | string | |
| slug | string | |
| color | string | |
| is_default | integer | |
| sort_order | integer |
{
"name": "expense_category_create",
"description": "Adds a custom category to your tenant's category table — slug must be 1-50 chars of lowercase a-z, 0-9, '-' or '_' and unique per tenant (CONFLICT if taken). is_default is server-owned: supplying it at all refuses with VALIDATION_ERROR, and this door always creates with is_default 0 — the 9 seeded defaults exist only via expense_category_ensure_defaults. sort_order defaults to the next open slot when omitted.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"icon": {
"type": "string",
"maxLength": 10
},
"name": {
"type": "string",
"maxLength": 100
},
"slug": {
"type": "string",
"maxLength": 50
},
"color": {
"type": "string",
"maxLength": 7
},
"is_default": {
"type": "integer"
},
"sort_order": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Edits a category's name, icon, color, or sort_order — slug and is_default are the category's fixed identity, and any attempt to change either refuses with VALIDATION_ERROR. color, when given, must be a #rrggbb hex value. Create a new category instead of trying to rename an existing slug.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_category id (expense_category_list shows them). |
| icon | string | |
| name | string | |
| slug | string | |
| color | string | |
| is_default | integer | |
| sort_order | integer | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "expense_category_update",
"description": "Edits a category's name, icon, color, or sort_order — slug and is_default are the category's fixed identity, and any attempt to change either refuses with VALIDATION_ERROR. color, when given, must be a #rrggbb hex value. Create a new category instead of trying to rename an existing slug.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_category id (expense_category_list shows them)."
},
"icon": {
"type": "string",
"maxLength": 10
},
"name": {
"type": "string",
"maxLength": 100
},
"slug": {
"type": "string",
"maxLength": 50
},
"color": {
"type": "string",
"maxLength": 7
},
"is_default": {
"type": "integer"
},
"sort_order": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Deletes a custom category — categories are tenant-shared, so any tenant member can remove one regardless of who created it; the 9 seeded defaults are undeletable and refuse with CONFLICT (default_category: true). Expenses already carrying the deleted category keep their category_id untouched and simply render as Uncategorized; nothing is reassigned or blocked.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_category id (expense_category_list shows them). |
| icon | string | |
| name | string | |
| slug | string | |
| color | string | |
| is_default | integer | |
| sort_order | integer |
{
"name": "expense_category_delete",
"description": "Deletes a custom category — categories are tenant-shared, so any tenant member can remove one regardless of who created it; the 9 seeded defaults are undeletable and refuse with CONFLICT (default_category: true). Expenses already carrying the deleted category keep their category_id untouched and simply render as Uncategorized; nothing is reassigned or blocked.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_category id (expense_category_list shows them)."
},
"icon": {
"type": "string",
"maxLength": 10
},
"name": {
"type": "string",
"maxLength": 100
},
"slug": {
"type": "string",
"maxLength": 50
},
"color": {
"type": "string",
"maxLength": 7
},
"is_default": {
"type": "integer"
},
"sort_order": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Seeds the 9 canonical default categories (Food & Dining, Transport, Utilities, Shopping, Entertainment, Healthcare, Travel, Office & Supplies, Other) into your tenant, skipping any slug that already exists. Takes no arguments and is safe to call repeatedly or concurrently — it converges rather than duplicating. NEXT: expense_category_list to see the result.
| Parameter | Type | Description |
|---|---|---|
| icon | string | |
| name | string | |
| slug | string | |
| color | string | |
| is_default | integer | |
| sort_order | integer |
{
"name": "expense_category_ensure_defaults",
"description": "Seeds the 9 canonical default categories (Food & Dining, Transport, Utilities, Shopping, Entertainment, Healthcare, Travel, Office & Supplies, Other) into your tenant, skipping any slug that already exists. Takes no arguments and is safe to call repeatedly or concurrently — it converges rather than duplicating. NEXT: expense_category_list to see the result.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"icon": {
"type": "string",
"maxLength": 10
},
"name": {
"type": "string",
"maxLength": 100
},
"slug": {
"type": "string",
"maxLength": 50
},
"color": {
"type": "string",
"maxLength": 7
},
"is_default": {
"type": "integer"
},
"sort_order": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Read one expense_category by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_category id. |
{
"name": "expense_category_read",
"description": "Read one expense_category by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_category id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your expense_category rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "expense_category_list",
"description": "List your expense_category rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Create a expense_recurrence.
| Parameter | Type | Description |
|---|---|---|
| notes | string | |
| vendor * | string | |
| currency | string | |
| next_due * | integer | |
| frequency * | string | one of ["daily","weekly","monthly","yearly"] |
| is_active | integer | |
| category_id | string | |
| day_of_week | integer | |
| amount_cents * | integer | |
| day_of_month | integer | |
| total_generated | integer | |
| last_generated_at | integer |
Update a expense_recurrence you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_recurrence id. |
| notes | string | |
| vendor | string | |
| currency | string | |
| next_due | integer | |
| frequency | string | one of ["daily","weekly","monthly","yearly"] |
| is_active | integer | |
| category_id | string | |
| day_of_week | integer | |
| amount_cents | integer | |
| day_of_month | integer | |
| total_generated | integer | |
| last_generated_at | integer |
Delete a expense_recurrence you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_recurrence id. |
{
"name": "expense_recurrence_delete",
"description": "Delete a expense_recurrence you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_recurrence id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one expense_recurrence by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The expense_recurrence id. |
{
"name": "expense_recurrence_read",
"description": "Read one expense_recurrence by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_recurrence id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your expense_recurrence rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "expense_recurrence_list",
"description": "List your expense_recurrence rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Create-or-update a interaction keyed on source_ref.
| Parameter | Type | Description |
|---|---|---|
| summary * | string | |
| contact_id * | string | |
| source_ref * | string | |
| occurred_at | integer | |
| interaction_type * | string | one of ["meeting","call","email","message","visit","payment","other"] |
{
"name": "interaction_upsert",
"description": "Create-or-update a interaction keyed on source_ref.",
"inputSchema": {
"type": "object",
"required": [
"contact_id",
"interaction_type",
"summary",
"source_ref"
],
"properties": {
"summary": {
"type": "string",
"maxLength": 2000
},
"contact_id": {
"type": "string",
"maxLength": 40
},
"source_ref": {
"type": "string",
"maxLength": 80
},
"occurred_at": {
"type": "integer"
},
"interaction_type": {
"enum": [
"meeting",
"call",
"email",
"message",
"visit",
"payment",
"other"
],
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your interaction rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "interaction_list",
"description": "List your interaction rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one interaction by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The interaction id. |
{
"name": "interaction_read",
"description": "Read one interaction by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The interaction id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Edits an invoice's header fields and status. status 'paid' cannot be set here — it derives from the payment ledger, so call invoice_payment_record instead. Status moves are machine-checked (draft to sent/cancelled, sent to cancelled); cancelled is terminal and a paid invoice never reopens by hand. A move to 'sent' stamps sent_at automatically when omitted, and currency is ledger-locked once any live payment exists. An agent's change to notes or payment_terms on an issued invoice waits for the owner's approval; on a draft it does not. tax_scheme and prices_include_tax are fixed at creation, as is the tax rate. NEXT: invoice_payment_record to settle money, invoice_read to verify.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice id (invoice_list shows them). |
| notes | string | |
| status | string | one of ["draft","sent","paid","cancelled"] |
| paid_at | integer | |
| sent_at | integer | |
| currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| due_date | integer | |
| cash_sale | integer | |
| client_id | string | |
| source_id |
Returns share_url, the client's view link for this invoice, and the full document (parties, lines, totals in integer CENTS) in one call. action: 'get' (default) returns the live link; 'rotate' replaces it and the old link stops working; 'revoke' turns it off. A link the owner turned off stays off for agents: 'get' never re-issues it, and an agent's 'rotate' waits for the owner's approval. Anyone with the link can open the page until the invoice is cancelled or 90 days after payment (see link_serving). There is no PDF file yet; the link opens a print-ready page the client can print or save as PDF. Nothing is sent: give the link to the owner, who decides whether it goes to the client.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice id (invoice_list shows them). |
| action | string | get (default): the live link, made the first time. rotate: replace it with a new link; the old one stops working. revoke: turn the link off. |
| invoice_id | string | Alias of id. |
| fresh_after | integer | Omit it. Only when an error's next_call includes fresh_after, send that call exactly as given. |
{
"name": "invoice_share",
"description": "Returns share_url, the client's view link for this invoice, and the full document (parties, lines, totals in integer CENTS) in one call. action: 'get' (default) returns the live link; 'rotate' replaces it and the old link stops working; 'revoke' turns it off. A link the owner turned off stays off for agents: 'get' never re-issues it, and an agent's 'rotate' waits for the owner's approval. Anyone with the link can open the page until the invoice is cancelled or 90 days after payment (see link_serving). There is no PDF file yet; the link opens a print-ready page the client can print or save as PDF. Nothing is sent: give the link to the owner, who decides whether it goes to the client.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice id (invoice_list shows them)."
},
"action": {
"enum": [
"get",
"rotate",
"revoke"
],
"type": "string",
"description": "get (default): the live link, made the first time. rotate: replace it with a new link; the old one stops working. revoke: turn the link off."
},
"invoice_id": {
"type": "string",
"description": "Alias of id."
},
"fresh_after": {
"type": "integer",
"description": "Omit it. Only when an error's next_call includes fresh_after, send that call exactly as given."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Acts on a payer's report, sent from the invoice's client page, that they have paid. action 'accept' records the payment with the same writer as invoice_payment_record, graded counterparty_confirmed: the amount is amount_cents (or amount) when given, else the balance still owed; occurred_at defaults to when the payer reported. An agent's accept waits for the owner's approval. action 'dismiss' closes a report whose money did not arrive. Find reports in invoice_read's payer_confirmations. Refuses a report already accepted or dismissed with CONFLICT (invoice_read shows it), and an invoice with nothing owed unless amount_cents comes with allow_overpayment. Nothing is sent to the payer.
| Parameter | Type | Description |
|---|---|---|
| id | string | The confirmation id from invoice_read's payer_confirmations. |
| note | string | accept only: your own note on the payment (max 500). |
| force | boolean | accept only: confirms a genuine second payment of the same amount on the same day. |
| action * | string | accept: record the payment the payer reported. dismiss: the money did not arrive. |
| amount | string | accept only: the amount as a decimal STRING ("250.00") instead of amount_cents. |
| method | string | accept only: how the money arrived. |
| invoice_id | string | Instead of id: the invoice, when exactly one report on it is pending. |
| occurred_at | integer | accept only: epoch milliseconds the money arrived. Omit it to use the time the payer reported. |
[REQUIRES APPROVAL] Issues a numbered debit note that raises what an issued ('sent' or 'paid') invoice is owed: an extra charge, or a price or tax correction. It is numbered from the debit note series and adds amount_cents (or a decimal STRING amount), tax at the invoice's rate inside, in its currency; a 'paid' invoice goes back to 'sent' until the rest is paid. Refuses a draft (change its lines instead), a cancelled invoice, an invoice with no lines, another currency, and a paid invoice with no payment recorded (record it first with invoice_payment_record); every refusal names the call to send. Never deleted: undo one with a credit_note. An agent's call parks for approval. Nothing is sent. NEXT: invoice_read.
| Parameter | Type | Description |
|---|---|---|
| amount | string | The amount as a decimal STRING ("25.00") instead of amount_cents — never convert units yourself. |
| reason | string | Why the customer owes more, as the debit note prints it (max 500). |
| currency | string | Must be the invoice's own currency; omit it to use that currency. |
| debit_kind | string | What the debit note is for. Omit it for additional_charge. |
| invoice_id | string | The invoice the debit note raises (invoice_list shows ids); its invoice_number works too. |
| occurred_at | integer | Epoch milliseconds the debit note takes effect. Omit it for now. |
| amount_cents | integer | The amount the debit note adds, in integer CENTS. |
| invoice_number | string |
Voids a 'sent' invoice with no money on it and reissues it under the next number: 'sent', dated today, same client, currency, notes, terms and lines, tax on today's rules, the old days to pay unless due_date is sent. A foreign-currency sg_gst invoice issued before today needs fx_rate_to_sgd and fx_rate_date for today unless its rate is dated today. The old one is cancelled, its client link stops working, both trails link them. Paid, part-paid, credited or written-off invoices refuse: correct them with a credit note (invoice_adjustment_record). When present, the second content block is the new invoice as copy-ready text. Nothing is sent. NEXT: invoice_share only if the user asks for a link.
| Parameter | Type | Description |
|---|---|---|
| id | string | The invoice to cancel and issue again (invoice_list shows ids); its invoice_number works too. |
| reason | string | Why the invoice is reissued, kept in both invoices' activity (max 500). |
| due_date | integer | Epoch milliseconds of the new due date, today or later. Omit it to give the new invoice the old one's days to pay, counted from today. |
| fx_rate_date | string | The date the fx rate is for, YYYY-MM-DD. Send with fx_rate_to_sgd. |
| fx_rate_to_sgd | string | sg_gst invoices in a currency other than SGD: Singapore dollars per 1 unit of the invoice currency for today, the new invoice's date of supply ("1.3502", up to 6 decimals, from MAS, a local bank, Bloomberg, Reuters or Oanda). Send with fx_rate_date. Needed when the invoice was issued before today an… |
| invoice_number | string | Alias of id — the invoice's own number. |
| fx_rate_to_sgd_ppm | integer |
Records the date a client promised to pay an issued invoice that still has money owed: promised_payment_date 'YYYY-MM-DD', the business's own date, today or later. clear true removes it. invoice_read then shows promise_status: pending until that business day ends, kept when paid in full by then, broken after it. A broken promise makes promise_follow_up the default purpose of invoice_message_prepare. Each change is kept in the invoice's activity as promise_set. Refuses a draft, a cancelled invoice and one with nothing owed (CONFLICT), and a past or malformed date (VALIDATION_ERROR). Nothing is sent. NEXT: invoice_read.
| Parameter | Type | Description |
|---|---|---|
| id | string | The invoice the client promised to pay (invoice_list shows ids); its invoice_number works too. |
| note | string | What the client said, kept in the invoice's activity (max 500). |
| clear | boolean | true removes the promised date instead of setting one. |
| invoice_number | string | Alias of id — the invoice's own number. |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. A mismatch returns CONFLICT and changes nothing. |
| promised_payment_date | string | The business-local date the client promised to pay by, YYYY-MM-DD, today or later. Leave it out with clear true. |
{
"name": "invoice_promise_set",
"description": "Records the date a client promised to pay an issued invoice that still has money owed: promised_payment_date 'YYYY-MM-DD', the business's own date, today or later. clear true removes it. invoice_read then shows promise_status: pending until that business day ends, kept when paid in full by then, broken after it. A broken promise makes promise_follow_up the default purpose of invoice_message_prepare. Each change is kept in the invoice's activity as promise_set. Refuses a draft, a cancelled invoice and one with nothing owed (CONFLICT), and a past or malformed date (VALIDATION_ERROR). Nothing is sent. NEXT: invoice_read.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"id": {
"type": "string",
"description": "The invoice the client promised to pay (invoice_list shows ids); its invoice_number works too."
},
"note": {
"type": "string",
"description": "What the client said, kept in the invoice's activity (max 500)."
},
"clear": {
"type": "boolean",
"description": "true removes the promised date instead of setting one."
},
"invoice_number": {
"type": "string",
"description": "Alias of id — the invoice's own number."
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. A mismatch returns CONFLICT and changes nothing."
},
"promised_payment_date": {
"type": "string",
"description": "The business-local date the client promised to pay by, YYYY-MM-DD, today or later. Leave it out with clear true."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Returns one invoice with its money and state worked out on read, in integer CENTS: subtotal_cents, tax_cents, total_cents, paid_cents, credited_cents, adjusted_cents, remaining_cents (copy remaining_cents, never compute it). state: draft, sent, partially_paid, overdue, written_off, paid or cancelled. Overdue means issued, still owed and due before today in the business time zone (sales_settings.timezone, unset = Asia/Singapore); days_overdue counts days there. activity lists the newest 50 events; viewed_count and last_viewed_at count every view. payer_confirmations lists the payer's "I've paid" reports. An unknown id refuses with NOT_FOUND: find it with invoice_list or invoice_search.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice id. |
{
"name": "invoice_read",
"description": "Returns one invoice with its money and state worked out on read, in integer CENTS: subtotal_cents, tax_cents, total_cents, paid_cents, credited_cents, adjusted_cents, remaining_cents (copy remaining_cents, never compute it). state: draft, sent, partially_paid, overdue, written_off, paid or cancelled. Overdue means issued, still owed and due before today in the business time zone (sales_settings.timezone, unset = Asia/Singapore); days_overdue counts days there. activity lists the newest 50 events; viewed_count and last_viewed_at count every view. payer_confirmations lists the payer's \"I've paid\" reports. An unknown id refuses with NOT_FOUND: find it with invoice_list or invoice_search.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Lists your invoices, newest first (200 at most; pass limit and cursor to page). Every row carries the same worked-out money and state as invoice_read: total_cents, remaining_cents, state, is_overdue, days_overdue (integer CENTS, business days). To find what to chase, pass state 'overdue': only invoices issued, still owed and due before today in the business time zone come back. payer_confirmations_pending counts the payer's "I've paid" reports waiting on each row. Refuses an unlisted state, a limit outside 1-200 or a malformed cursor with VALIDATION_ERROR: resend with a listed state, without limit, or with next_cursor exactly as returned.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| state | string | Only invoices in this worked-out state, still newest first and paged the same way. Leave it out for every invoice. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_list",
"description": "Lists your invoices, newest first (200 at most; pass limit and cursor to page). Every row carries the same worked-out money and state as invoice_read: total_cents, remaining_cents, state, is_overdue, days_overdue (integer CENTS, business days). To find what to chase, pass state 'overdue': only invoices issued, still owed and due before today in the business time zone come back. payer_confirmations_pending counts the payer's \"I've paid\" reports waiting on each row. Refuses an unlisted state, a limit outside 1-200 or a malformed cursor with VALIDATION_ERROR: resend with a listed state, without limit, or with next_cursor exactly as returned.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"state": {
"enum": [
"draft",
"sent",
"partially_paid",
"overdue",
"written_off",
"paid",
"cancelled"
],
"type": "string",
"description": "Only invoices in this worked-out state, still newest first and paged the same way. Leave it out for every invoice."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Finds invoices whose text fields (invoice number, notes, payment terms) contain every word of q. Rows carry the same worked-out money and state as invoice_read: total_cents, remaining_cents, state, is_overdue (integer CENTS), and payer_confirmations_pending. Refuses an empty q with VALIDATION_ERROR: send the invoice number, such as INV-2026-0001, or a word from its notes.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_search",
"description": "Finds invoices whose text fields (invoice number, notes, payment terms) contain every word of q. Rows carry the same worked-out money and state as invoice_read: total_cents, remaining_cents, state, is_overdue (integer CENTS), and payer_confirmations_pending. Refuses an empty q with VALIDATION_ERROR: send the invoice number, such as INV-2026-0001, or a word from its notes.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one invoice_adjustment by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_adjustment id. |
{
"name": "invoice_adjustment_read",
"description": "Read one invoice_adjustment by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_adjustment id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your invoice_adjustment rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_adjustment_list",
"description": "List your invoice_adjustment rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}[REQUIRES APPROVAL] Retires a dilution fact row — the only correction lane (adjustments are append-only; amounts are never edited). If the retired row was a credit that settled the invoice, the status rolls from 'paid' back to 'sent' and paid_at clears; the remaining balance and the derived 'written_off' state re-derive from the live rows immediately. An agent's call parks here for human approval. NEXT: invoice_adjustment_record to re-record the correct amount.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The adjustment id (invoice_adjustment_list shows them). |
| reason | string | |
| currency | string | |
| invoice_id | string | |
| occurred_at | integer | |
| reason_code | string | one of ["goods_returned","damaged_or_defective","pricing_error","discount","service_not_rendered","cancellation","other"] |
| amount_cents | integer | |
| adjustment_id | string | Alias of id. |
| credit_outcome | string | one of ["reduce_balance","refunded_outside"] |
| adjustment_type |
Create a invoice_client.
| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| string | ||
| notes | string | |
| phone | string | |
| address | string | |
| company | string | |
| contact_id | string | |
| message_language | string | one of ["en","ms","zh"] |
| reminder_cadence | string | one of ["standard","from_due","overdue_only","off"] |
{
"name": "invoice_client_create",
"description": "Create a invoice_client.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"maxLength": 1000
},
"phone": {
"type": "string",
"maxLength": 50
},
"address": {
"type": "string",
"maxLength": 500
},
"company": {
"type": "string",
"maxLength": 200
},
"contact_id": {
"type": "string",
"maxLength": 40
},
"message_language": {
"enum": [
"en",
"ms",
"zh"
],
"type": "string",
"maxLength": 8
},
"reminder_cadence": {
"enum": [
"standard",
"from_due",
"overdue_only",
"off"
],
"type": "string",
"maxLength": 16
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Create-or-update a invoice_client keyed on email.
| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| email * | string | |
| notes | string | |
| phone | string | |
| address | string | |
| company | string | |
| contact_id | string | |
| message_language | string | one of ["en","ms","zh"] |
| reminder_cadence | string | one of ["standard","from_due","overdue_only","off"] |
{
"name": "invoice_client_upsert",
"description": "Create-or-update a invoice_client keyed on email.",
"inputSchema": {
"type": "object",
"required": [
"name",
"email"
],
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"maxLength": 1000
},
"phone": {
"type": "string",
"maxLength": 50
},
"address": {
"type": "string",
"maxLength": 500
},
"company": {
"type": "string",
"maxLength": 200
},
"contact_id": {
"type": "string",
"maxLength": 40
},
"message_language": {
"enum": [
"en",
"ms",
"zh"
],
"type": "string",
"maxLength": 8
},
"reminder_cadence": {
"enum": [
"standard",
"from_due",
"overdue_only",
"off"
],
"type": "string",
"maxLength": 16
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Update a invoice_client you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_client id. |
| name | string | |
| string | ||
| notes | string | |
| phone | string | |
| address | string | |
| company | string | |
| contact_id | string | |
| message_language | string | one of ["en","ms","zh"] |
| reminder_cadence | string | one of ["standard","from_due","overdue_only","off"] |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
Delete a invoice_client you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_client id. |
{
"name": "invoice_client_delete",
"description": "Delete a invoice_client you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_client id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one invoice_client by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_client id. |
{
"name": "invoice_client_read",
"description": "Read one invoice_client by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_client id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your invoice_client rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_client_list",
"description": "List your invoice_client rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search your invoice_client rows by text.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_client_search",
"description": "Search your invoice_client rows by text.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}[REQUIRES APPROVAL] Asserts that a billing client IS an on-platform tenant (or pass counterparty_tenant_id null to unlink) and retro-stamps that client's existing invoices with the link in the same call — invoices_stamped in the result is the count. Linking requires the counterparty's 'cross_tenant_settlement' consent AND a live network relationship (an active match or a deal thread); unlinking passes neither gate, since it withdraws your own assertion rather than making a new one. NEXT: invoice_client_read to read back what linked.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_client id (invoice_client_list shows them). |
| name | string | |
| string | ||
| notes | string | |
| phone | string | |
| address | string | |
| company | string | |
| client_id | string | Alias of id. |
| contact_id | string | |
| message_language | string | one of ["en","ms","zh"] |
| reminder_cadence | string |
Adds one line item to an invoice. unit_price_cents is integer CENTS, 0 or more ($15.00 → 1500); quantity is 0.001 to 1,000,000 with up to 3 decimals (1.5 hours → 1.5); unit is an optional label (hr, kg); discount_bps is an optional line discount (10% → 1000). quantity × unit_price_cents is at most 10,000,000,000. Refuses a negative price (send discount_bps instead), a 'paid' parent (retire the payment first) and a 'cancelled' parent (issue a new invoice). Re-derives the invoice's paid/sent status. tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: invoice_read to see the updated total.
| Parameter | Type | Description |
|---|---|---|
| unit | string | |
| position | integer | |
| quantity | number | How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1. |
| tax_code | string | one of ["standard","zero_rated","exempt","out_of_scope","sales_10","sales_5","service_8","service_6"] |
| invoice_id | string | |
| description | string | |
| discount_bps | integer | Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price. |
| unit_price_cents | integer |
Edits a line item's description, quantity, unit, price or discount, or re-parents it to another invoice. expected_updated_at is required: the line's updated_at from your read; without it nothing is written and the refusal names the current value; a line changed since then answers CONFLICT. Bounds: unit_price_cents is integer CENTS, 0 or more; quantity 0.001 to 1,000,000 (3 decimals); discount_bps 0 to 10000; quantity × unit_price_cents at most 10,000,000,000. unit "" clears the unit. Refuses when the current or target invoice is paid or cancelled. tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: invoice_read to see the updated total.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_item id (invoice_item_list shows them). |
| unit | string | |
| position | integer | |
| quantity | number | How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1. |
| tax_code | string | one of ["standard","zero_rated","exempt","out_of_scope","sales_10","sales_5","service_8","service_6"] |
| invoice_id | string | |
| description | string | |
| discount_bps | integer | Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price. |
| unit_price_cents |
Soft-deletes a line item — it leaves the invoice and its derived total immediately, but the row is retired for audit history, never removed. expected_updated_at is required: the line's updated_at from your read (invoice_item_read); without it the removal is refused and the refusal names the current value. Refuses when the parent invoice is 'paid' (ledger-locked: retire the payment first) or 'cancelled' (terminal: its lines stay as issued), and with CONFLICT when the line changed since that read (read it again). If retiring the line settles the remaining balance on a partially-paid invoice, the parent re-derives to 'paid' by itself. NEXT: invoice_read to see the updated total.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_item id (invoice_item_list shows them). |
| unit | string | |
| position | integer | |
| quantity | integer | |
| tax_code | string | one of ["standard","zero_rated","exempt","out_of_scope","sales_10","sales_5","service_8","service_6"] |
| invoice_id | string | |
| description | string | |
| discount_bps | integer | |
| unit_price_cents | integer |
Read one invoice_item by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_item id. |
{
"name": "invoice_item_read",
"description": "Read one invoice_item by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_item id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your invoice_item rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_item_list",
"description": "List your invoice_item rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one invoice_payment by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_payment id. |
{
"name": "invoice_payment_read",
"description": "Read one invoice_payment by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_payment id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your invoice_payment rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_payment_list",
"description": "List your invoice_payment rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}[REQUIRES APPROVAL] Retires a payment fact row — the only correction lane (payments are append-only; amounts are never edited). If retiring it un-settles the invoice, the reversal itself rolls the status from 'paid' back to 'sent' and clears paid_at. An agent's call parks here for a human to approve in the Simpler UI; a human's call is its own approval. NEXT: invoice_payment_record to re-record the correct amount.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The payment id (invoice_payment_list shows them). |
| note | string | |
| method | string | one of ["cash","transfer","ewallet","other"] |
| currency | string | |
| invoice_id | string | |
| payment_id | string | Alias of id. |
| occurred_at | integer | |
| amount_cents | integer |
{
"name": "invoice_payment_delete",
"description": "[REQUIRES APPROVAL] Retires a payment fact row — the only correction lane (payments are append-only; amounts are never edited). If retiring it un-settles the invoice, the reversal itself rolls the status from 'paid' back to 'sent' and clears paid_at. An agent's call parks here for a human to approve in the Simpler UI; a human's call is its own approval. NEXT: invoice_payment_record to re-record the correct amount.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The payment id (invoice_payment_list shows them)."
},
"note": {
"type": "string",
"maxLength": 500
},
"method": {
"enum": [
"cash",
"transfer",
"ewallet",
"other"
],
"type": "string"
},
"currency": {
"type": "string",
"maxLength": 3
},
"invoice_id": {
"type": "string",
"maxLength": 40
},
"payment_id": {
"type": "string",
"description": "Alias of id."
},
"occurred_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Create a invoice_recurring.
| Parameter | Type | Description |
|---|---|---|
| notes | string | |
| title * | string | |
| ends_on | integer | |
| currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| next_due * | integer | |
| client_id | string | |
| frequency * | string | one of ["weekly","monthly","yearly"] |
| is_active | integer | |
| items_json * | string | |
| tax_scheme | string | one of ["sg_gst","my_sst","none"] |
| day_of_week | integer | |
| day_of_month | integer |
Update a invoice_recurring you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_recurring id. |
| notes | string | |
| title | string | |
| ends_on | integer | |
| currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| next_due | integer | |
| client_id | string | |
| frequency | string | one of ["weekly","monthly","yearly"] |
| is_active | integer | |
| items_json | string | |
| tax_scheme | string | one of ["sg_gst","my_sst","none"] |
| day_of_week | integer | |
Delete a invoice_recurring you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_recurring id. |
{
"name": "invoice_recurring_delete",
"description": "Delete a invoice_recurring you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_recurring id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one invoice_recurring by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice_recurring id. |
{
"name": "invoice_recurring_read",
"description": "Read one invoice_recurring by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_recurring id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your invoice_recurring rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "invoice_recurring_list",
"description": "List your invoice_recurring rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Skips a recurring template's next invoice: next_due moves one period on (the template's own weekly, monthly or yearly day) and no invoice is made. A skip does not count toward max_invoices. Refuses NOT_FOUND for an id outside your tenant (call invoice_recurring_list) and CONFLICT when the template has ended (raise ends_on or max_invoices with invoice_recurring_update) or changed since expected_updated_at (read it again). Each call skips one run: to skip the run after, send expected_updated_at from this answer. Nothing is sent. NEXT: invoice_recurring_read.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The recurring template whose next invoice to skip (invoice_recurring_list shows ids). |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. A mismatch returns CONFLICT and changes nothing. |
{
"name": "invoice_recurring_skip",
"description": "Skips a recurring template's next invoice: next_due moves one period on (the template's own weekly, monthly or yearly day) and no invoice is made. A skip does not count toward max_invoices. Refuses NOT_FOUND for an id outside your tenant (call invoice_recurring_list) and CONFLICT when the template has ended (raise ends_on or max_invoices with invoice_recurring_update) or changed since expected_updated_at (read it again). Each call skips one run: to skip the run after, send expected_updated_at from this answer. Nothing is sent. NEXT: invoice_recurring_read.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The recurring template whose next invoice to skip (invoice_recurring_list shows ids)."
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. A mismatch returns CONFLICT and changes nothing."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Post to one of the tenant's 8 market-signal wish-bar slots — a buy, sell, swap, capacity-offer or capacity-request visible ONLY to platform-matched partners, never the wider network. The door counts your OPEN signals server-side before writing: the 9th is refused with slots_used/slots_max in the error rather than silently queued. NEXT: market_signal_update to close or fulfil a signal and free a slot.
| Parameter | Type | Description |
|---|---|---|
| notes | string | |
| status | string | one of ["open","fulfilled","closed"] |
| product | string | |
| currency | string | |
| deadline | integer | |
| location | string | |
| quantity | string | |
| price_cents | integer | |
| signal_type | string | one of ["buy","sell","swap","capacity_offer","capacity_request"] |
{
"name": "market_signal_create",
"description": "Post to one of the tenant's 8 market-signal wish-bar slots — a buy, sell, swap, capacity-offer or capacity-request visible ONLY to platform-matched partners, never the wider network. The door counts your OPEN signals server-side before writing: the 9th is refused with slots_used/slots_max in the error rather than silently queued. NEXT: market_signal_update to close or fulfil a signal and free a slot.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"notes": {
"type": "string",
"maxLength": 1000
},
"status": {
"enum": [
"open",
"fulfilled",
"closed"
],
"type": "string"
},
"product": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"deadline": {
"type": "integer"
},
"location": {
"type": "string",
"maxLength": 120
},
"quantity": {
"type": "string",
"maxLength": 100
},
"price_cents": {
"type": "integer"
},
"signal_type": {
"enum": [
"buy",
"sell",
"swap",
"capacity_offer",
"capacity_request"
],
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Update a market_signal you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The market_signal id. |
| notes | string | |
| status | string | one of ["open","fulfilled","closed"] |
| product | string | |
| currency | string | |
| deadline | integer | |
| location | string | |
| quantity | string | |
| price_cents | integer | |
| signal_type | string | one of ["buy","sell","swap","capacity_offer","capacity_request"] |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
List your market_signal rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "market_signal_list",
"description": "List your market_signal rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one market_signal by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The market_signal id. |
{
"name": "market_signal_read",
"description": "Read one market_signal by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The market_signal id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Register a buyer in the LHDN buyer registry so it attaches to future e-invoices with one pick (customer_id) instead of typing the party every time. Validates the TIN format, and validates state_code against the LHDN state table when you send one — a buyer with no real TIN uses the LHDN generic TIN (EI00000000010 Malaysian public, EI00000000020 foreign) instead. NEXT: myinvois_invoice_generate with customer_id.
| Parameter | Type | Description |
|---|---|---|
| brn | string | |
| tin | string | |
| city | string | |
| name | string | |
| string | ||
| notes | string | |
| address | string | |
| sst_number | string | |
| state_code | string | |
| postal_code | string | |
| country_code | string | |
| contact_number | string |
Edit a registered buyer's LHDN details — send only the fields you are changing. When tin is included it is re-checked against the same format gate create runs, and when state_code is included it is re-checked against the LHDN state table, so an edited buyer stays valid to generate against. Never touches e-invoices already generated for this buyer; each one sealed its own copy of the buyer party. NEXT: myinvois_customer_list to find the id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_customer id (myinvois_customer_list shows them). |
| brn | string | |
| tin | string | |
| city | string | |
| name | string | |
| string | ||
| notes | string | |
| address | string | |
| sst_number | string | |
| state_code | string | |
| postal_code | string | |
| country_code |
Delete a registered buyer. E-invoices already generated for this buyer keep their sealed copy of the buyer party and are never touched. Refuses an id outside your tenant with NOT_FOUND: call myinvois_customer_list for valid ids.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_customer id. |
{
"name": "myinvois_customer_delete",
"description": "Delete a registered buyer. E-invoices already generated for this buyer keep their sealed copy of the buyer party and are never touched. Refuses an id outside your tenant with NOT_FOUND: call myinvois_customer_list for valid ids.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_customer id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one registered buyer by id: name, TIN, BRN, SST number, address and contact. myinvois_invoice_generate seals the name, TIN, BRN, address and contact; the buyer's SST number stays on this record and is not sealed on the e-invoice. Refuses an id outside your tenant with NOT_FOUND: call myinvois_customer_list or myinvois_customer_search for valid ids. NEXT: myinvois_invoice_generate with this id as customer_id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_customer id. |
{
"name": "myinvois_customer_read",
"description": "Read one registered buyer by id: name, TIN, BRN, SST number, address and contact. myinvois_invoice_generate seals the name, TIN, BRN, address and contact; the buyer's SST number stays on this record and is not sealed on the e-invoice. Refuses an id outside your tenant with NOT_FOUND: call myinvois_customer_list or myinvois_customer_search for valid ids. NEXT: myinvois_invoice_generate with this id as customer_id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_customer id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List registered buyers, newest first, to pick a customer_id for myinvois_invoice_generate. An empty list means none are registered yet: call myinvois_customer_create, or send an inline buyer {name, tin} to myinvois_invoice_generate instead.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "myinvois_customer_list",
"description": "List registered buyers, newest first, to pick a customer_id for myinvois_invoice_generate. An empty list means none are registered yet: call myinvois_customer_create, or send an inline buyer {name, tin} to myinvois_invoice_generate instead.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Find registered buyers by text: every word must match one of the buyer's text fields, such as name, TIN, BRN, email or address. Refuses an empty q with VALIDATION_ERROR. No match returns an empty list: call myinvois_customer_create to register the buyer. NEXT: myinvois_invoice_generate with the id as customer_id.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "myinvois_customer_search",
"description": "Find registered buyers by text: every word must match one of the buyer's text fields, such as name, TIN, BRN, email or address. Refuses an empty q with VALIDATION_ERROR. No match returns an empty list: call myinvois_customer_create to register the buyer. NEXT: myinvois_invoice_generate with the id as customer_id.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your myinvois_invoice rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "myinvois_invoice_list",
"description": "List your myinvois_invoice rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Find generated e-invoices by text: every word must match one of the document's text fields, such as invoice number, buyer name or buyer TIN. Refuses an empty q with VALIDATION_ERROR. Rows carry no field sheet: call myinvois_invoice_read with the id for portal_field_sheet. No match returns an empty list: call myinvois_invoice_list to browse the newest.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "myinvois_invoice_search",
"description": "Find generated e-invoices by text: every word must match one of the document's text fields, such as invoice number, buyer name or buyer TIN. Refuses an empty q with VALIDATION_ERROR. Rows carry no field sheet: call myinvois_invoice_read with the id for portal_field_sheet. No match returns an empty list: call myinvois_invoice_list to browse the newest.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}[REQUIRES APPROVAL] Save the one-time LHDN supplier profile — the door checks for an existing row on your tenant and creates or updates in place, so this is the only write you ever call. Validates the TIN format, checks msic_code is a 5-digit MSIC code, and checks state_code against the LHDN state table before the row moves. NEXT: myinvois_invoice_generate reads this profile as the supplier party of every e-invoice.
| Parameter | Type | Description |
|---|---|---|
| brn | string | |
| tin | string | |
| city | string | |
| string | ||
| scope | string | one of ["default"] |
| msic_code | string | |
| sst_number | string | |
| state_code | string | |
| postal_code | string | |
| company_name | string | |
| country_code | string | |
| address_line1 | string |
Read the supplier profile by id: the party printed on every e-invoice (company, TIN, BRN, SST and tourism tax numbers, MSIC code, address). Refuses an id outside your tenant with NOT_FOUND: call myinvois_settings_list, which returns the one profile row. NEXT: myinvois_settings_save to change it.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_settings id. |
{
"name": "myinvois_settings_read",
"description": "Read the supplier profile by id: the party printed on every e-invoice (company, TIN, BRN, SST and tourism tax numbers, MSIC code, address). Refuses an id outside your tenant with NOT_FOUND: call myinvois_settings_list, which returns the one profile row. NEXT: myinvois_settings_save to change it.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_settings id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List the supplier profile: at most one row per tenant. An empty list means setup is not done, and myinvois_invoice_generate refuses until it is: call myinvois_settings_save with the company, TIN, BRN, MSIC code and address. NEXT: myinvois_invoice_generate.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "myinvois_settings_list",
"description": "List the supplier profile: at most one row per tenant. An empty list means setup is not done, and myinvois_invoice_generate refuses until it is: call myinvois_settings_save with the company, TIN, BRN, MSIC code and address. NEXT: myinvois_invoice_generate.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Save a reusable line-item preset so a repeat invoice's items do not get re-typed. line_items_json is parsed and each item validated by the SAME checker myinvois_invoice_generate uses (description, quantity, unit_price_cents in integer CENTS, tax_rate_bps in basis points, tax_type/classification_code/unit_code against the LHDN code tables) and re-serialized canonically, so a saved template's items are always generate-ready. NEXT: myinvois_template_list to pull the items back out for a generate call.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| notes | string | |
| description | string | |
| payment_terms | string | |
| line_items_json | string |
{
"name": "myinvois_template_create",
"description": "Save a reusable line-item preset so a repeat invoice's items do not get re-typed. line_items_json is parsed and each item validated by the SAME checker myinvois_invoice_generate uses (description, quantity, unit_price_cents in integer CENTS, tax_rate_bps in basis points, tax_type/classification_code/unit_code against the LHDN code tables) and re-serialized canonically, so a saved template's items are always generate-ready. NEXT: myinvois_template_list to pull the items back out for a generate call.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string",
"maxLength": 100
},
"notes": {
"type": "string",
"maxLength": 2000
},
"description": {
"type": "string",
"maxLength": 500
},
"payment_terms": {
"type": "string",
"maxLength": 500
},
"line_items_json": {
"type": "string",
"maxLength": 8000
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Edit a saved line-item preset. When line_items_json is included it is re-parsed and every item re-validated exactly as create does, so an edited template cannot drift into a shape myinvois_invoice_generate would reject. NEXT: myinvois_template_list to find the id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_template id (myinvois_template_list shows them). |
| name | string | |
| notes | string | |
| description | string | |
| payment_terms | string | |
| line_items_json | string | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at from a prior myinvois_template_list/read. Mismatch returns CONFLICT with the current value. |
{
"name": "myinvois_template_update",
"description": "Edit a saved line-item preset. When line_items_json is included it is re-parsed and every item re-validated exactly as create does, so an edited template cannot drift into a shape myinvois_invoice_generate would reject. NEXT: myinvois_template_list to find the id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_template id (myinvois_template_list shows them)."
},
"name": {
"type": "string",
"maxLength": 100
},
"notes": {
"type": "string",
"maxLength": 2000
},
"description": {
"type": "string",
"maxLength": 500
},
"payment_terms": {
"type": "string",
"maxLength": 500
},
"line_items_json": {
"type": "string",
"maxLength": 8000
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at from a prior myinvois_template_list/read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Delete a saved line-item preset. E-invoices generated from it are never touched: each one sealed its own lines. Refuses an id outside your tenant with NOT_FOUND: call myinvois_template_list for valid ids.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_template id. |
{
"name": "myinvois_template_delete",
"description": "Delete a saved line-item preset. E-invoices generated from it are never touched: each one sealed its own lines. Refuses an id outside your tenant with NOT_FOUND: call myinvois_template_list for valid ids.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_template id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one line-item preset by id. Its line_items_json holds generate-ready items: pass them as line_items to myinvois_invoice_generate. Refuses an id outside your tenant with NOT_FOUND: call myinvois_template_list for valid ids.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The myinvois_template id. |
{
"name": "myinvois_template_read",
"description": "Read one line-item preset by id. Its line_items_json holds generate-ready items: pass them as line_items to myinvois_invoice_generate. Refuses an id outside your tenant with NOT_FOUND: call myinvois_template_list for valid ids.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_template id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List saved line-item presets, newest first. Each line_items_json is generate-ready: pass its items as line_items to myinvois_invoice_generate. An empty list means none are saved yet: call myinvois_template_create.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "myinvois_template_list",
"description": "List saved line-item presets, newest first. Each line_items_json is generate-ready: pass its items as line_items to myinvois_invoice_generate. An empty list means none are saved yet: call myinvois_template_create.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Edits a quote's header fields and bookkeeping status (draft, sent, accepted, declined move freely). status 'converted' and converted_invoice_id are convert-flow-owned — hand-setting either refuses, and a converted quote is frozen: no status move and no header edit (it could convert again and double-bill; its invoice is the live document, so edit that). tax_scheme and prices_include_tax are fixed at creation, as is the tax rate. NEXT: quote_convert to create the invoice and record the link atomically.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The quote id (quote_list shows them). |
| notes | string | |
| status | string | one of ["draft","sent","accepted","declined","converted"] |
| currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| client_id | string | |
| issue_date | integer | |
| tax_scheme | string | one of ["sg_gst","my_sst"] |
| valid_until | integer | |
| quote_number | string | |
| tax_rate_bps | integer |
Returns share_url, the client's view link for this quote, and the full document (parties, lines, totals in integer CENTS) in one call. action: 'get' (default) returns the live link; 'rotate' replaces it and the old link stops working; 'revoke' turns it off. A link the owner turned off stays off for agents: 'get' never re-issues it, and an agent's 'rotate' waits for the owner's approval. Anyone with the link can open the page until the quote expires, is declined or converted (see link_serving). There is no PDF file yet; the link opens a print-ready page the client can print or save as PDF. Nothing is sent: give the link to the owner, who decides whether it goes to the client.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The quote id (quote_list shows them). |
| action | string | get (default): the live link, made the first time. rotate: replace it with a new link; the old one stops working. revoke: turn the link off. |
| quote_id | string | Alias of id. |
| fresh_after | integer | Omit it. Only when an error's next_call includes fresh_after, send that call exactly as given. |
{
"name": "quote_share",
"description": "Returns share_url, the client's view link for this quote, and the full document (parties, lines, totals in integer CENTS) in one call. action: 'get' (default) returns the live link; 'rotate' replaces it and the old link stops working; 'revoke' turns it off. A link the owner turned off stays off for agents: 'get' never re-issues it, and an agent's 'rotate' waits for the owner's approval. Anyone with the link can open the page until the quote expires, is declined or converted (see link_serving). There is no PDF file yet; the link opens a print-ready page the client can print or save as PDF. Nothing is sent: give the link to the owner, who decides whether it goes to the client.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The quote id (quote_list shows them)."
},
"action": {
"enum": [
"get",
"rotate",
"revoke"
],
"type": "string",
"description": "get (default): the live link, made the first time. rotate: replace it with a new link; the old one stops working. revoke: turn the link off."
},
"quote_id": {
"type": "string",
"description": "Alias of id."
},
"fresh_after": {
"type": "integer",
"description": "Omit it. Only when an error's next_call includes fresh_after, send that call exactly as given."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Returns one quote with subtotal_cents, tax_cents and total_cents worked out from its live lines (integer CENTS) and effective_status, which reads 'expired' once a sent quote's valid_until has passed (the stored status never says so). A quote with a tax_scheme also returns tax_summary (each line's tax code, net, tax and gross, and the per-code totals). Refuses an unknown id with NOT_FOUND: find the id with quote_list or quote_search.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The quote id. |
{
"name": "quote_read",
"description": "Returns one quote with subtotal_cents, tax_cents and total_cents worked out from its live lines (integer CENTS) and effective_status, which reads 'expired' once a sent quote's valid_until has passed (the stored status never says so). A quote with a tax_scheme also returns tax_summary (each line's tax code, net, tax and gross, and the per-code totals). Refuses an unknown id with NOT_FOUND: find the id with quote_list or quote_search.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The quote id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Lists your quotes, newest first (200 at most; pass limit and cursor to page). Every row carries total_cents (integer CENTS) and effective_status, so an expired quote reads 'expired'. Refuses a limit outside 1-200 or a malformed cursor with VALIDATION_ERROR: resend without them, or with next_cursor exactly as returned.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "quote_list",
"description": "Lists your quotes, newest first (200 at most; pass limit and cursor to page). Every row carries total_cents (integer CENTS) and effective_status, so an expired quote reads 'expired'. Refuses a limit outside 1-200 or a malformed cursor with VALIDATION_ERROR: resend without them, or with next_cursor exactly as returned.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Finds quotes whose text fields (quote number, notes) contain every word of q; rows carry total_cents (integer CENTS) and effective_status. Refuses an empty q with VALIDATION_ERROR: send the quote number, such as QUO-2026-0001, or a word from its notes.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "quote_search",
"description": "Finds quotes whose text fields (quote number, notes) contain every word of q; rows carry total_cents (integer CENTS) and effective_status. Refuses an empty q with VALIDATION_ERROR: send the quote number, such as QUO-2026-0001, or a word from its notes.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Adds one line item to a quote. unit_price_cents is integer CENTS, 0 or more ($15.00 → 1500); quantity is 0.001 to 1,000,000 with up to 3 decimals (1.5 hours → 1.5); unit is an optional label (hr, kg); discount_bps is an optional line discount (10% → 1000). quantity × unit_price_cents is at most 10,000,000,000. Refuses a negative price (send discount_bps instead), a line above the ceiling (split it) and any line on a converted quote (CONFLICT: change its invoice instead). tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: quote_read to see the quote.
| Parameter | Type | Description |
|---|---|---|
| unit | string | |
| position | integer | |
| quantity | number | How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1. |
| quote_id | string | |
| tax_code | string | one of ["standard","zero_rated","exempt","out_of_scope","sales_10","sales_5","service_8","service_6"] |
| description | string | |
| discount_bps | integer | Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price. |
| unit_price_cents | integer |
Edits a quote line's description, quantity, unit, price or discount, or moves it to another quote. expected_updated_at is required: the line's updated_at from your read; without it nothing is written and the refusal names the current value; a line changed since then answers CONFLICT. Refuses a line of a converted quote or a move onto one (CONFLICT: change its invoice instead). Bounds: unit_price_cents is integer CENTS, 0 or more; quantity 0.001 to 1,000,000 (3 decimals); discount_bps 0 to 10000; quantity × unit_price_cents at most 10,000,000,000. unit "" clears the unit. tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: quote_read.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The quote_item id (quote_item_list shows them). |
| unit | string | |
| position | integer | |
| quantity | number | How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1. |
| quote_id | string | |
| tax_code | string | one of ["standard","zero_rated","exempt","out_of_scope","sales_10","sales_5","service_8","service_6"] |
| description | string | |
| discount_bps | integer | Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price. |
| unit_price_cents |
Soft-deletes a quote line — it leaves the quote and its totals immediately, but the row is retired for audit history, never removed. expected_updated_at is required: the line's updated_at from your read (quote_item_read); without it the removal is refused and the refusal names the current value. Refuses with CONFLICT when the line changed since that read (read it again and decide on the current line) and on a converted quote (its lines are frozen: change its invoice instead). NEXT: quote_read to see the quote.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The quote_item id (quote_item_list shows them). |
| unit | string | |
| position | integer | |
| quantity | integer | |
| quote_id | string | |
| tax_code | string | one of ["standard","zero_rated","exempt","out_of_scope","sales_10","sales_5","service_8","service_6"] |
| description | string | |
| discount_bps | integer | |
| unit_price_cents | integer | |
| expected_updated_at * |
Read one quote_item by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The quote_item id. |
{
"name": "quote_item_read",
"description": "Read one quote_item by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The quote_item id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your quote_item rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "quote_item_list",
"description": "List your quote_item rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}[REQUIRES APPROVAL] Saves your business identity and document defaults (one row per business; scope is 'default'). timezone is the business clock: an invoice turns overdue at midnight in that zone after its due day, and days_overdue counts days there; unset means Asia/Singapore. Left out, timezone and the text fields keep their saved value, but defaulted fields (default_currency, default_tax_rate_bps, payment_terms_days, invoice_prefix, quote_prefix, template_style) reset, so resend them from sales_settings_read. An agent call waits for the owner's approval. Refuses an unlisted timezone or currency, or a tax rate outside 0-10000, with VALIDATION_ERROR before it waits for approval: send a listed value.
| Parameter | Type | Description |
|---|---|---|
| scope * | string | one of ["default"] |
| tax_id | string | |
| timezone | string | one of ["Asia/Singapore","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Brunei","Asia/Jakarta","Asia/Pontianak","Asia/Makassar","Asia/Jayapura","Asia/Bangkok","Asia/Ho_Chi_Minh","Asia/Phnom_Penh","Asia/Vientiane",… |
| bank_name | string | |
| tax_scheme | string | one of ["sg_gst","my_sst","none"] |
| bank_account | string | |
| quote_prefix | string | |
| business_name | string | |
| business_email |
[REQUIRES APPROVAL] Sets where a document type's numbers continue, for example after moving from another invoicing tool. doc_type: invoice, quote, credit_note, debit_note or receipt. next_number is the sequence number the next document gets (42 prints as INV-2026-042). Numbering only moves forward: a number at or below the last one used or skipped is refused with VALIDATION_ERROR naming that number, and nothing changes. prefix sets the credit_note, debit_note or receipt prefix; invoice and quote prefixes are invoice_prefix and quote_prefix on sales_settings_upsert. An agent call waits for the owner's approval. Read the current numbers with sales_settings_numbering_read.
| Parameter | Type | Description |
|---|---|---|
| prefix | string | credit_note, debit_note or receipt only: 1-10 letters or digits (plus . _ / -), printed before the year. |
| doc_type * | string | Which document type's numbering to change. |
| next_number | integer | The sequence number the next document of this type gets. Must be above the last number used or skipped. |
{
"name": "sales_settings_numbering_set",
"description": "[REQUIRES APPROVAL] Sets where a document type's numbers continue, for example after moving from another invoicing tool. doc_type: invoice, quote, credit_note, debit_note or receipt. next_number is the sequence number the next document gets (42 prints as INV-2026-042). Numbering only moves forward: a number at or below the last one used or skipped is refused with VALIDATION_ERROR naming that number, and nothing changes. prefix sets the credit_note, debit_note or receipt prefix; invoice and quote prefixes are invoice_prefix and quote_prefix on sales_settings_upsert. An agent call waits for the owner's approval. Read the current numbers with sales_settings_numbering_read.",
"inputSchema": {
"type": "object",
"required": [
"doc_type"
],
"properties": {
"prefix": {
"type": "string",
"description": "credit_note, debit_note or receipt only: 1-10 letters or digits (plus . _ / -), printed before the year."
},
"doc_type": {
"enum": [
"invoice",
"quote",
"credit_note",
"debit_note",
"receipt"
],
"type": "string",
"description": "Which document type's numbering to change."
},
"next_number": {
"type": "integer",
"maximum": 999999999,
"minimum": 1,
"description": "The sequence number the next document of this type gets. Must be above the last number used or skipped."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}List your sales_settings rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "sales_settings_list",
"description": "List your sales_settings rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one sales_settings by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The sales_settings id. |
{
"name": "sales_settings_read",
"description": "Read one sales_settings by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The sales_settings id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Accept a settlement obligation recorded against your tenant as payee — moves status proposed to accepted and stamps accepted_at under the registry's transition guard. Calling it again on an already-accepted row is idempotent (accepted_at simply re-stamps); once a proposal reaches settled the guard refuses any further move, since settled is terminal. Recording agreement only: no money moves here, settlement execution is a later rail's door. NEXT: settlement_proposal_read to verify the accepted row.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The settlement_proposal id to accept, recorded against your tenant as payee (settlement_proposal_list shows them). |
| status | string | one of ["proposed","accepted","settled"] |
| currency | string | |
| accepted_at | integer | |
| description | string | |
| amount_cents | integer | |
| payer_tenant_id | string | |
| consent_grant_id | string | |
| related_entity_id | string | |
| related_entity_type | string |
List your settlement_proposal rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "settlement_proposal_list",
"description": "List your settlement_proposal rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one settlement_proposal by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The settlement_proposal id. |
{
"name": "settlement_proposal_read",
"description": "Read one settlement_proposal by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The settlement_proposal id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Register a spreadsheet file row in the library for bytes that already sit in R2: r2_key must be a spreadsheets/<your tenant>/ key minted by the upload route or spreadsheet.create_with_content — a caller-invented, foreign-tenant, or wrong-domain key is refused. sheet_count, row_count, and column_count are unverified client-reported hints, since nothing server-side parses the binary. NEXT: spreadsheet.create_with_content stores the bytes and registers the row together.
| Parameter | Type | Description |
|---|---|---|
| tags | string | |
| title | string | |
| r2_key | string | |
| source | string | one of ["upload","ai-generated","agent"] |
| ai_prompt | string | |
| file_size | integer | |
| folder_id | string | |
| row_count | integer | |
| deleted_at | integer | |
| sheet_count | integer | |
| sheet_names | string | |
| column_count |
Edit a spreadsheet file's metadata — title, tags, folder_id, or the AI-analysis fields — without touching the underlying R2 object. r2_key and source are birth facts: including either field in the call at all, even set to its current value, is refused — re-upload as a new file to change custody or provenance. Moving folder_id re-verifies the target folder belongs to your tenant. NEXT: spreadsheet_file_read to confirm the change landed.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The spreadsheet_file id (spreadsheet_file_list shows them). |
| tags | string | |
| title | string | |
| r2_key | string | |
| source | string | one of ["upload","ai-generated","agent"] |
| ai_prompt | string | |
| file_size | integer | |
| folder_id | string | |
| row_count | integer | |
| deleted_at | integer | |
| sheet_count | integer | |
Soft-delete a spreadsheet file: stamps deleted_at on the row so it drops out of the library and folder listings, while the row and its R2 object both survive untouched — there is no purge or restore lane yet, so this cannot be reversed through any current door. Requires the file id; an empty id is refused before anything is touched. NEXT: spreadsheet_file_read to confirm deleted_at is now set — the generic list tool still includes soft-deleted rows.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The spreadsheet_file id (spreadsheet_file_list shows them). |
| tags | string | |
| title | string | |
| r2_key | string | |
| source | string | one of ["upload","ai-generated","agent"] |
| ai_prompt | string | |
| file_size | integer | |
| folder_id | string | |
| row_count | integer | |
| deleted_at | integer | |
| sheet_count |
Read one spreadsheet_file by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The spreadsheet_file id. |
{
"name": "spreadsheet_file_read",
"description": "Read one spreadsheet_file by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The spreadsheet_file id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your spreadsheet_file rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "spreadsheet_file_list",
"description": "List your spreadsheet_file rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search your spreadsheet_file rows by text.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "spreadsheet_file_search",
"description": "Search your spreadsheet_file rows by text.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Create a spreadsheet_folder.
| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| color | string |
{
"name": "spreadsheet_folder_create",
"description": "Create a spreadsheet_folder.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 100
},
"color": {
"type": "string",
"maxLength": 20
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Update a spreadsheet_folder you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The spreadsheet_folder id. |
| name | string | |
| color | string | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "spreadsheet_folder_update",
"description": "Update a spreadsheet_folder you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The spreadsheet_folder id."
},
"name": {
"type": "string",
"maxLength": 100
},
"color": {
"type": "string",
"maxLength": 20
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a spreadsheet_folder you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The spreadsheet_folder id. |
{
"name": "spreadsheet_folder_delete",
"description": "Delete a spreadsheet_folder you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The spreadsheet_folder id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read one spreadsheet_folder by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The spreadsheet_folder id. |
{
"name": "spreadsheet_folder_read",
"description": "Read one spreadsheet_folder by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The spreadsheet_folder id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your spreadsheet_folder rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "spreadsheet_folder_list",
"description": "List your spreadsheet_folder rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your sticky_note rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "sticky_note_list",
"description": "List your sticky_note rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Update a sticky_note you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The sticky_note id. |
| color | string | one of ["amber","rose","verdigris","sky","onyx"] |
| width | integer | |
| height | integer | |
| content | string | |
| z_index | integer | |
| position_x | integer | |
| position_y | integer | |
| triggers_at | integer | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "sticky_note_update",
"description": "Update a sticky_note you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The sticky_note id."
},
"color": {
"enum": [
"amber",
"rose",
"verdigris",
"sky",
"onyx"
],
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"content": {
"type": "string",
"maxLength": 2000
},
"z_index": {
"type": "integer"
},
"position_x": {
"type": "integer"
},
"position_y": {
"type": "integer"
},
"triggers_at": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a sticky_note you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The sticky_note id. |
{
"name": "sticky_note_delete",
"description": "Delete a sticky_note you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The sticky_note id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Read this tenant's sticky notes whose reminder time (triggers_at) has arrived — the poll the desktop host runs to know what to fire as a local notification, since the web itself has no send channel. Read-only, no arguments: now is always the server's clock, never a caller-supplied value, and only notes with triggers_at set and <= now come back, soonest-due first, capped at 200. NEXT: sticky_note_dismiss clears triggers_at once you've notified, so the same note stops showing up here.
| Parameter | Type | Description |
|---|---|---|
| color | string | one of ["amber","rose","verdigris","sky","onyx"] |
| width | integer | |
| height | integer | |
| content | string | |
| z_index | integer | |
| position_x | integer | |
| position_y | integer | |
| triggers_at | integer |
{
"name": "sticky_note_due",
"description": "Read this tenant's sticky notes whose reminder time (triggers_at) has arrived — the poll the desktop host runs to know what to fire as a local notification, since the web itself has no send channel. Read-only, no arguments: now is always the server's clock, never a caller-supplied value, and only notes with triggers_at set and <= now come back, soonest-due first, capped at 200. NEXT: sticky_note_dismiss clears triggers_at once you've notified, so the same note stops showing up here.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"color": {
"enum": [
"amber",
"rose",
"verdigris",
"sky",
"onyx"
],
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"content": {
"type": "string",
"maxLength": 2000
},
"z_index": {
"type": "integer"
},
"position_x": {
"type": "integer"
},
"position_y": {
"type": "integer"
},
"triggers_at": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Clear a sticky note's reminder (triggers_at back to NULL) so it drops out of the sticky_note_due poll — call this after the host fires the local notification for it. Runs through the same tenant-scoped write path as every entity update, but via a clear-properties op: ordinary updates ignore null values, so this is the only way to null the column. Idempotent — dismissing an already-cleared note just re-nulls a NULL and succeeds. NEXT: sticky_note_due to see what's still outstanding.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The sticky note id to dismiss (sticky_note_due or sticky_note_list shows them). |
| color | string | one of ["amber","rose","verdigris","sky","onyx"] |
| width | integer | |
| height | integer | |
| content | string | |
| z_index | integer | |
| position_x | integer | |
| position_y | integer | |
| triggers_at | integer |
Create a stock_item.
| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| unit | string | |
| notes | string | |
| category | string | |
| quantity | integer | |
| is_active | integer | |
| expiry_date | string | |
| sell_price_cents | integer | |
| cost_per_unit_cents | integer | |
| low_stock_threshold | integer |
{
"name": "stock_item_create",
"description": "Create a stock_item.",
"inputSchema": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"unit": {
"type": "string",
"maxLength": 50
},
"notes": {
"type": "string",
"maxLength": 5000
},
"category": {
"type": "string",
"maxLength": 100
},
"quantity": {
"type": "integer"
},
"is_active": {
"type": "integer"
},
"expiry_date": {
"type": "string",
"maxLength": 30
},
"sell_price_cents": {
"type": "integer"
},
"cost_per_unit_cents": {
"type": "integer"
},
"low_stock_threshold": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Update a stock_item you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The stock_item id. |
| name | string | |
| unit | string | |
| notes | string | |
| category | string | |
| quantity | integer | |
| is_active | integer | |
| expiry_date | string | |
| sell_price_cents | integer | |
| cost_per_unit_cents | integer | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
| low_stock_threshold | integer |
Soft-delete a stock item by id: sets is_active to 0 while its movements-ledger history stays intact. stock_item_adjust then refuses the id as NOT_FOUND and stops resolving it by name, so a later delivery under the same name creates a fresh item instead of reviving this one. stock_item_list and stock_item_read still return it with is_active: 0 — only the dashboard's stats header excludes it. Restore by running a normal update that sets is_active back to 1; there is no separate restore door.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The stock item id to soft-delete (stock_item_list shows them). |
| name | string | |
| unit | string | |
| notes | string | |
| category | string | |
| quantity | integer | |
| is_active | integer | |
| expiry_date | string | |
| sell_price_cents | integer | |
| cost_per_unit_cents | integer | |
| low_stock_threshold |
Read one stock_item by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The stock_item id. |
{
"name": "stock_item_read",
"description": "Read one stock_item by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The stock_item id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your stock_item rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "stock_item_list",
"description": "List your stock_item rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search your stock_item rows by text.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "stock_item_search",
"description": "Search your stock_item rows by text.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Create a studio_character.
| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| color_tag | string | |
| description * | string | |
| prompt_suffix | string | |
| reference_image_key | string |
{
"name": "studio_character_create",
"description": "Create a studio_character.",
"inputSchema": {
"type": "object",
"required": [
"name",
"description"
],
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"color_tag": {
"type": "string",
"maxLength": 20
},
"description": {
"type": "string",
"maxLength": 1000
},
"prompt_suffix": {
"type": "string",
"maxLength": 500
},
"reference_image_key": {
"type": "string",
"maxLength": 300
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Read one studio_character by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_character id. |
{
"name": "studio_character_read",
"description": "Read one studio_character by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_character id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your studio_character rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "studio_character_list",
"description": "List your studio_character rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Update a studio_character you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_character id. |
| name | string | |
| color_tag | string | |
| description | string | |
| prompt_suffix | string | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
| reference_image_key | string |
{
"name": "studio_character_update",
"description": "Update a studio_character you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_character id."
},
"name": {
"type": "string",
"maxLength": 120
},
"color_tag": {
"type": "string",
"maxLength": 20
},
"description": {
"type": "string",
"maxLength": 1000
},
"prompt_suffix": {
"type": "string",
"maxLength": 500
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
},
"reference_image_key": {
"type": "string",
"maxLength": 300
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a studio_character you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_character id. |
{
"name": "studio_character_delete",
"description": "Delete a studio_character you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_character id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Create a studio_environment.
| Parameter | Type | Description |
|---|---|---|
| name * | string | |
| color_tag | string | |
| description * | string | |
| prompt_suffix | string | |
| reference_image_key | string |
{
"name": "studio_environment_create",
"description": "Create a studio_environment.",
"inputSchema": {
"type": "object",
"required": [
"name",
"description"
],
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"color_tag": {
"type": "string",
"maxLength": 20
},
"description": {
"type": "string",
"maxLength": 1000
},
"prompt_suffix": {
"type": "string",
"maxLength": 500
},
"reference_image_key": {
"type": "string",
"maxLength": 300
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Read one studio_environment by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_environment id. |
{
"name": "studio_environment_read",
"description": "Read one studio_environment by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_environment id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your studio_environment rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "studio_environment_list",
"description": "List your studio_environment rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Update a studio_environment you own (optionally compare-and-set via expected_updated_at).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_environment id. |
| name | string | |
| color_tag | string | |
| description | string | |
| prompt_suffix | string | |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
| reference_image_key | string |
{
"name": "studio_environment_update",
"description": "Update a studio_environment you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_environment id."
},
"name": {
"type": "string",
"maxLength": 120
},
"color_tag": {
"type": "string",
"maxLength": 20
},
"description": {
"type": "string",
"maxLength": 1000
},
"prompt_suffix": {
"type": "string",
"maxLength": 500
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
},
"reference_image_key": {
"type": "string",
"maxLength": 300
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a studio_environment you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_environment id. |
{
"name": "studio_environment_delete",
"description": "Delete a studio_environment you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_environment id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Create a video studio project — the composition document (scenes, tracks, clips, captions) starts empty and is built up afterward through the studio.* director tools. thumbnail_key is server-owned: send thumbnail_data_url instead, and this door externalizes it into a content-addressed R2 key through the media hygiene kit (magic bytes decide the type; SVG refuses). Free. NEXT: studio_project_read to verify.
| Parameter | Type | Description |
|---|---|---|
| name | string | |
| status | string | one of ["draft","generating","ready","exporting","exported"] |
| thumbnail_key | string | |
| thumbnail_data_url | string | Data URL (data:image/...) of the project thumbnail — the door externalizes it into a content-addressed R2 key through the media hygiene kit (magic bytes decide the type; SVG refuses). Never send thumbnail_key directly; it is server-owned and computed from this field. Omit to leave the thumbnail unse… |
{
"name": "studio_project_create",
"description": "Create a video studio project — the composition document (scenes, tracks, clips, captions) starts empty and is built up afterward through the studio.* director tools. thumbnail_key is server-owned: send thumbnail_data_url instead, and this door externalizes it into a content-addressed R2 key through the media hygiene kit (magic bytes decide the type; SVG refuses). Free. NEXT: studio_project_read to verify.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string",
"maxLength": 255
},
"status": {
"enum": [
"draft",
"generating",
"ready",
"exporting",
"exported"
],
"type": "string"
},
"thumbnail_key": {
"type": "string",
"maxLength": 300
},
"thumbnail_data_url": {
"type": "string",
"description": "Data URL (data:image/...) of the project thumbnail — the door externalizes it into a content-addressed R2 key through the media hygiene kit (magic bytes decide the type; SVG refuses). Never send thumbnail_key directly; it is server-owned and computed from this field. Omit to leave the thumbnail unset/unchanged."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Read one studio_project by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_project id. |
{
"name": "studio_project_read",
"description": "Read one studio_project by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_project id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your studio_project rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "studio_project_list",
"description": "List your studio_project rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Rename a project, change its status, or replace its thumbnail on a project you own — send thumbnail_data_url, never thumbnail_key, which is server-owned and computed by this door the same way studio_project_create does. status here is UI-summary-only by design: it never gates render or generation, which are tracked separately by the export job row and the composition document's own scene status. Free. NOT_FOUND when the id is outside your scope — list first with studio_project_list.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio project id to update (studio_project_list shows them). |
| name | string | |
| status | string | one of ["draft","generating","ready","exporting","exported"] |
| thumbnail_key | string | |
| thumbnail_data_url | string | Data URL (data:image/...) of the project thumbnail — the door externalizes it into a content-addressed R2 key through the media hygiene kit (magic bytes decide the type; SVG refuses). Never send thumbnail_key directly; it is server-owned and computed from this field. Omit to leave the thumbnail unse… |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "studio_project_update",
"description": "Rename a project, change its status, or replace its thumbnail on a project you own — send thumbnail_data_url, never thumbnail_key, which is server-owned and computed by this door the same way studio_project_create does. status here is UI-summary-only by design: it never gates render or generation, which are tracked separately by the export job row and the composition document's own scene status. Free. NOT_FOUND when the id is outside your scope — list first with studio_project_list.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio project id to update (studio_project_list shows them)."
},
"name": {
"type": "string",
"maxLength": 255
},
"status": {
"enum": [
"draft",
"generating",
"ready",
"exporting",
"exported"
],
"type": "string"
},
"thumbnail_key": {
"type": "string",
"maxLength": 300
},
"thumbnail_data_url": {
"type": "string",
"description": "Data URL (data:image/...) of the project thumbnail — the door externalizes it into a content-addressed R2 key through the media hygiene kit (magic bytes decide the type; SVG refuses). Never send thumbnail_key directly; it is server-owned and computed from this field. Omit to leave the thumbnail unset/unchanged."
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}Delete a studio_project you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The studio_project id. |
{
"name": "studio_project_delete",
"description": "Delete a studio_project you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The studio_project id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Edits an assignment's content (title/description/priority/due_at/attachment) — only the assigner may call this, and only before the job reaches a terminal state. assigned_to cannot move here even though it is a writable column: reassigning is a separate transition that also opens a 30-second undo window. NEXT: team_assignment_reassign to hand the job to someone else.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string |
Deletes an assignment outright — only the assigner may call this. The row is removed first, then its attachment and any job photos are best-effort deleted from R2 afterward, so a storage hiccup never leaves the assignment stranded. NEXT: team_assignment_list to confirm it is gone.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string |
Accepts a pending job — only the assignee may call this, and only while the assignment is still 'pending'; it stamps accepted_at and moves status to 'accepted'. NEXT: team_assignment_start once you begin the work.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string | |
| photos_json | string |
Marks a job as started — only the assignee, and only from status 'accepted'; it stamps started_at and moves status to 'in_progress'. NEXT: team_assignment_add_photo for proof, then team_assignment_complete when done.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string | |
| photos_json | string |
Finishes a job — only the assignee, and only from status 'in_progress'; it stamps completed_at, moves status to 'completed', and stores completion_notes when you supply them. Completed is terminal: the row can no longer be edited or reassigned (deletion by the assigner is still possible).
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string | |
| photos_json |
Declines a job — only the assignee, and only while it is 'pending' or 'accepted'; decline_reason is required and is stamped alongside declined_at. Declined is terminal, same as completed: the assignment cannot be edited or reassigned afterward.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string | |
| photos_json | string |
Hands an assignment to a different tenant member — only the original assigner or an admin+, never the current assignee reassigning themself, and never onto a terminal (completed/declined) row. It resets status to 'pending' for the new assignee and records the prior assignee/status so the move can be undone. NEXT: team_assignment_undo_reassign within 30 seconds reverts it.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string |
Reverts an assignment's most recent reassignment — restores the previous assignee and status. Only the person who performed that reassignment may call it, and only within the 30-second window after it happened; past that, CONFLICT says to reassign again instead.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at | integer | |
| description | string | |
| photos_json | string |
Attaches a job photo to an assignment — only the assignee, and only while the job is 'accepted', 'in_progress', or 'completed'. photo_key must be one minted by POST /api/desk/assignments/upload for this tenant; re-attaching the same key is a no-op, and the row holds at most 20 photos. NEXT: team_assignment_complete once proof is attached.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id (team_assignment_list shows them). |
| title | string | |
| due_at | integer | |
| status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| priority | string | one of ["low","normal","high","urgent"] |
| photo_key * | string | The R2 key minted by POST /api/desk/assignments/upload for this tenant — attaching an unminted key or another tenant's key fails validation. |
| started_at | integer | |
| accepted_at | integer | |
| artifact_id | string | |
| assigned_to | string | |
| declined_at |
Read one team_assignment by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The team_assignment id. |
{
"name": "team_assignment_read",
"description": "Read one team_assignment by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your team_assignment rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "team_assignment_list",
"description": "List your team_assignment rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Create-or-update a user_interest keyed on interest.
| Parameter | Type | Description |
|---|---|---|
| interest * | string |
{
"name": "user_interest_upsert",
"description": "Create-or-update a user_interest keyed on interest.",
"inputSchema": {
"type": "object",
"required": [
"interest"
],
"properties": {
"interest": {
"type": "string",
"maxLength": 100
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your user_interest rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "user_interest_list",
"description": "List your user_interest rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a user_interest you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The user_interest id. |
{
"name": "user_interest_delete",
"description": "Delete a user_interest you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The user_interest id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Create-or-update a user_setting keyed on key.
| Parameter | Type | Description |
|---|---|---|
| key * | string | |
| value * | string | |
| value_type | string | one of ["text","integer","boolean","json"] |
{
"name": "user_setting_upsert",
"description": "Create-or-update a user_setting keyed on key.",
"inputSchema": {
"type": "object",
"required": [
"key",
"value"
],
"properties": {
"key": {
"type": "string",
"maxLength": 128
},
"value": {
"type": "string",
"maxLength": 4000
},
"value_type": {
"enum": [
"text",
"integer",
"boolean",
"json"
],
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Read one user_setting by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The user_setting id. |
{
"name": "user_setting_read",
"description": "Read one user_setting by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The user_setting id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your user_setting rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "user_setting_list",
"description": "List your user_setting rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Search your user_setting rows by text.
| Parameter | Type | Description |
|---|---|---|
| q * | string | Search text (substring match over the entity's text properties; %/_ are literal). |
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "user_setting_search",
"description": "Search your user_setting rows by text.",
"inputSchema": {
"type": "object",
"required": [
"q"
],
"properties": {
"q": {
"type": "string",
"description": "Search text (substring match over the entity's text properties; %/_ are literal)."
},
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a user_setting you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The user_setting id. |
{
"name": "user_setting_delete",
"description": "Delete a user_setting you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The user_setting id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Edit a workflow's fields or its definition graph: every call re-validates the definition — yours if resent, else the stored one decoded back — against the resulting trigger_type, so a plain rename can fail if that stored graph no longer validates, and flipping to 'schedule' without a schedule block fails here rather than at the scheduler. When trigger_type ends as 'schedule' and is_active as 1, next_run_at recomputes from schedule and now on every call, even one touching neither field; any value you send for it is ignored. Optional expected_updated_at compare-and-set: a stale value refuses CONFLICT — re-read, merge, retry. NEXT: workflow_read to confirm the new next_run_at.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The workflow id (workflow_list shows them). |
| name | string | |
| is_active | integer | |
| role_name | string | |
| description | string | |
| next_run_at | integer | |
| trigger_type | string | one of ["manual","webhook","schedule"] |
| imported_from | string | |
| definition_json | string | |
| expected_updated_at | integer |
Read one workflow by id.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The workflow id. |
{
"name": "workflow_read",
"description": "Read one workflow by id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The workflow id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}List your workflow rows (newest first).
| Parameter | Type | Description |
|---|---|---|
| limit | integer | Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead. |
| cursor | string | Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages. |
{
"name": "workflow_list",
"description": "List your workflow rows (newest first).",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"limit": {
"type": "integer",
"description": "Page size 1-200. Omit BOTH limit and cursor for the legacy bare-array first page of 200; pass either to get { items, next_cursor, limit } instead."
},
"cursor": {
"type": "string",
"description": "Opaque page cursor — pass a previous response's next_cursor verbatim. null next_cursor means no further pages."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}Delete a workflow you own.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The workflow id. |
{
"name": "workflow_delete",
"description": "Delete a workflow you own.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The workflow id."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}Make the PDF of an issued invoice (or of its receipt once paid): the same document as its print-ready page, printed on A4 with the business's fonts, brand colours and logo, and kept, so asking again for an unchanged invoice returns the stored file (cached: true) without printing it again. Totals are the stored figures (the same numbers invoice_read gives). It prepares a file and sends nothing. Returns version, pdf_path (downloads while signed in), and download_url when signed links are on; while they are off, download_url_unavailable says why and pdf_path still works. Refusals: a draft is refused CONFLICT SIMPLER_SALES_PDF_NOT_ISSUED (issue it first with invoice_update status 'sent'); a cancelled invoice is refused CONFLICT SIMPLER_SALES_PDF_CANCELLED; an unknown id is NOT_FOUND (find it with invoice_list); more than 50 new PDFs in 24 hours is refused RATE_LIMITED SIMPLER_SALES_PDF_DAILY_CAP (wait retry_after seconds; stored PDFs still download); when PDF printing is unavailable (no browser here, printer busy or failing) it answers SERVICE_UNAVAILABLE with a reason_code and retry_after, and the print-ready page stays the fallback. A read-only token or a viewer is refused FORBIDDEN before anything is made. Free.
| Parameter | Type | Description |
|---|---|---|
| id * | string | The invoice's id, from invoice_list or invoice_read. |
{
"name": "invoice_pdf",
"description": "Make the PDF of an issued invoice (or of its receipt once paid): the same document as its print-ready page, printed on A4 with the business's fonts, brand colours and logo, and kept, so asking again for an unchanged invoice returns the stored file (cached: true) without printing it again. Totals are the stored figures (the same numbers invoice_read gives). It prepares a file and sends nothing. Returns version, pdf_path (downloads while signed in), and download_url when signed links are on; while they are off, download_url_unavailable says why and pdf_path still works. Refusals: a draft is refused CONFLICT SIMPLER_SALES_PDF_NOT_ISSUED (issue it first with invoice_update status 'sent'); a cancelled invoice is refused CONFLICT SIMPLER_SALES_PDF_CANCELLED; an unknown id is NOT_FOUND (find it with invoice_list); more than 50 new PDFs in 24 hours is refused RATE_LIMITED SIMPLER_SALES_PDF_DAILY_CAP (wait retry_after seconds; stored PDFs still download); when PDF printing is unavailable (no browser here, printer busy or failing) it answers SERVICE_UNAVAILABLE with a reason_code and retry_after, and the print-ready page stays the fallback. A read-only token or a viewer is refused FORBIDDEN before anything is made. Free.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"description": "The invoice's id, from invoice_list or invoice_read."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}How each numbered document type counts, one row each for invoice, quote, credit_note, debit_note and receipt: prefix, last_number (the highest number already used or skipped), next_number, and next_preview, the number the next one prints (this year's form, such as INV-2026-042). Copy next_preview, never build it. Change a next number, or a credit note, debit note or receipt prefix, with sales_settings_numbering_set; invoice and quote prefixes with sales_settings_upsert (prefix_set_with names the tool). A row with available false is not set up in this environment yet; unavailable_reason says why and what still works. Takes no arguments: any argument is refused with VALIDATION_ERROR.
No parameters.
{
"name": "sales_settings_numbering_read",
"description": "How each numbered document type counts, one row each for invoice, quote, credit_note, debit_note and receipt: prefix, last_number (the highest number already used or skipped), next_number, and next_preview, the number the next one prints (this year's form, such as INV-2026-042). Copy next_preview, never build it. Change a next number, or a credit note, debit note or receipt prefix, with sales_settings_numbering_set; invoice and quote prefixes with sales_settings_upsert (prefix_set_with names the tool). A row with available false is not set up in this environment yet; unavailable_reason says why and what still works. Takes no arguments: any argument is refused with VALIDATION_ERROR.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Make the PDF of a client's statement of account (the same page statement_prepare's document_path shows), printed on A4 with the business's fonts, brand colours and logo, and kept, so asking again for an unchanged statement returns the stored file (cached: true) without printing it again. It prepares a file and sends nothing. Returns version, pdf_path (downloads while signed in) and closing_balances, and download_url when signed links are on; while they are off, download_url_unavailable says why and pdf_path still works. Refusals: a client_id that is not one of your clients is NOT_FOUND (find it with invoice_client_search or invoice_client_list); a date not written YYYY-MM-DD, a to after today, a from after to, or a period longer than 366 days is VALIDATION_ERROR naming the field; a client with more than 2000 issued invoices is PAYLOAD_TOO_LARGE SIMPLER_SALES_STATEMENT_TOO_LARGE (sales_receivables still ages them). More than 50 new PDFs (invoices and statements together) in 24 hours is refused RATE_LIMITED SIMPLER_SALES_PDF_DAILY_CAP (wait retry_after seconds; stored PDFs still download); when PDF printing is unavailable (no browser here, storage not set up, printer busy or failing) it answers SERVICE_UNAVAILABLE with a reason_code and retry_after, and the print-ready page stays the fallback. A read-only token or a viewer is refused FORBIDDEN before anything is made. Free.
| Parameter | Type | Description |
|---|---|---|
| to | string | Last day of the period, YYYY-MM-DD in the business's time zone, today at the latest. Default: today. |
| from | string | First day of the period, YYYY-MM-DD in the business's time zone. Default: the first day of the month of to. |
| client_id * | string | The client's id, from invoice_client_search (by name) or invoice_client_list. |
{
"name": "statement_pdf",
"description": "Make the PDF of a client's statement of account (the same page statement_prepare's document_path shows), printed on A4 with the business's fonts, brand colours and logo, and kept, so asking again for an unchanged statement returns the stored file (cached: true) without printing it again. It prepares a file and sends nothing. Returns version, pdf_path (downloads while signed in) and closing_balances, and download_url when signed links are on; while they are off, download_url_unavailable says why and pdf_path still works. Refusals: a client_id that is not one of your clients is NOT_FOUND (find it with invoice_client_search or invoice_client_list); a date not written YYYY-MM-DD, a to after today, a from after to, or a period longer than 366 days is VALIDATION_ERROR naming the field; a client with more than 2000 issued invoices is PAYLOAD_TOO_LARGE SIMPLER_SALES_STATEMENT_TOO_LARGE (sales_receivables still ages them). More than 50 new PDFs (invoices and statements together) in 24 hours is refused RATE_LIMITED SIMPLER_SALES_PDF_DAILY_CAP (wait retry_after seconds; stored PDFs still download); when PDF printing is unavailable (no browser here, storage not set up, printer busy or failing) it answers SERVICE_UNAVAILABLE with a reason_code and retry_after, and the print-ready page stays the fallback. A read-only token or a viewer is refused FORBIDDEN before anything is made. Free.",
"inputSchema": {
"type": "object",
"required": [
"client_id"
],
"properties": {
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last day of the period, YYYY-MM-DD in the business's time zone, today at the latest. Default: today."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First day of the period, YYYY-MM-DD in the business's time zone. Default: the first day of the month of to."
},
"client_id": {
"type": "string",
"maxLength": 64,
"description": "The client's id, from invoice_client_search (by name) or invoice_client_list."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Import one bank account's statement as CSV text (CSV today, PDF later) so the forecast starts from the bank's own balance. Owner or admin only. Stores each line and each day's closing balance for the account named by bank_label, account_last4 and currency; uploading the same statement again adds nothing. Name an account the same way every time (the label is matched ignoring case). Before anything is stored, only the last 4 digits of the account number are kept, and runs of 6 or more digits, email addresses and phone numbers are cut from descriptions and counterparties; payee and payer names stay as the statement gives them until the workspace is closed, when they are emptied and the lines are kept as figures and dates. The columns are recognised from the header (date, balance, and one signed amount or separate withdrawal and deposit columns); no bank layout is verified yet, so check the mapping in the reply. The latest balance, if under 31 days old, becomes the forecast's starting cash, graded 'statement', in place of a typed balance for the same account (a typed account whose label ends in other last 4 digits and dated on or after the statement is added to it, and the sum is graded 'declared'; an older one is left out until it is saved again with today's date), and the stored forecast is rerun. Returns counts, statement_balance, the mapping used, balance_checks, and forecast.status with next_step; verify with forecast.read. Refuses with FORBIDDEN SIMPLER_BANKING_ROLE_REFUSED for any other role (ask an owner or admin); VALIDATION_ERROR SIMPLER_BANKING_ACCOUNT_LAST4_INVALID when account_last4 has fewer than 4 digits (send the last 4 as text); VALIDATION_ERROR SIMPLER_BANKING_STATEMENT_FIELDS_INVALID naming each bad field; CONFLICT SIMPLER_BANKING_ACCOUNT_LABEL_CONFLICT with saved_accounts when an account with the same account_last4 and currency is saved under another bank_label, before anything is stored, because one account under two names would count its balance twice (resend with the saved bank_label for that account, or with new_account: true for a different account); VALIDATION_ERROR SIMPLER_BANKING_STATEMENT_UNPARSEABLE with reason and the file's columns when the columns or dates cannot be read (send mapping with 1-based column numbers, or date_order); PAYLOAD_TOO_LARGE SIMPLER_BANKING_STATEMENT_TOO_LARGE over 2,000,000 bytes or 20,000 lines (export a shorter date range); SERVICE_UNAVAILABLE SIMPLER_BANKING_STATEMENT_WRITE_FAIL (retry the same upload).
| Parameter | Type | Description |
|---|---|---|
| mapping | object |
[paid: $0.06/image] Generate 1-3 new images from a reference image guided by a prompt (google/nano-banana-2.1, which keeps the reference's product, logo and printed words when the prompt says to): a new scene, background, lighting or layout for the same subject. Pass image_asset_key (an earlier result) or image_url (public https or data:image) plus a prompt describing the change. Each image is stored in this workspace's image library and returned as JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; never a provider link. A result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass one image input), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), VALIDATION_ERROR on an empty prompt, INSUFFICIENT_CREDITS (add credits), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later). A partial result lists refunded outputs in output.withheld. To edit a SPECIFIC region use image.inpaint; for whole-image restyle use image.style_transfer. NEXT: pass images[0].asset_key to image.upscale or image.cut_background.
| Parameter | Type | Description |
|---|---|---|
| count | number | Number of variations (1-3, default 1). |
| prompt * | string | How to vary the image (max 1500 chars). |
| image_url | string | The reference image: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string |
[paid: $0.0005] Convert an image to PNG, JPEG or WebP, and optionally bound its size, with the Cloudflare Images service: a PNG, JPEG, WebP, GIF or HEIC goes in and the result is stored in this workspace. format is png, jpeg, webp (AVIF is not offered). quality (1-100, default 85) applies to jpeg and webp. width and height (16-4096 px) bound the result and fit picks how: scale-down (the default) shrinks to fit and never enlarges, contain fits inside and may enlarge, cover and crop fill the box and cut the overflow, pad fits inside and fills the rest with background. background (#RRGGBB) fills transparent pixels and padding; a JPEG, which has no transparency, is laid on white unless you name a colour. One call is one Images transformation at $0.0005, charged only when the result is stored; the preview is never charged. Returns JSON {images:[{url, asset_key, download_url?, width, height, content_type}], price, output: {format, bytes, quality?, input_format, input_bytes}, next} plus a preview; a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), VALIDATION_ERROR naming the field for a format outside the list, a quality with png, a size outside the range, a fit without width or height, or a background that is not #RRGGBB; SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them; SIMPLER_MEDIA_PIN_TOO_LARGE when the result is over 20MB (pass width and height, or pick jpeg or webp); INSUFFICIENT_CREDITS or PAYMENT_REQUIRED when the workspace cannot cover $0.0005 or is past its spend cap (add credits or raise the cap). NEXT: Pass images[0].asset_key as image_asset_key to image.adjust, image.marketplace_check or another image.* tool; a download_url, when the result carries one, works for 24 hours without a session.
| Parameter | Type | Description |
|---|---|---|
| fit | string | How the image fits width and height (default scale-down). Needs width or height. |
[paid: up to $0.66 a run; template.list gives each template's price] Run one media template for this workspace. The product templates (product-shot, product-lifestyle, showcase-video) first read the words printed on the product and answer status needs_label with label_words and nothing charged: show the words to the owner, then call again with the same slots plus label_words set to the confirmed list (the answer's next says exactly how). Images land in the image library (asset_key and url; a download_url when signed links are on). showcase-video makes its still in the call and answers status rendering: the video takes 1 to 2 minutes, so call template.status with the run_id. explainer-voice answers with an MP3 and a WebVTT caption file. price.quoted_micro_usd is the most the run can cost; price.charged_micro_usd is what it did. Refuses: VALIDATION_ERROR (each slot issue named), SIMPLER_MEDIA_INPUT_MISSING / SIMPLER_MEDIA_URL_REFUSED (pass an asset_key, https or data:image), INSUFFICIENT_CREDITS (add credits), the prompt guard's refusals (slot words that name a real person, or sexual or other harmful content), SIMPLER_MEDIA_TEMPLATE_RUNS_UNMIGRATED (templates not switched on yet; nothing charged).
| Parameter | Type | Description |
|---|---|---|
| slots * | object | The template's slot values by name; template.list names each template's slots (the templates that take a slot are in brackets). Image slots are an asset_key, https URL or data:image URL. |
| template * | string | The template id (template.list). |
{
"name": "template.run",
"description": "[paid: up to $0.66 a run; template.list gives each template's price] Run one media template for this workspace. The product templates (product-shot, product-lifestyle, showcase-video) first read the words printed on the product and answer status needs_label with label_words and nothing charged: show the words to the owner, then call again with the same slots plus label_words set to the confirmed list (the answer's next says exactly how). Images land in the image library (asset_key and url; a download_url when signed links are on). showcase-video makes its still in the call and answers status rendering: the video takes 1 to 2 minutes, so call template.status with the run_id. explainer-voice answers with an MP3 and a WebVTT caption file. price.quoted_micro_usd is the most the run can cost; price.charged_micro_usd is what it did. Refuses: VALIDATION_ERROR (each slot issue named), SIMPLER_MEDIA_INPUT_MISSING / SIMPLER_MEDIA_URL_REFUSED (pass an asset_key, https or data:image), INSUFFICIENT_CREDITS (add credits), the prompt guard's refusals (slot words that name a real person, or sexual or other harmful content), SIMPLER_MEDIA_TEMPLATE_RUNS_UNMIGRATED (templates not switched on yet; nothing charged).",
"inputSchema": {
"type": "object",
"required": [
"template",
"slots"
],
"properties": {
"slots": {
"type": "object",
"required": [],
"properties": {
"phone": {
"type": "string",
"description": "For the footer, as it should print. (poster)"
},
"script": {
"type": "string",
"description": "What the voice says, as the captions should show it (prices, phone numbers and web addresses are spoken the way people say them). Up to 1500 characters; about 450 make 30 seconds. (explainer-voice)"
},
"objects": {
"type": "array",
"items": {
"type": "string"
},
"description": "Any of sign, tee, mug, card (one image each). (brand-mockup)"
},
"palette": {
"type": "string",
"description": "The poster's colours, e.g. your brand colours. (poster)"
},
"setting": {
"type": "string",
"description": "hdb-kitchen (an HDB flat's kitchen counter), sg-office (a small office desk) or shop-counter (a provision shop's glass counter). (product-lifestyle)"
},
"subline": {
"type": "string",
"description": "The second line, spelled exactly. (poster)"
},
"website": {
"type": "string",
"description": "For the footer, as it should print. (poster)"
},
"headline": {
"type": "string",
"description": "The big line, spelled exactly as it should print. (poster)"
},
"language": {
"type": "string",
"description": "en prints English type, zh Simplified Chinese (write the headline and subline in that language). (poster, explainer-voice)"
},
"card_line": {
"type": "string",
"description": "For the card: the line under the logo, e.g. 'Tan Wei Ming · Director · 6123 4567'. Left out, the card shows the logo only. (brand-mockup)"
},
"logo_look": {
"type": "string",
"description": "In words, e.g. 'heavy bold black letterforms with a small purple dot'. (brand-mockup)"
},
"port_note": {
"type": "string",
"description": "For a device on the office desk, where its cables go, e.g. 'two blue ethernet cables plugged into the ports on the BACK of the router (the front panel has no ports),'. (product-lifestyle)"
},
"background": {
"type": "string",
"description": "The studio sweep behind the product. (product-shot)"
},
"brand_text": {
"type": "string",
"description": "The words in the logo, spelled exactly. (brand-mockup)"
},
"logo_image": {
"type": "string",
"description": "Your logo as a PNG or JPG, about 1200 px wide. (brand-mockup)"
},
"fixed_parts": {
"type": "string",
"description": "What must stay exactly as photographed, e.g. 'cap, label layout' or 'glossy black panels, status lights and buttons'. (product-shot, product-lifestyle, showcase-video)"
},
"label_words": {
"type": "array",
"items": {
"type": "string"
},
"description": "Every word printed on the product, as the owner confirmed it. Leave it out on the first call: the template reads the label (free) and answers the words for the owner to confirm or correct; then call again with the confirmed list ([] when the product has no printed words). (product-shot, product-lifestyle, showcase-video)"
},
"product_noun": {
"type": "string",
"description": "One or two words, e.g. 'bottle', 'router', 'tin of biscuits'. (product-lifestyle, showcase-video)"
},
"business_kind": {
"type": "string",
"description": "e.g. 'neighbourhood bakery', 'IT services company'. (poster)"
},
"business_name": {
"type": "string",
"description": "For the footer. (poster)"
},
"product_image": {
"type": "string",
"description": "A phone photo of the product at full resolution (small print is lost below about 1500 px). (product-shot, product-lifestyle, poster, showcase-video)"
}
},
"description": "The template's slot values by name; template.list names each template's slots (the templates that take a slot are in brackets). Image slots are an asset_key, https URL or data:image URL.",
"additionalProperties": false
},
"template": {
"enum": [
"product-shot",
"product-lifestyle",
"poster",
"showcase-video",
"explainer-voice",
"brand-mockup"
],
"type": "string",
"description": "The template id (template.list)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Free. A template run's status (needs_label, rendering, done, failed), what it delivered (url, asset_key for images, charged_micro_usd per file, and a 24-hour download_url when signed links are on), what it charged and what to do next. Without run_id: this workspace's 10 most recent runs. Refuses: NOT_FOUND for a run_id that is not this workspace's.
| Parameter | Type | Description |
|---|---|---|
| run_id | string | The run_id template.run answered (tpr_...). Absent = the recent runs. |
{
"name": "template.status",
"description": "Free. A template run's status (needs_label, rendering, done, failed), what it delivered (url, asset_key for images, charged_micro_usd per file, and a 24-hour download_url when signed links are on), what it charged and what to do next. Without run_id: this workspace's 10 most recent runs. Refuses: NOT_FOUND for a run_id that is not this workspace's.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"run_id": {
"type": "string",
"description": "The run_id template.run answered (tpr_...). Absent = the recent runs."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}[paid: $0.0005] Remove the background from a photo, returning the subject on transparency (BiRefNet on Cloudflare Images; when that cannot read the image, Bria's background remover runs instead at $0.018). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| image_url | string | Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
[paid: $0.005] Upscale a photo to about 4 megapixels (Pruna P-Image Upscale). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| image_url | string | Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
[paid: $0.06] Remove or replace a masked region of a photo (Nano Banana repaints it in context; the result is the original with only the mask, grown and feathered, changed). White mask pixels = edit region. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_EDIT_FILL_MASK_EMPTY (the mask selects nothing: paint the object white), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| prompt | string | What to paint in; empty removes. |
| mask_url | string | Mask (white = edit region): a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| image_url | string | Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
[paid: $0.03] Replace a photo's sky (Bria FIBO Edit). Pass a mask covering the sky (white = sky). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| prompt | string | Sky description. |
| mask_url | string | Sky mask (white = sky): a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| image_url | string | Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
[paid: $0.03] Replace a photo's background with a generated scene (Bria FIBO Edit). With no mask, the subject is cut out first (plus [paid: $0.0005]) and the original subject is laid back over the new scene; or pass a mask covering the background (white = background). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR on an empty prompt (describe the scene), SIMPLER_EDIT_BACKDROP_NO_SUBJECT (no mask and no clear subject: pass a background mask), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| prompt * | string | Scene description. |
| mask_url | string | Optional background mask (white = background); omit it to cut the subject out automatically: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| image_url | string | Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
Match a pasted subject's light and colour to its scene: a Reinhard colour transfer in CIELAB moves the subject's mean and spread toward the scene's, weighted by the subject mask, at strength 0..100 (default 80). Pixels outside the mask never change. Pass the composite plus a subject mask (white = subject, black = scene). Free: runs on the platform's own deterministic kernel, so the same input and arguments always return the same pixels. Takes PNG, JPEG, WebP, GIF or HEIC. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_EDIT_HARMONIZE_MASK_EMPTY (the mask selects no visible pixel: paint the subject white), SIMPLER_EDIT_HARMONIZE_NO_BACKGROUND (the mask covers everything: pass the whole composite with only the subject white), SIMPLER_EDIT_SERVER_PIXELS_NEEDS_PNG (the file is not an image: send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE (at most 4,194,304 pixels: run image.convert with width and height 2048 first), SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them, and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| strength | integer | How far to move the subject toward the scene, 0..100 (default 80). |
| image_url | string | Composite image: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
Add a product shadow to a cut-out (subject on transparency), cast from its alpha: kind drop, contact or reflection. angle 0..359 is the light direction counterclockwise from 3 o'clock (default 120; the shadow falls the other way); distance 0..200 px (unset: 3.5% of the subject's height, at least 12; the gap under the base for a reflection); blur 0..100 px (unset: 5% of the subject's height, at least 16); opacity 0..100 (default 65); transparent true (default) keeps the backdrop see-through, false fills background #RRGGBB (default #ffffff) behind the shadow. contact ignores angle and distance, reflection ignores angle. The result grows past the input by the shadow's reach (distance plus blur) so no visible shadow pixel is cut: output pad {left, top, right, bottom} gives the growth in input pixels and subject_box the subject in the result; clipped true means the growth was trimmed to stay within 4,194,304 pixels. Free: runs on the platform's own deterministic kernel, so the same input and arguments always return the same pixels. Takes PNG, JPEG, WebP, GIF or HEIC. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_EDIT_SHADOW_NEEDS_CUTOUT (no transparent pixels: run image.cut_background and pass its asset_key), VALIDATION_ERROR with reason SIMPLER_EDIT_TOOL_ARGS_INVALID for a value out of range, SIMPLER_EDIT_SERVER_PIXELS_NEEDS_PNG (the file is not an image: send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE (at most 4,194,304 pixels: run image.convert with width and height 2048 first), SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them, and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| blur |
Apply 1..10 adjustments to a photo in order, with the editor's own kernels: a one-op stack returns the same pixels as that tool in the editor. ops is a list of {op, params}; each op takes only its own params keys, and a key left out takes that op's default: brightness_contrast (brightness, contrast), exposure (stops), temperature_tint (temperature, tint), vibrance_saturation (vibrance, saturation), curves (rgb, red, green, blue), levels (in_black, in_white, levels_gamma, out_black, out_white), hsl_per_range (range, hue, saturation, luminance), sharpen (amount, radius, shadow_protect, highlight_protect), blur (radius), denoise (luminance_strength, chrominance_strength, radius), vignette (amount, midpoint, feather), grain (amount), black_and_white (red_weight, green_weight, blue_weight, tint_color), auto_tone (aggressive). output_format is png (the default, free), jpeg or webp ($0.0005 for the one Images encode, charged only when the result is delivered). Free for png output, $0.0005 for jpeg or webp: runs on the platform's own deterministic kernel, so the same input and arguments always return the same pixels. Takes PNG, JPEG, WebP, GIF or HEIC. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR with reason SIMPLER_EDIT_TOOL_ARGS_INVALID for an unknown op, a key the op does not take, a value outside the op's range, levels with in_white not above in_black, or an output_format outside png, jpeg and webp, SIMPLER_EDIT_SERVER_PIXELS_NEEDS_PNG (the file is not an image: send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE (at most 4,194,304 pixels: run image.convert with width and height 2048 first), SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them, and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
[paid: $0.06] Apply a style to a photo while preserving the content (Nano Banana 2.1, told to change only the look). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR on an empty prompt (name the look), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.
| Parameter | Type | Description |
|---|---|---|
| prompt * | string | Style descriptor. |
| image_url | string | Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string |
[paid: $0.0005] Mask the side of the subject/background cut that pixel (x, y) falls on (BiRefNet on Cloudflare Images: the main subject, or everything behind it; not one object among several) and return the mask image. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR with reason SIMPLER_EDIT_TOOL_ARGS_INVALID when x or y is missing or outside 0..16384 (take the point from the user, in the image's pixels), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as mask_asset_key to image.inpaint, image.replace_sky or image.replace_background.
| Parameter | Type | Description |
|---|---|---|
| x * | number | Pixel X of a point on the object (0..16384). |
| y * | number | Pixel Y of a point on the object (0..16384). |
| image_url | string | Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string |
[paid: $0.06] Generate an image from a text prompt (google/nano-banana-2.1) sized for editing. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: VALIDATION_ERROR on an empty prompt (describe the image), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to image.inpaint, image.upscale or image.style_transfer.
| Parameter | Type | Description |
|---|---|---|
| prompt * | string | Full image description. |
| image_size | string | Older size names; when sent, they win over destination. |
| destination | string | Where it will be used, which sets the shape: ig_post 4:5 (the default), story_reel 9:16, square 1:1, flyer_a4 (A4 portrait), web_banner 16:9. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
Analyze a photo with vision (subjects, defects, OCR text, composition) and return a description. Token-billed at the platform's vision rates. Returns JSON {text, price, next}. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_MEDIA_UNKNOWN_TYPE (send PNG, JPEG or WebP), INSUFFICIENT_CREDITS (add credits). NEXT: act on the findings with image.inpaint, image.cut_background or image.upscale.
| Parameter | Type | Description |
|---|---|---|
| question | string | Optional focused question. |
| image_url | string | Photo to analyze: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| image_asset_key | string | Photo to analyze, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.describe",
"description": "Analyze a photo with vision (subjects, defects, OCR text, composition) and return a description. Token-billed at the platform's vision rates. Returns JSON {text, price, next}. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_MEDIA_UNKNOWN_TYPE (send PNG, JPEG or WebP), INSUFFICIENT_CREDITS (add credits). NEXT: act on the findings with image.inpaint, image.cut_background or image.upscale.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"question": {
"type": "string",
"description": "Optional focused question."
},
"image_url": {
"type": "string",
"description": "Photo to analyze: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"image_asset_key": {
"type": "string",
"description": "Photo to analyze, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Check a product photo against a marketplace's listing-image rules before the seller uploads it: shopee, lazada or tiktok_shop. Free and read-only: the platform's own deterministic check, which stores nothing, calls no marketplace and uploads nothing. Returns JSON {images: [], price ($0.00), output: {verdict (pass, fail or partial), failed, advice, skipped, file: {width, height, format, bytes}, rules: [{rule, level (required or recommended), status (pass, fail or skipped), expected, measured, fix, reason, source, checked, note}]}, next}. It checks the minimum and maximum size, the square shape, the file type, the file size and a white background; each rule names its source page and the day it was read, and a figure read through search results says UNVERIFIED in its note. The background is read from the pixels, up to 4,194,304 pixels (for example 2048x2048); a JPEG, WebP, GIF, HEIC or interlaced PNG is read through the Images binding at no charge. That one rule is skipped, with every other verdict kept, for a larger image (reason SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE: run image.convert with width and height 2048, then check the copy), or with the binding's reason when it cannot read the image: SIMPLER_IMAGES_BINDING_ABSENT when this deployment has no Images binding yet (owner step O-2: send a standard PNG copy to check it), or SIMPLER_IMAGES_QUOTA_EXCEEDED, SIMPLER_IMAGES_LEGACY_SUBSCRIPTION, SIMPLER_IMAGES_INPUT_UNREADABLE, SIMPLER_IMAGES_INPUT_TOO_LARGE or SIMPLER_IMAGES_TRANSFORM_FAILED, each with its fix in the rule. Added text and watermarks are skipped with reason SIMPLER_EDIT_MARKETPLACE_TEXT_CHECK_UNAVAILABLE or SIMPLER_EDIT_MARKETPLACE_WATERMARK_CHECK_UNAVAILABLE until the vision check lands (look at the image yourself). Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB); VALIDATION_ERROR for a platform outside the list; VALIDATION_ERROR whose reason is SIMPLER_MEDIA_EMPTY, SIMPLER_MEDIA_UNKNOWN_TYPE, SIMPLER_MEDIA_KIND_NOT_ALLOWED, SIMPLER_MEDIA_SVG_REFUSED or SIMPLER_MEDIA_DIMENSIONS_UNREADABLE (send a JPEG, PNG, WebP, GIF or HEIC) or SIMPLER_MEDIA_PNG_CORRUPT (save it again as a standard PNG); for a HEIC only, the binding's reason when it cannot read the size (SIMPLER_IMAGES_BINDING_ABSENT while this deployment has no Images binding: send a JPEG or PNG copy); and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: apply each failed rule's fix, for example image.add_shadow with transparent false and background #ffffff for a white background, or image.convert with format jpeg (and width and height for a size rule) for a file type, size or file-size failure, and check again.
Start rendering a studio project to a file: a video, a GIF, the sound mix alone or one poster still (format). Returns job_id immediately; call video.export with job_id to follow progress and receive a download link valid for 24 hours. Refuses, naming the fix, when the project is not exportable, the preset's aspect differs from the project, or the tenant's active-job or daily limit is reached. format picks the file (mp4_h264_aac, webm_vp9_opus, gif, m4a_aac, wav_pcm, poster_jpg; default mp4_h264_aac). Format refusals: a preset other than original with any format but mp4_h264_aac (SIMPLER_STUDIO_EXPORT_FORMAT_PRESET: send preset original); gif longer than 30 s (SIMPLER_STUDIO_EXPORT_GIF_TOO_LONG: trim, or pick a video format); m4a_aac or wav_pcm with nothing audible (SIMPLER_STUDIO_EXPORT_FORMAT_NO_AUDIO: add or unmute sound); poster_jpg without poster_time_ms inside the timeline, or poster_time_ms with another format (SIMPLER_STUDIO_EXPORT_POSTER_TIME). Repeating the same request within 24 hours returns the same job, except a job still waiting for a free renderer: the repeat replaces it with a fresh attempt (the old job then reads SIMPLER_STUDIO_EXPORT_SUPERSEDED). Pricing: free (rendering runs on platform compute, no provider cost). Limits per workspace: 2 renders at a time (SIMPLER_STUDIO_EXPORT_ACTIVE_CAP) and 60 output minutes per rolling 24 hours (SIMPLER_STUDIO_EXPORT_DAILY_QUOTA); wait, or export a shorter cut. A composition_version older than the saved one is refused (SIMPLER_STUDIO_EXPORT_VERSION_STALE): re-read with studio.get_composition. One export may run 15 min at 1080p and 5 min at 4K, and a sound-only export 15 min at any resolution (SIMPLER_STUDIO_EXPORT_OUTPUT_CAP): trim the timeline or pick a smaller preset. A poster renders the timeline up to its frame, so the cap counts up to its poster_time_ms: pick an earlier one. When every renderer is busy the job waits in a queue (queue_position) and starts on its own; video.export_cancel {job_id} withdraws it. The files are kept 30 days after the export finishes. Nothing is posted, emailed or uploaded anywhere; the result is a file you download.
| Parameter | Type | Description |
|---|---|---|
| format | string | The output file; default mp4_h264_aac. mp4_h264_aac: H.264 video with AAC sound; plays everywhere and takes the platform presets. webm_vp9_opus: VP9 video with Opus sound; smaller files for the web, but encoding takes about three times as long. gif: Silent looping animation, up to 30 s, at most 480 … |
Follow one video export to completion and return its download links. Start the export with video.export_create, then pass the job_id it returned (without job_id this follows the project's newest export). Polls the durable job row every 3s through queued -> processing -> uploading -> completed. On completion it returns download_path (for a session signed in to this workspace) and, when signed links are enabled, download_url (plus captions_url when there is an SRT): a link valid for 24 hours that needs no session; call again with the job_id for a fresh one. While signed links are held off, download_url_unavailable says why. Pricing: free (rendering runs on platform compute, no provider cost), charged by video.export_create, never here. STREAMING SUPPORTED: send Accept: text/event-stream for per-phase progress events. A job waiting for a free renderer reports "Queued (position N)". The files are kept 30 days after the export finishes (files_kept_until), then deleted automatically. Refuses: no such job (SIMPLER_STUDIO_EXPORT_NO_JOB): start one with video.export_create {project_id}; a failed job (SIMPLER_STUDIO_EXPORT_FAILED names the reason): fix it and create a new export; a cancelled job (SIMPLER_STUDIO_EXPORT_CANCELLED): create a new export; deleted files (SIMPLER_STUDIO_EXPORT_OUTPUT_GONE) or files past the 30 days (SIMPLER_STUDIO_EXPORT_EXPIRED, "expired; export again"): render again with video.export_create.
| Parameter | Type | Description |
|---|---|---|
| job_id | string | The export job (vx_...) video.export_create returned. Omit it to follow the project's newest export. |
| project_id * | string | The studio project (vp_...) the export belongs to. |
{
"name": "video.export",
"description": "Follow one video export to completion and return its download links. Start the export with video.export_create, then pass the job_id it returned (without job_id this follows the project's newest export). Polls the durable job row every 3s through queued -> processing -> uploading -> completed. On completion it returns download_path (for a session signed in to this workspace) and, when signed links are enabled, download_url (plus captions_url when there is an SRT): a link valid for 24 hours that needs no session; call again with the job_id for a fresh one. While signed links are held off, download_url_unavailable says why. Pricing: free (rendering runs on platform compute, no provider cost), charged by video.export_create, never here. STREAMING SUPPORTED: send Accept: text/event-stream for per-phase progress events. A job waiting for a free renderer reports \"Queued (position N)\". The files are kept 30 days after the export finishes (files_kept_until), then deleted automatically. Refuses: no such job (SIMPLER_STUDIO_EXPORT_NO_JOB): start one with video.export_create {project_id}; a failed job (SIMPLER_STUDIO_EXPORT_FAILED names the reason): fix it and create a new export; a cancelled job (SIMPLER_STUDIO_EXPORT_CANCELLED): create a new export; deleted files (SIMPLER_STUDIO_EXPORT_OUTPUT_GONE) or files past the 30 days (SIMPLER_STUDIO_EXPORT_EXPIRED, \"expired; export again\"): render again with video.export_create.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"job_id": {
"type": "string",
"description": "The export job (vx_...) video.export_create returned. Omit it to follow the project's newest export."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) the export belongs to."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Delete a finished video export's files (the mp4 and any SRT) now, before the automatic deletion 30 days after the export finished. Every download link for that job stops working at once; the job record stays, so the daily export limit still counts it. Refuses a job that is still rendering (SIMPLER_STUDIO_EXPORT_DELETE_ACTIVE): stop it with video.export_cancel, or follow it to the end with video.export, then delete it. Refuses an unknown job (SIMPLER_STUDIO_EXPORT_JOB_NOT_FOUND): video.export_create returns job ids. Free.
| Parameter | Type | Description |
|---|---|---|
| job_id * | string | The export job (vx_...) whose files to delete. |
{
"name": "video.export_delete",
"description": "Delete a finished video export's files (the mp4 and any SRT) now, before the automatic deletion 30 days after the export finished. Every download link for that job stops working at once; the job record stays, so the daily export limit still counts it. Refuses a job that is still rendering (SIMPLER_STUDIO_EXPORT_DELETE_ACTIVE): stop it with video.export_cancel, or follow it to the end with video.export, then delete it. Refuses an unknown job (SIMPLER_STUDIO_EXPORT_JOB_NOT_FOUND): video.export_create returns job ids. Free.",
"inputSchema": {
"type": "object",
"required": [
"job_id"
],
"properties": {
"job_id": {
"type": "string",
"description": "The export job (vx_...) whose files to delete."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Stop a video export that is queued or rendering. The job ends as failed with "Cancelled by user.", anything it charged is refunded, the render stops, and any partial file is deleted. Cancelling a job that already finished or failed changes nothing (cancelled: false), so a repeat is safe. Refuses an unknown job (SIMPLER_STUDIO_EXPORT_JOB_NOT_FOUND): video.export_create returns job ids. Refuses a read-only connection (SIMPLER_MCP_SCOPE_READONLY): connect again with the 'mcp' scope. Free.
| Parameter | Type | Description |
|---|---|---|
| job_id * | string | The export job (vx_...) to stop. |
{
"name": "video.export_cancel",
"description": "Stop a video export that is queued or rendering. The job ends as failed with \"Cancelled by user.\", anything it charged is refunded, the render stops, and any partial file is deleted. Cancelling a job that already finished or failed changes nothing (cancelled: false), so a repeat is safe. Refuses an unknown job (SIMPLER_STUDIO_EXPORT_JOB_NOT_FOUND): video.export_create returns job ids. Refuses a read-only connection (SIMPLER_MCP_SCOPE_READONLY): connect again with the 'mcp' scope. Free.",
"inputSchema": {
"type": "object",
"required": [
"job_id"
],
"properties": {
"job_id": {
"type": "string",
"description": "The export job (vx_...) to stop."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Start uploading a video, audio or image file (up to 2 GB) into a studio project. Returns upload_id and the plan: one PUT for a file up to 64 MB, else fixed 64 MB parts, each a PUT to this server with the same Bearer token this MCP connection uses and the part's exact Content-Length. The file's bytes are reserved against the workspace's 20 GB studio upload quota until the upload finishes or is cancelled (after 24 hours without a part). Then call studio.finish_asset_upload. Refuses: a size over 2 GB (SIMPLER_STUDIO_UPLOAD_TOO_LARGE): compress or split the file; a mime outside the list (SIMPLER_STUDIO_UPLOAD_TYPE_UNSUPPORTED): convert the file; the quota (SIMPLER_STUDIO_UPLOAD_QUOTA): GET /api/studio/uploads lists your stored files, then delete unused ones; too many open uploads (SIMPLER_STUDIO_UPLOAD_OPEN_LIMIT): finish or cancel one; an environment without the upload tables (SIMPLER_STUDIO_UPLOAD_TABLES_MISSING): upload in one request with POST /api/studio/projects/{id}/assets. Free. Nothing is sent anywhere; the file only comes in.
| Parameter | Type | Description |
|---|---|---|
| mime * | string | The file's type. The stored bytes are checked when the upload finishes; a file that is not what it declares is deleted and refused. |
| bytes * | integer | The file's exact size in bytes. |
| filename * | string | The file's name, shown in the project's media list. |
| project_id * | string | The studio project (vp_...) the file belongs to. |
{
"name": "studio.begin_asset_upload",
"description": "Start uploading a video, audio or image file (up to 2 GB) into a studio project. Returns upload_id and the plan: one PUT for a file up to 64 MB, else fixed 64 MB parts, each a PUT to this server with the same Bearer token this MCP connection uses and the part's exact Content-Length. The file's bytes are reserved against the workspace's 20 GB studio upload quota until the upload finishes or is cancelled (after 24 hours without a part). Then call studio.finish_asset_upload. Refuses: a size over 2 GB (SIMPLER_STUDIO_UPLOAD_TOO_LARGE): compress or split the file; a mime outside the list (SIMPLER_STUDIO_UPLOAD_TYPE_UNSUPPORTED): convert the file; the quota (SIMPLER_STUDIO_UPLOAD_QUOTA): GET /api/studio/uploads lists your stored files, then delete unused ones; too many open uploads (SIMPLER_STUDIO_UPLOAD_OPEN_LIMIT): finish or cancel one; an environment without the upload tables (SIMPLER_STUDIO_UPLOAD_TABLES_MISSING): upload in one request with POST /api/studio/projects/{id}/assets. Free. Nothing is sent anywhere; the file only comes in.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"filename",
"bytes",
"mime"
],
"properties": {
"mime": {
"enum": [
"video/mp4",
"video/x-m4v",
"video/quicktime",
"audio/mp4",
"audio/m4a",
"audio/x-m4a",
"video/webm",
"video/x-matroska",
"audio/webm",
"audio/ogg",
"application/ogg",
"audio/wav",
"audio/x-wav",
"audio/wave",
"audio/vnd.wave",
"audio/mpeg",
"audio/mp3",
"image/jpeg",
"image/png",
"image/gif",
"image/webp"
],
"type": "string",
"description": "The file's type. The stored bytes are checked when the upload finishes; a file that is not what it declares is deleted and refused."
},
"bytes": {
"type": "integer",
"maximum": 2147483648,
"minimum": 1,
"description": "The file's exact size in bytes."
},
"filename": {
"type": "string",
"maxLength": 200,
"description": "The file's name, shown in the project's media list."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) the file belongs to."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Finish an upload started with studio.begin_asset_upload once every part is PUT: the stored bytes are checked (the moov box is read wherever it sits), counted against the 20 GB quota, and added to the project's media. Returns {asset_id, media_type, probe}. Calling it again returns the same asset. Refuses: parts not yet sent (SIMPLER_STUDIO_UPLOAD_PARTS_MISSING lists them): PUT them, then finish again; bytes that are not the declared type (SIMPLER_STUDIO_UPLOAD_CONTENT_MISMATCH; the file is deleted): begin again with the real mime; a cancelled or expired upload (SIMPLER_STUDIO_UPLOAD_NOT_OPEN): begin again. Free.
| Parameter | Type | Description |
|---|---|---|
| upload_id * | string | The upload (vup_...) studio.begin_asset_upload returned. |
| project_id * | string | The studio project (vp_...) the upload belongs to. |
{
"name": "studio.finish_asset_upload",
"description": "Finish an upload started with studio.begin_asset_upload once every part is PUT: the stored bytes are checked (the moov box is read wherever it sits), counted against the 20 GB quota, and added to the project's media. Returns {asset_id, media_type, probe}. Calling it again returns the same asset. Refuses: parts not yet sent (SIMPLER_STUDIO_UPLOAD_PARTS_MISSING lists them): PUT them, then finish again; bytes that are not the declared type (SIMPLER_STUDIO_UPLOAD_CONTENT_MISMATCH; the file is deleted): begin again with the real mime; a cancelled or expired upload (SIMPLER_STUDIO_UPLOAD_NOT_OPEN): begin again. Free.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"upload_id"
],
"properties": {
"upload_id": {
"type": "string",
"description": "The upload (vup_...) studio.begin_asset_upload returned."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) the upload belongs to."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Copy a video, audio or image file from a public http(s) link into a studio project's media (up to 2 GB, within the 20 GB quota). Returns {asset_id, media_type, probe}, the same as studio.finish_asset_upload. The link is only downloaded; nothing is posted to it. Refuses: localhost, private, link-local or cloud-metadata addresses, or a redirect to one (SIMPLER_STUDIO_IMPORT_URL_REFUSED): give a public link; a link that fails or answers an error (SIMPLER_STUDIO_IMPORT_FETCH_FAILED): check it downloads without signing in; a file over the limit or the quota (SIMPLER_STUDIO_UPLOAD_TOO_LARGE / SIMPLER_STUDIO_UPLOAD_QUOTA): GET /api/studio/uploads lists your stored files, then delete unused ones; a page or unsupported format (SIMPLER_STUDIO_UPLOAD_TYPE_UNSUPPORTED): link to the media file itself; a source that stalls (SIMPLER_STUDIO_IMPORT_TIMEOUT): try again or upload with studio.begin_asset_upload. Free.
| Parameter | Type | Description |
|---|---|---|
| url * | string | A public http(s) link that downloads the media file itself. |
| project_id * | string | The studio project (vp_...) to add the file to. |
{
"name": "studio.import_asset_from_url",
"description": "Copy a video, audio or image file from a public http(s) link into a studio project's media (up to 2 GB, within the 20 GB quota). Returns {asset_id, media_type, probe}, the same as studio.finish_asset_upload. The link is only downloaded; nothing is posted to it. Refuses: localhost, private, link-local or cloud-metadata addresses, or a redirect to one (SIMPLER_STUDIO_IMPORT_URL_REFUSED): give a public link; a link that fails or answers an error (SIMPLER_STUDIO_IMPORT_FETCH_FAILED): check it downloads without signing in; a file over the limit or the quota (SIMPLER_STUDIO_UPLOAD_TOO_LARGE / SIMPLER_STUDIO_UPLOAD_QUOTA): GET /api/studio/uploads lists your stored files, then delete unused ones; a page or unsupported format (SIMPLER_STUDIO_UPLOAD_TYPE_UNSUPPORTED): link to the media file itself; a source that stalls (SIMPLER_STUDIO_IMPORT_TIMEOUT): try again or upload with studio.begin_asset_upload. Free.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"url"
],
"properties": {
"url": {
"type": "string",
"maxLength": 2000,
"description": "A public http(s) link that downloads the media file itself."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) to add the file to."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}List a studio project's stored versions, newest first: {version, created_at, label, current}, plus every named version (snapshots) and how many of the 20 names are used. A project keeps its newest 20 saved versions, one per 10 minutes for the last day, one per day for the last 30 days, and every named snapshot (up to 20); older unnamed versions are deleted. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a limit outside 1 to 50 (VALIDATION_ERROR): pass a smaller limit. Free; reads only.
| Parameter | Type | Description |
|---|---|---|
| limit | integer | How many of the newest versions to return (default 20). Named versions are always all listed under snapshots. |
| project_id * | string | The studio project (vp_...) whose history to use. |
{
"name": "studio.list_versions",
"description": "List a studio project's stored versions, newest first: {version, created_at, label, current}, plus every named version (snapshots) and how many of the 20 names are used. A project keeps its newest 20 saved versions, one per 10 minutes for the last day, one per day for the last 30 days, and every named snapshot (up to 20); older unnamed versions are deleted. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a limit outside 1 to 50 (VALIDATION_ERROR): pass a smaller limit. Free; reads only.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "How many of the newest versions to return (default 20). Named versions are always all listed under snapshots."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) whose history to use."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Bring back an earlier version of a studio project: it saves that version as a new version; history is never rewritten, so the version it replaces stays listed and restoring that one undoes this. Returns {version, restored_from, previous_version}. A person editing the project in the browser is told at their next save that a newer version is on the server and reloads. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a version the project no longer stores (SIMPLER_STUDIO_VERSION_NOT_STORED): call studio.list_versions and pick a listed one; a stored version that no longer passes the composition schema (SIMPLER_STUDIO_VERSION_UNREADABLE): restore a different version; another save landing at the same moment (SIMPLER_STUDIO_RESTORE_CONFLICT): call again. Free.
| Parameter | Type | Description |
|---|---|---|
| version * | integer | A version number studio.list_versions lists. |
| project_id * | string | The studio project (vp_...) whose history to use. |
{
"name": "studio.restore_version",
"description": "Bring back an earlier version of a studio project: it saves that version as a new version; history is never rewritten, so the version it replaces stays listed and restoring that one undoes this. Returns {version, restored_from, previous_version}. A person editing the project in the browser is told at their next save that a newer version is on the server and reloads. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a version the project no longer stores (SIMPLER_STUDIO_VERSION_NOT_STORED): call studio.list_versions and pick a listed one; a stored version that no longer passes the composition schema (SIMPLER_STUDIO_VERSION_UNREADABLE): restore a different version; another save landing at the same moment (SIMPLER_STUDIO_RESTORE_CONFLICT): call again. Free.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"version"
],
"properties": {
"version": {
"type": "integer",
"minimum": 1,
"description": "A version number studio.list_versions lists."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) whose history to use."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Name a studio project's version (the current one unless version is given) so it is never deleted by retention; naming a named version renames it. At most 20 named versions per project. Adds no new version, so an editor open on the project keeps saving. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a label that is empty, over 80 characters or more than one line (SIMPLER_STUDIO_SNAPSHOT_LABEL_INVALID): send one line of 1 to 80 characters; 20 names already used (SIMPLER_STUDIO_SNAPSHOTS_FULL): remove one with studio.remove_snapshot; a project with no saved version (SIMPLER_STUDIO_SNAPSHOT_NOTHING_SAVED): save it first; a version the project no longer stores (SIMPLER_STUDIO_VERSION_NOT_STORED): call studio.list_versions and pick a listed one; an environment where names are not switched on yet (SIMPLER_STUDIO_SNAPSHOTS_UNAVAILABLE): saving and restoring still work; ask the owner to apply DB_MEDIA migration 0005. Free.
| Parameter | Type | Description |
|---|---|---|
| label * | string | The version's name, one line, for example "Approved by client". |
| version | integer | The version to name; the current version when left out. |
| project_id * | string | The studio project (vp_...) whose history to use. |
{
"name": "studio.snapshot_version",
"description": "Name a studio project's version (the current one unless version is given) so it is never deleted by retention; naming a named version renames it. At most 20 named versions per project. Adds no new version, so an editor open on the project keeps saving. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a label that is empty, over 80 characters or more than one line (SIMPLER_STUDIO_SNAPSHOT_LABEL_INVALID): send one line of 1 to 80 characters; 20 names already used (SIMPLER_STUDIO_SNAPSHOTS_FULL): remove one with studio.remove_snapshot; a project with no saved version (SIMPLER_STUDIO_SNAPSHOT_NOTHING_SAVED): save it first; a version the project no longer stores (SIMPLER_STUDIO_VERSION_NOT_STORED): call studio.list_versions and pick a listed one; an environment where names are not switched on yet (SIMPLER_STUDIO_SNAPSHOTS_UNAVAILABLE): saving and restoring still work; ask the owner to apply DB_MEDIA migration 0005. Free.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"label"
],
"properties": {
"label": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "The version's name, one line, for example \"Approved by client\"."
},
"version": {
"type": "integer",
"minimum": 1,
"description": "The version to name; the current version when left out."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) whose history to use."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Remove the name from a studio project's named version, freeing one of its 20 names. The version stays stored; from the next save it follows the normal retention and may be deleted. A version without a name answers removed: false. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a version the project no longer stores (SIMPLER_STUDIO_VERSION_NOT_STORED): call studio.list_versions and pick a listed one; an environment where names are not switched on yet (SIMPLER_STUDIO_SNAPSHOTS_UNAVAILABLE): saving and restoring still work; ask the owner to apply DB_MEDIA migration 0005. Free.
| Parameter | Type | Description |
|---|---|---|
| version * | integer | A version number studio.list_versions lists. |
| project_id * | string | The studio project (vp_...) whose history to use. |
{
"name": "studio.remove_snapshot",
"description": "Remove the name from a studio project's named version, freeing one of its 20 names. The version stays stored; from the next save it follows the normal retention and may be deleted. A version without a name answers removed: false. Refuses: a project_id outside your scope (NOT_FOUND): studio_project_list lists your projects; pass one of their ids; a version the project no longer stores (SIMPLER_STUDIO_VERSION_NOT_STORED): call studio.list_versions and pick a listed one; an environment where names are not switched on yet (SIMPLER_STUDIO_SNAPSHOTS_UNAVAILABLE): saving and restoring still work; ask the owner to apply DB_MEDIA migration 0005. Free.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"version"
],
"properties": {
"version": {
"type": "integer",
"minimum": 1,
"description": "A version number studio.list_versions lists."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) whose history to use."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Read the current composition: scenes in order (with derived start times and generation status; length_estimated: true marks a scene sized by an estimate because its video file reported no length), tracks (id, role, name, locked, muted) and clips, overlays, caption count, total duration, and the assets (the ids every asset_id argument takes). Call when you need fresh truth after edits.
| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.get_composition",
"description": "Read the current composition: scenes in order (with derived start times and generation status; length_estimated: true marks a scene sized by an estimate because its video file reported no length), tracks (id, role, name, locked, muted) and clips, overlays, caption count, total duration, and the assets (the ids every asset_id argument takes). Call when you need fresh truth after edits.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Read the caption rows in time order with the ids edit_caption, move_caption and cut_transcript_span take. Each row gives id, type (speech, filler, silence or manual), source (transcription or manual), start_ms, end_ms, speaker when the transcription labelled one, hidden: true for a row remove_fillers hid, text, and words. words lists a transcribed row's words in order, so a word's index is its position there (the from_word_index and to_word_index cut_transcript_span takes); a manual row and a silence row list no words and cut only as a whole row. A long transcript comes back in pages: pass the reply's next_from_row as from_row to read on. Refuses a from_row past the last row, naming the row count.
| Parameter | Type | Description |
|---|---|---|
| from_row | integer | 0-based row to start reading from; 0 when left out. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.get_transcript",
"description": "Read the caption rows in time order with the ids edit_caption, move_caption and cut_transcript_span take. Each row gives id, type (speech, filler, silence or manual), source (transcription or manual), start_ms, end_ms, speaker when the transcription labelled one, hidden: true for a row remove_fillers hid, text, and words. words lists a transcribed row's words in order, so a word's index is its position there (the from_word_index and to_word_index cut_transcript_span takes); a manual row and a silence row list no words and cut only as a whole row. A long transcript comes back in pages: pass the reply's next_from_row as from_row to read on. Refuses a from_row past the last row, naming the row count.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"from_row": {
"type": "integer",
"description": "0-based row to start reading from; 0 when left out."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}Add a PLANNED scene (storyboard placeholder) to the primary lane — free; no pixels are generated. The prompt is the scene's recipe. NEVER mention camera equipment (crane, dolly, rig) — describe what to SHOW. Say 'camera rises' NOT 'crane shot'. Include: subject, action, lighting, color palette, mood.
| Parameter | Type | Description |
|---|---|---|
| prompt * | string | Detailed visual description for the scene. |
| position | number | 0-based index in scene order; appends when omitted. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_seconds | number | Scene duration in seconds (1-30). |
{
"name": "studio.add_scene",
"description": "Add a PLANNED scene (storyboard placeholder) to the primary lane — free; no pixels are generated. The prompt is the scene's recipe. NEVER mention camera equipment (crane, dolly, rig) — describe what to SHOW. Say 'camera rises' NOT 'crane shot'. Include: subject, action, lighting, color palette, mood.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"description": "Detailed visual description for the scene."
},
"position": {
"type": "number",
"description": "0-based index in scene order; appends when omitted."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_seconds": {
"type": "number",
"default": 5,
"description": "Scene duration in seconds (1-30)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Append an uploaded video or image asset to the main track as a finished scene, or insert it at at_index. Assets longer than 10 minutes become consecutive scenes. A video with no measured length lands as one untrimmed 5s scene marked length_estimated: true, here and in get_composition, until the file is measured in the studio editor. Audio assets are refused; use add_audio_to_timeline.
| Parameter | Type | Description |
|---|---|---|
| asset_id * | string | A video or image asset id (vas_...) from get_composition's assets list. |
| at_index | integer | 0-based position in scene order; appends when omitted. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.add_scene_from_asset",
"description": "Append an uploaded video or image asset to the main track as a finished scene, or insert it at at_index. Assets longer than 10 minutes become consecutive scenes. A video with no measured length lands as one untrimmed 5s scene marked length_estimated: true, here and in get_composition, until the file is measured in the studio editor. Audio assets are refused; use add_audio_to_timeline.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"asset_id"
],
"properties": {
"asset_id": {
"type": "string",
"minLength": 1,
"description": "A video or image asset id (vas_...) from get_composition's assets list."
},
"at_index": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "0-based position in scene order; appends when omitted."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Delete several scenes, timeline clips, stickers and captions in one edit: pass 1 to 200 ids in element_ids. All or nothing: an unknown id, a clip on a locked track, or a locked track a scene's cut would move refuses the whole call, names the first offender, and deletes nothing (unlock it with lock_track, or pass ripple_secondary "none"). Scenes follow ripple_secondary as in delete_element: "shift" (default) removes each deleted scene's time from every lane, keeping later clips in sync; "none" closes the main track alone. The receipt's clips_removed and clips_trimmed count each unlisted clip once, however many deleted scenes it spanned. Listed clips leave gaps (ripple_delete closes one); captions hide reversibly (restore_fillers brings them back).
| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The studio project (vp_…) this tool acts on. |
| element_ids * | array | Scene (vs_), clip (vcl_), sticker (vov_) or caption (vc_) ids; duplicates count once. |
| ripple_secondary | string | For deleted scenes: "shift" (default) removes their time from every lane; "none" closes the main track alone. Clips, stickers and captions ignore it. |
{
"name": "studio.delete_elements",
"description": "Delete several scenes, timeline clips, stickers and captions in one edit: pass 1 to 200 ids in element_ids. All or nothing: an unknown id, a clip on a locked track, or a locked track a scene's cut would move refuses the whole call, names the first offender, and deletes nothing (unlock it with lock_track, or pass ripple_secondary \"none\"). Scenes follow ripple_secondary as in delete_element: \"shift\" (default) removes each deleted scene's time from every lane, keeping later clips in sync; \"none\" closes the main track alone. The receipt's clips_removed and clips_trimmed count each unlisted clip once, however many deleted scenes it spanned. Listed clips leave gaps (ripple_delete closes one); captions hide reversibly (restore_fillers brings them back).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"element_ids"
],
"properties": {
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"element_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"maxItems": 200,
"minItems": 1,
"description": "Scene (vs_), clip (vcl_), sticker (vov_) or caption (vc_) ids; duplicates count once."
},
"ripple_secondary": {
"enum": [
"shift",
"none"
],
"type": "string",
"description": "For deleted scenes: \"shift\" (default) removes their time from every lane; \"none\" closes the main track alone. Clips, stickers and captions ignore it."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move 1 to 200 timeline clips by the same delta_ms (negative moves earlier), keeping their spacing and their tracks. All or nothing: an unknown clip id, a clip on a locked track, a clip pushed before 0 or past the timeline cap, or a landing that overlaps a clip you did not list refuses the whole call, names the first offending clip, and moves nothing; an overlap refusal gives the nearest delta_ms that fits. Scenes on the main track keep their order and are not clips; use reorder_scenes for them.
| Parameter | Type | Description |
|---|---|---|
| clip_ids * | array | Timeline clip ids (vcl_) from get_composition's tracks; duplicates count once. |
| delta_ms * | integer | Milliseconds to move every listed clip; negative moves them earlier. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.shift_clips",
"description": "Move 1 to 200 timeline clips by the same delta_ms (negative moves earlier), keeping their spacing and their tracks. All or nothing: an unknown clip id, a clip on a locked track, a clip pushed before 0 or past the timeline cap, or a landing that overlaps a clip you did not list refuses the whole call, names the first offending clip, and moves nothing; an overlap refusal gives the nearest delta_ms that fits. Scenes on the main track keep their order and are not clips; use reorder_scenes for them.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"clip_ids",
"delta_ms"
],
"properties": {
"clip_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"maxItems": 200,
"minItems": 1,
"description": "Timeline clip ids (vcl_) from get_composition's tracks; duplicates count once."
},
"delta_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": -36000000,
"description": "Milliseconds to move every listed clip; negative moves them earlier."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Copy 1 to 200 timeline clips so the earliest copy starts at at_ms and the others keep their offsets from it, each copy on its original's track. All or nothing: an unknown clip id, a clip on a locked track, copies that would run past the timeline cap, a track that would pass its clip cap, or a copy that overlaps any existing clip (the originals included) refuses the whole call, names the first offender, and copies nothing; an overlap refusal gives the nearest at_ms that fits. Returns new_clip_ids in the order the clip_ids were given.
| Parameter | Type | Description |
|---|---|---|
| at_ms * | integer | Timeline millisecond where the earliest copy starts. |
| clip_ids * | array | Timeline clip ids (vcl_) to copy; duplicates count once. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.duplicate_clips",
"description": "Copy 1 to 200 timeline clips so the earliest copy starts at at_ms and the others keep their offsets from it, each copy on its original's track. All or nothing: an unknown clip id, a clip on a locked track, copies that would run past the timeline cap, a track that would pass its clip cap, or a copy that overlaps any existing clip (the originals included) refuses the whole call, names the first offender, and copies nothing; an overlap refusal gives the nearest at_ms that fits. Returns new_clip_ids in the order the clip_ids were given.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"clip_ids",
"at_ms"
],
"properties": {
"at_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": 0,
"description": "Timeline millisecond where the earliest copy starts."
},
"clip_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"maxItems": 200,
"minItems": 1,
"description": "Timeline clip ids (vcl_) to copy; duplicates count once."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Open length_ms of empty time at at_ms on every lane, so everything at or after at_ms moves later together. The main track receives a placeholder scene there (a pending scene with the prompt "Gap"; fill it with update_scene and generate_scene, or add footage). A scene or voice clip at_ms lands inside is split around the new time; text, stills, captions and stickers that span it stretch. Refuses, naming the fix: at_ms past the end of the main track, a locked track with clips at or after at_ms, at_ms within 100ms of a scene's edge, no free scene slot, the timeline or a stretched clip passing its cap, or a split passing a track's clip cap.
| Parameter | Type | Description |
|---|---|---|
| at_ms * | integer | Timeline millisecond where the new time opens, from 0 to the main track's end. |
| length_ms * | integer | How much time to insert, 100 to 600000ms (one placeholder scene). |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.insert_time",
"description": "Open length_ms of empty time at at_ms on every lane, so everything at or after at_ms moves later together. The main track receives a placeholder scene there (a pending scene with the prompt \"Gap\"; fill it with update_scene and generate_scene, or add footage). A scene or voice clip at_ms lands inside is split around the new time; text, stills, captions and stickers that span it stretch. Refuses, naming the fix: at_ms past the end of the main track, a locked track with clips at or after at_ms, at_ms within 100ms of a scene's edge, no free scene slot, the timeline or a stretched clip passing its cap, or a split passing a track's clip cap.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"at_ms",
"length_ms"
],
"properties": {
"at_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": 0,
"description": "Timeline millisecond where the new time opens, from 0 to the main track's end."
},
"length_ms": {
"type": "integer",
"maximum": 600000,
"minimum": 100,
"description": "How much time to insert, 100 to 600000ms (one placeholder scene)."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Delete a scene or timeline clip AND close the time it held. scope "all_tracks" (the default) removes that span of time from every lane, so everything after it moves earlier together and stays in sync; clips and captions over the span go with it, and one that crosses its edge is split or shortened. scope "own_track" closes the gap on the element's own lane only (for a scene, the other tracks then drift by its length). delete_element and delete_elements leave a clip's gap open instead. Refuses, naming the fix: an unknown id, a sticker or caption (no lane time to close), a locked track the edit moves, or with all_tracks a clip that runs past the main track's end.
| Parameter | Type | Description |
|---|---|---|
| scope | string | "all_tracks" (default) closes the time on every lane; "own_track" closes it on the element's own lane only. |
| element_id * | string | A scene (vs_) or timeline clip (vcl_) id from get_composition. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.ripple_delete",
"description": "Delete a scene or timeline clip AND close the time it held. scope \"all_tracks\" (the default) removes that span of time from every lane, so everything after it moves earlier together and stays in sync; clips and captions over the span go with it, and one that crosses its edge is split or shortened. scope \"own_track\" closes the gap on the element's own lane only (for a scene, the other tracks then drift by its length). delete_element and delete_elements leave a clip's gap open instead. Refuses, naming the fix: an unknown id, a sticker or caption (no lane time to close), a locked track the edit moves, or with all_tracks a clip that runs past the main track's end.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"element_id"
],
"properties": {
"scope": {
"enum": [
"all_tracks",
"own_track"
],
"type": "string",
"description": "\"all_tracks\" (default) closes the time on every lane; \"own_track\" closes it on the element's own lane only."
},
"element_id": {
"type": "string",
"minLength": 1,
"description": "A scene (vs_) or timeline clip (vcl_) id from get_composition."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move the cut between two neighbours by delta_ms (positive moves it later): left_id's end and right_id's start move together, and their footage in/out points follow. The pair's total length and every other element stay where they are. The neighbours are a scene and the next scene, or two touching clips on one track, left one first. Refuses, naming the fix: an unknown id, ids that do not share a cut, a locked track, or a delta that would leave either side under 100ms, past its length cap or past its footage (the refusal gives the delta_ms range that fits).
| Parameter | Type | Description |
|---|---|---|
| left_id * | string | The scene or clip before the cut. |
| delta_ms * | integer | Milliseconds to move the cut; negative moves it earlier. |
| right_id * | string | The scene or clip right after the cut. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.roll_edit",
"description": "Move the cut between two neighbours by delta_ms (positive moves it later): left_id's end and right_id's start move together, and their footage in/out points follow. The pair's total length and every other element stay where they are. The neighbours are a scene and the next scene, or two touching clips on one track, left one first. Refuses, naming the fix: an unknown id, ids that do not share a cut, a locked track, or a delta that would leave either side under 100ms, past its length cap or past its footage (the refusal gives the delta_ms range that fits).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"left_id",
"right_id",
"delta_ms"
],
"properties": {
"left_id": {
"type": "string",
"minLength": 1,
"description": "The scene or clip before the cut."
},
"delta_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": -36000000,
"description": "Milliseconds to move the cut; negative moves it earlier."
},
"right_id": {
"type": "string",
"minLength": 1,
"description": "The scene or clip right after the cut."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Show a different part of a clip's or scene's footage without moving it: its in and out points move by delta_ms of timeline (positive shows later footage), while its position and length stay. Works on video and audio clips and on scenes with finished video. Refuses, naming the fix: an unknown id, text or a still image or a scene with no footage yet (only video and audio can slip), a locked track, or a delta that runs past the footage (the refusal gives the delta_ms range that fits).
| Parameter | Type | Description |
|---|---|---|
| clip_id * | string | A video or audio clip (vcl_) or a scene (vs_) with finished video. |
| delta_ms * | integer | Milliseconds to move the footage window; positive shows later footage. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.slip_edit",
"description": "Show a different part of a clip's or scene's footage without moving it: its in and out points move by delta_ms of timeline (positive shows later footage), while its position and length stay. Works on video and audio clips and on scenes with finished video. Refuses, naming the fix: an unknown id, text or a still image or a scene with no footage yet (only video and audio can slip), a locked track, or a delta that runs past the footage (the refusal gives the delta_ms range that fits).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"clip_id",
"delta_ms"
],
"properties": {
"clip_id": {
"type": "string",
"minLength": 1,
"description": "A video or audio clip (vcl_) or a scene (vs_) with finished video."
},
"delta_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": -36000000,
"description": "Milliseconds to move the footage window; positive shows later footage."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move a video or audio clip by delta_ms between its neighbours on its track: the clip touching its start gets longer or shorter at its end, the clip touching its end at its start, so the three-clip span and every other track stay put. A side with a gap instead lets the clip move into the gap and no further. Refuses, naming the fix: an unknown id, a scene (scenes reorder with reorder_scenes), text or a still image (move it with shift_clips), a locked track, or a delta that would leave a neighbour under 100ms or past its footage (the refusal gives the delta_ms range that fits).
| Parameter | Type | Description |
|---|---|---|
| clip_id * | string | A video or audio clip (vcl_) on a secondary track. |
| delta_ms * | integer | Milliseconds to move the clip; negative moves it earlier. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.slide_edit",
"description": "Move a video or audio clip by delta_ms between its neighbours on its track: the clip touching its start gets longer or shorter at its end, the clip touching its end at its start, so the three-clip span and every other track stay put. A side with a gap instead lets the clip move into the gap and no further. Refuses, naming the fix: an unknown id, a scene (scenes reorder with reorder_scenes), text or a still image (move it with shift_clips), a locked track, or a delta that would leave a neighbour under 100ms or past its footage (the refusal gives the delta_ms range that fits).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"clip_id",
"delta_ms"
],
"properties": {
"clip_id": {
"type": "string",
"minLength": 1,
"description": "A video or audio clip (vcl_) on a secondary track."
},
"delta_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": -36000000,
"description": "Milliseconds to move the clip; negative moves it earlier."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move ONE whole caption row along the timeline by delta_ms (negative moves it earlier): its start, its end and every word timing move together, so the words keep their spacing. Pick the row by caption_id, or by at_ms: the visible caption showing at that timeline millisecond (hidden rows are skipped). The row stops at 0, at the timeline cap and at the visible caption on either side, so a move never runs into its neighbours. To change only a start or an end, use edit_caption. Refuses, naming the fix: neither caption_id nor at_ms given, an unknown caption_id, no visible caption at at_ms, or a delta_ms outside the range that fits (the refusal gives that range).
| Parameter | Type | Description |
|---|---|---|
| at_ms | integer | A timeline millisecond inside the visible caption to move; used when caption_id is left out. |
| delta_ms * | integer | Milliseconds to move the whole row; negative moves it earlier. |
| caption_id | string | The caption row (vc_) to move. Leave it out and pass at_ms instead to pick the row showing then. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.move_caption",
"description": "Move ONE whole caption row along the timeline by delta_ms (negative moves it earlier): its start, its end and every word timing move together, so the words keep their spacing. Pick the row by caption_id, or by at_ms: the visible caption showing at that timeline millisecond (hidden rows are skipped). The row stops at 0, at the timeline cap and at the visible caption on either side, so a move never runs into its neighbours. To change only a start or an end, use edit_caption. Refuses, naming the fix: neither caption_id nor at_ms given, an unknown caption_id, no visible caption at at_ms, or a delta_ms outside the range that fits (the refusal gives that range).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"delta_ms"
],
"properties": {
"at_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": 0,
"description": "A timeline millisecond inside the visible caption to move; used when caption_id is left out."
},
"delta_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": -36000000,
"description": "Milliseconds to move the whole row; negative moves it earlier."
},
"caption_id": {
"type": "string",
"minLength": 1,
"description": "The caption row (vc_) to move. Leave it out and pass at_ms instead to pick the row showing then."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Cut the words of a transcript span out of the whole video, the way deleting text in a transcript editor does. The span runs from from_caption_id to to_caption_id (row ids from get_transcript) and takes both rows whole; from_word_index and to_word_index narrow it to a word inside the from row and the to row (0-based, in the order get_transcript lists a row's words). The span's time comes out of every lane through the same cut as cut_range, so the scenes, clips, captions and stickers after it move earlier together, and a transcribed row that loses words keeps the words that are left. cut_start_ms and cut_end_ms report the range applied, which is wider than the span when a scene edge needs it. Not undoable. Refuses, naming the fix: an unknown caption id, a span that runs backwards, a word index on a manual caption or a silence row (neither has word timings, so it cuts only as a whole row), a word index past the row's last word, a span that covers no time, a locked track after the span, and whatever else cut_range refuses there (a span past the timeline end, a scene split with no room).
| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The studio project (vp_…) this tool acts on. |
| to_caption_id * | string | The caption row (vc_) the span ends in; the same id as from_caption_id for a span inside one row. |
| to_word_index | integer | 0-based index of the last word to cut in the to row; the row's end when left out. |
| from_caption_id * | string | The caption row (vc_) the span starts in. |
| from_word_index | integer | 0-based index of the first word to cut in the from row; the row's start when left out. |
Add an empty track of a role (video-broll, text, audio-music or audio-voice), up to 16 tracks in the project. The new track lands on top of its role: a video-broll or text track draws over the ones before it (picture-in-picture, a second title layer), an audio track mixes in beside the others. Place clips on it by passing the returned track_id to add_clip_to_timeline, add_audio_to_timeline or add_text_overlay. Refuses at the track cap, naming the fix.
| Parameter | Type | Description |
|---|---|---|
| name | string | A display name up to 40 characters; the role's label shows when left out. |
| role * | string | The kind of track: video-broll, text, audio-music or audio-voice. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.add_track",
"description": "Add an empty track of a role (video-broll, text, audio-music or audio-voice), up to 16 tracks in the project. The new track lands on top of its role: a video-broll or text track draws over the ones before it (picture-in-picture, a second title layer), an audio track mixes in beside the others. Place clips on it by passing the returned track_id to add_clip_to_timeline, add_audio_to_timeline or add_text_overlay. Refuses at the track cap, naming the fix.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"role"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"description": "A display name up to 40 characters; the role's label shows when left out."
},
"role": {
"enum": [
"video-broll",
"text",
"audio-music",
"audio-voice"
],
"type": "string",
"description": "The kind of track: video-broll, text, audio-music or audio-voice."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Remove one track by track_id. A track that still holds clips is refused unless delete_clips is true, which removes its clips with it. Refuses, naming the fix: an unknown track_id, a locked track, a track with clips and no delete_clips, or the last track of its role (every project keeps one of each).
| Parameter | Type | Description |
|---|---|---|
| track_id * | string | The track (vtr_) from get_composition's tracks. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| delete_clips | boolean | true removes the track's clips with it; left out, a track with clips is refused. |
{
"name": "studio.remove_track",
"description": "Remove one track by track_id. A track that still holds clips is refused unless delete_clips is true, which removes its clips with it. Refuses, naming the fix: an unknown track_id, a locked track, a track with clips and no delete_clips, or the last track of its role (every project keeps one of each).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"track_id"
],
"properties": {
"track_id": {
"type": "string",
"minLength": 1,
"description": "The track (vtr_) from get_composition's tracks."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"delete_clips": {
"type": "boolean",
"description": "true removes the track's clips with it; left out, a track with clips is refused."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move a track to position within its own role. Position 0 is the lowest: its pictures draw first, so every later video-broll or text track draws over it. Tracks of other roles keep their order; text always draws over video. Locked tracks may be reordered. Refuses an unknown track_id or a position past the role's last track, naming the fix.
| Parameter | Type | Description |
|---|---|---|
| position * | integer | 0-based position among the tracks of the same role; 0 draws lowest. |
| track_id * | string | The track (vtr_) from get_composition's tracks. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.move_track",
"description": "Move a track to position within its own role. Position 0 is the lowest: its pictures draw first, so every later video-broll or text track draws over it. Tracks of other roles keep their order; text always draws over video. Locked tracks may be reordered. Refuses an unknown track_id or a position past the role's last track, naming the fix.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"track_id",
"position"
],
"properties": {
"position": {
"type": "integer",
"maximum": 15,
"minimum": 0,
"description": "0-based position among the tracks of the same role; 0 draws lowest."
},
"track_id": {
"type": "string",
"minLength": 1,
"description": "The track (vtr_) from get_composition's tracks."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Give a track a display name up to 40 characters, or pass an empty name to go back to the role's label. Names are for people and never address a track: tools take track_id. Locked tracks may be renamed. Refuses an unknown track_id, naming the fix.
| Parameter | Type | Description |
|---|---|---|
| name * | string | The new name; an empty string clears it. |
| track_id * | string | The track (vtr_) from get_composition's tracks. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.rename_track",
"description": "Give a track a display name up to 40 characters, or pass an empty name to go back to the role's label. Names are for people and never address a track: tools take track_id. Locked tracks may be renamed. Refuses an unknown track_id, naming the fix.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"track_id",
"name"
],
"properties": {
"name": {
"type": "string",
"maxLength": 40,
"description": "The new name; an empty string clears it."
},
"track_id": {
"type": "string",
"minLength": 1,
"description": "The track (vtr_) from get_composition's tracks."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Mute or unmute a whole track. A muted audio track plays nothing and a muted voice track stops ducking the music; a muted video-broll track keeps its pictures and drops its clips' own sound. The preview and the export both honor it, and each clip keeps its own muted and volume. Locked tracks may be muted. Refuses an unknown track_id or a text track, naming the fix.
| Parameter | Type | Description |
|---|---|---|
| muted * | boolean | true silences the track; false plays it again. |
| track_id * | string | The track (vtr_) from get_composition's tracks. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.set_track_muted",
"description": "Mute or unmute a whole track. A muted audio track plays nothing and a muted voice track stops ducking the music; a muted video-broll track keeps its pictures and drops its clips' own sound. The preview and the export both honor it, and each clip keeps its own muted and volume. Locked tracks may be muted. Refuses an unknown track_id or a text track, naming the fix.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"track_id",
"muted"
],
"properties": {
"muted": {
"type": "boolean",
"description": "true silences the track; false plays it again."
},
"track_id": {
"type": "string",
"minLength": 1,
"description": "The track (vtr_) from get_composition's tracks."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move 1 to 200 timeline clips onto another track of the same kind (a b-roll clip to a video-broll track, a title to a text track, music to an audio-music track, a voice clip to an audio-voice track), keeping their spacing; delta_ms also moves them in time (default 0). Stacking follows the track: get_composition lists tracks in stacking order, and a clip on a later video-broll or text track draws over the earlier ones. All or nothing. Refuses, naming the first offender and moving nothing: an unknown clip id or track_id (get_composition lists the ids), a locked source or target track (unlock it with lock_track), a target of another kind (pick a track of the clip's kind, or add one with add_track), a target that would pass its clip cap (move fewer clips, or add a track with add_track), listed clips that overlap each other (move them one at a time), a clip pushed before 0 or past the timeline cap (keep delta_ms within the range the refusal gives), or a landing that overlaps a clip already on the target (use another delta_ms; the refusal gives the nearest one that fits).
| Parameter | Type | Description |
|---|---|---|
| clip_ids * | array | Timeline clip ids (vcl_) from get_composition's tracks; duplicates count once. |
| delta_ms | integer | Milliseconds to move the clips in time as they change track; negative moves them earlier. 0 when left out. |
| track_id * | string | The target track (vtr_) from get_composition's tracks, of the same role as every listed clip's track. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
Place a product card: a price_tag text clip showing a stock item's name and price, built from values you already hold. studio.insert_product_card reads them from the stock record for you; use this op inside studio.apply_ops or when the values come from elsewhere. The price prints as the currency code and the amount with two decimals (SGD 12.90), never a symbol. style: tag (name over price, lower left), banner (name and price on one line, bottom centre), price_only (the price alone, large, top right); default tag. A name longer than 32 characters is shortened on screen and kept whole in the card's record. Lands on the first text track, or the one track_id names, at start_ms (default 0) for duration_ms (default 4000). Refuses, naming the fix: a blank product_name, an unknown or non-text track_id, a locked text track, a card past the timeline cap, a full track, or an overlap with another clip (the refusal gives the nearest start_ms that fits).
| Parameter | Type | Description |
|---|---|---|
| style | string | The card's layout; tag when left out. |
| currency * | string | The ISO code the price prints with; the business's sales_settings default_currency. |
| start_ms | integer | Timeline millisecond where the card appears; 0 when left out. |
| track_id | string | A text track (vtr_) from get_composition; the first text track when left out. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_ms | integer | How long the card shows, in milliseconds; 4000 when left out. |
| product_name * |
Update a scene's prompt or duration. EDIT-INVALIDATES-ASSET: changing the prompt of a generated scene resets it to pending and drops its footage (a stale render cannot survive a prompt edit) — say so before doing it. With ripple_secondary "shift" (the default) the other lanes follow the footage: time the scene loses at its start or end is cut from every lane at that edge, and time it gains is inserted there, so clips, captions and stickers stay over the frames they were placed on (one that spans that edge is split or stretched). "none" changes the main track alone. Refuses a shift that moves a locked track (unlock it with lock_track, or pass ripple_secondary "none").
| Parameter | Type | Description |
|---|---|---|
| prompt | string | New prompt (optional). |
| scene_id * | string | |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_seconds | number | New duration in seconds (optional). |
| ripple_secondary | string | "shift" (default) keeps clips, captions and stickers in sync with the scenes; "none" edits the main track alone. |
{
"name": "studio.update_scene",
"description": "Update a scene's prompt or duration. EDIT-INVALIDATES-ASSET: changing the prompt of a generated scene resets it to pending and drops its footage (a stale render cannot survive a prompt edit) — say so before doing it. With ripple_secondary \"shift\" (the default) the other lanes follow the footage: time the scene loses at its start or end is cut from every lane at that edge, and time it gains is inserted there, so clips, captions and stickers stay over the frames they were placed on (one that spans that edge is split or stretched). \"none\" changes the main track alone. Refuses a shift that moves a locked track (unlock it with lock_track, or pass ripple_secondary \"none\").",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"scene_id"
],
"properties": {
"prompt": {
"type": "string",
"description": "New prompt (optional)."
},
"scene_id": {
"type": "string"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_seconds": {
"type": "number",
"description": "New duration in seconds (optional)."
},
"ripple_secondary": {
"enum": [
"shift",
"none"
],
"type": "string",
"default": "shift",
"description": "\"shift\" (default) keeps clips, captions and stickers in sync with the scenes; \"none\" edits the main track alone."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}[$0.10/sec at provider cost] Generate video for a scene from its prompt (text-to-video). Pass scene_id to fill a planned scene, or prompt to create-and-generate in one step. NEVER mention camera equipment (crane, dolly, rig) — describe what to SHOW. Say 'camera rises' NOT 'crane shot'. Include: subject, action, lighting, color palette, mood.
| Parameter | Type | Description |
|---|---|---|
| style | string | Visual style: cinematic, corporate, playful, dramatic |
| prompt | string | Visual description; required when scene_id is omitted. |
| scene_id | string | Planned scene to generate (optional). |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_seconds | number | Whole seconds (3-10). |
{
"name": "studio.generate_scene",
"description": "[$0.10/sec at provider cost] Generate video for a scene from its prompt (text-to-video). Pass scene_id to fill a planned scene, or prompt to create-and-generate in one step. NEVER mention camera equipment (crane, dolly, rig) — describe what to SHOW. Say 'camera rises' NOT 'crane shot'. Include: subject, action, lighting, color palette, mood.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"style": {
"type": "string",
"default": "cinematic",
"description": "Visual style: cinematic, corporate, playful, dramatic"
},
"prompt": {
"type": "string",
"description": "Visual description; required when scene_id is omitted."
},
"scene_id": {
"type": "string",
"description": "Planned scene to generate (optional)."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_seconds": {
"type": "number",
"default": 5,
"description": "Whole seconds (3-10)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}[$0.15/track at provider cost] Generate a background music track from a mood/style description. Returns an audio asset id — place it with add_audio_to_timeline.
| Parameter | Type | Description |
|---|---|---|
| mood * | string | Mood/style: uplifting, dramatic, corporate, chill, energetic — or free text. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_seconds * | number | Track length in seconds. |
{
"name": "studio.generate_music",
"description": "[$0.15/track at provider cost] Generate a background music track from a mood/style description. Returns an audio asset id — place it with add_audio_to_timeline.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"mood",
"duration_seconds"
],
"properties": {
"mood": {
"type": "string",
"description": "Mood/style: uplifting, dramatic, corporate, chill, energetic — or free text."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_seconds": {
"type": "number",
"description": "Track length in seconds."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Generate narration audio from a script. voice_tier is the REAL choice the user makes: 'standard' ($0.015/1K chars at provider cost) vs 'premium' ($0.06/1K chars at provider cost) — quote both prices when proposing; never pick silently. Returns an audio asset id.
| Parameter | Type | Description |
|---|---|---|
| voice | string | Provider voice id/name (optional). |
| script * | string | The narration text (max 5000 chars). |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| voice_tier * | string | REQUIRED — the user's explicit price-visible choice. |
{
"name": "studio.generate_voiceover",
"description": "Generate narration audio from a script. voice_tier is the REAL choice the user makes: 'standard' ($0.015/1K chars at provider cost) vs 'premium' ($0.06/1K chars at provider cost) — quote both prices when proposing; never pick silently. Returns an audio asset id.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"script",
"voice_tier"
],
"properties": {
"voice": {
"type": "string",
"description": "Provider voice id/name (optional)."
},
"script": {
"type": "string",
"description": "The narration text (max 5000 chars)."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"voice_tier": {
"enum": [
"standard",
"premium"
],
"type": "string",
"description": "REQUIRED — the user's explicit price-visible choice."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Place an existing video/image asset on a b-roll track at a position: the first b-roll track, or the one track_id names (a later b-roll track draws over an earlier one, for picture-in-picture). Overlap on that track is refused with the conflicting range so you can re-place or stack it on another track.
| Parameter | Type | Description |
|---|---|---|
| asset_id * | string | |
| track_id | string | A video-broll track (vtr_) from get_composition; defaults to the first one. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_ms | number | Defaults to the asset's duration. |
| start_time_ms * | number |
{
"name": "studio.add_clip_to_timeline",
"description": "Place an existing video/image asset on a b-roll track at a position: the first b-roll track, or the one track_id names (a later b-roll track draws over an earlier one, for picture-in-picture). Overlap on that track is refused with the conflicting range so you can re-place or stack it on another track.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"asset_id",
"start_time_ms"
],
"properties": {
"asset_id": {
"type": "string"
},
"track_id": {
"type": "string",
"description": "A video-broll track (vtr_) from get_composition; defaults to the first one."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_ms": {
"type": "number",
"description": "Defaults to the asset's duration."
},
"start_time_ms": {
"type": "number"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Place an audio asset on a role track: 'audio-music' (background, default volume 0.3 — voice ducks music by role) or 'audio-voice' (narration, volume 1.0). It lands on the role's first track, or on the one track_id names (a second music bed, a second voice).
| Parameter | Type | Description |
|---|---|---|
| track | string | one of ["audio-music","audio-voice"] |
| volume | number | 0-2; defaults 0.3 for music, 1.0 for voice. |
| asset_id * | string | |
| track_id | string | An audio track (vtr_) from get_composition; its role wins when track is left out. Defaults to the role's first track. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| start_time_ms | number |
{
"name": "studio.add_audio_to_timeline",
"description": "Place an audio asset on a role track: 'audio-music' (background, default volume 0.3 — voice ducks music by role) or 'audio-voice' (narration, volume 1.0). It lands on the role's first track, or on the one track_id names (a second music bed, a second voice).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"asset_id"
],
"properties": {
"track": {
"enum": [
"audio-music",
"audio-voice"
],
"type": "string",
"default": "audio-music"
},
"volume": {
"type": "number",
"description": "0-2; defaults 0.3 for music, 1.0 for voice."
},
"asset_id": {
"type": "string"
},
"track_id": {
"type": "string",
"description": "An audio track (vtr_) from get_composition; its role wins when track is left out. Defaults to the role's first track."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"start_time_ms": {
"type": "number",
"default": 0
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Add a text clip to the first text track, or to the one track_id names (a later text track draws over an earlier one). Pick a semantic preset (title/subtitle/lower_third/callout/price_tag) — it carries complete opinionated styling; override only what matters. Keep text SHORT (max 5-7 words).
| Parameter | Type | Description |
|---|---|---|
| preset | string | one of ["title","subtitle","lower_third","callout","price_tag"] |
| content * | string | The text (max 500 chars; aim for 5-7 words). |
| position | object | Normalized 0-1; 0.5,0.5 is center. |
| track_id | string | A text track (vtr_) from get_composition; defaults to the first one. |
| animation | string | one of ["none","fade_in","fade_up","fade_down","slide_left","slide_right","pop","typewriter"] |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_ms | number | Visible time; keep text readable (3-5s minimum). |
| start_time_ms | number |
Update an existing text clip: content, position, timing.
| Parameter | Type | Description |
|---|---|---|
| clip_id * | string | Text clip id (from get_composition). |
| content | string | |
| position | object | |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_ms | number | |
| start_time_ms | number |
{
"name": "studio.update_text_overlay",
"description": "Update an existing text clip: content, position, timing.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"clip_id"
],
"properties": {
"clip_id": {
"type": "string",
"description": "Text clip id (from get_composition)."
},
"content": {
"type": "string"
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"additionalProperties": false
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_ms": {
"type": "number"
},
"start_time_ms": {
"type": "number"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Add a sticker/element overlay (creator CTAs, emojis, shapes) at a normalized position with its own time range and animation.
| Parameter | Type | Description |
|---|---|---|
| x * | number | 0-1 |
| y * | number | 0-1 |
| emoji | string | Emoji glyph when the sticker is an emoji. |
| sticker * | string | Catalog key (e.g. subscribe, sale, live) or emoji name. |
| animation | string | one of ["none","shake","glow","pulse","bounce"] |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_ms | number | |
| start_time_ms | number |
{
"name": "studio.add_sticker",
"description": "Add a sticker/element overlay (creator CTAs, emojis, shapes) at a normalized position with its own time range and animation.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"sticker",
"x",
"y"
],
"properties": {
"x": {
"type": "number",
"description": "0-1"
},
"y": {
"type": "number",
"description": "0-1"
},
"emoji": {
"type": "string",
"description": "Emoji glyph when the sticker is an emoji."
},
"sticker": {
"type": "string",
"description": "Catalog key (e.g. subscribe, sale, live) or emoji name."
},
"animation": {
"enum": [
"none",
"shake",
"glow",
"pulse",
"bounce"
],
"type": "string",
"default": "none"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_ms": {
"type": "number",
"default": 3000
},
"start_time_ms": {
"type": "number",
"default": 0
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Set a scene's transition (in = how it enters, out = how it leaves). Dissolve creates connection (500-800ms); fade for scene breaks; cut clears the transition.
| Parameter | Type | Description |
|---|---|---|
| type * | string | one of ["cut","fade","dissolve","wipe_left","wipe_right","wipe_up","wipe_down","slide_left","slide_right","circle_open","circle_close","zoom_in"] |
| scene_id * | string | |
| direction | string | one of ["in","out"] |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| duration_ms | number |
{
"name": "studio.set_transition",
"description": "Set a scene's transition (in = how it enters, out = how it leaves). Dissolve creates connection (500-800ms); fade for scene breaks; cut clears the transition.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"scene_id",
"type"
],
"properties": {
"type": {
"enum": [
"cut",
"fade",
"dissolve",
"wipe_left",
"wipe_right",
"wipe_up",
"wipe_down",
"slide_left",
"slide_right",
"circle_open",
"circle_close",
"zoom_in"
],
"type": "string"
},
"scene_id": {
"type": "string"
},
"direction": {
"enum": [
"in",
"out"
],
"type": "string",
"default": "out"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_ms": {
"type": "number",
"default": 500
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Trim a generated scene's footage: cut milliseconds off its start and/or end. With ripple_secondary "shift" (the default) the other lanes follow the footage: time the scene loses at its start or end is cut from every lane at that edge, and time it gains is inserted there, so clips, captions and stickers stay over the frames they were placed on (one that spans that edge is split or stretched). "none" changes the main track alone. Refuses a shift that moves a locked track (unlock it with lock_track, or pass ripple_secondary "none").
| Parameter | Type | Description |
|---|---|---|
| scene_id * | string | |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| trim_end_ms | number | Milliseconds to cut from the end. |
| trim_start_ms | number | Milliseconds to cut from the start. |
| ripple_secondary | string | "shift" (default) keeps clips, captions and stickers in sync with the scenes; "none" edits the main track alone. |
{
"name": "studio.trim_scene",
"description": "Trim a generated scene's footage: cut milliseconds off its start and/or end. With ripple_secondary \"shift\" (the default) the other lanes follow the footage: time the scene loses at its start or end is cut from every lane at that edge, and time it gains is inserted there, so clips, captions and stickers stay over the frames they were placed on (one that spans that edge is split or stretched). \"none\" changes the main track alone. Refuses a shift that moves a locked track (unlock it with lock_track, or pass ripple_secondary \"none\").",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"scene_id"
],
"properties": {
"scene_id": {
"type": "string"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"trim_end_ms": {
"type": "number",
"default": 0,
"description": "Milliseconds to cut from the end."
},
"trim_start_ms": {
"type": "number",
"default": 0,
"description": "Milliseconds to cut from the start."
},
"ripple_secondary": {
"enum": [
"shift",
"none"
],
"type": "string",
"default": "shift",
"description": "\"shift\" (default) keeps clips, captions and stickers in sync with the scenes; \"none\" edits the main track alone."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Apply color grading to a scene (each channel -100..100; temperature negative = cool, positive = warm).
| Parameter | Type | Description |
|---|---|---|
| contrast | number | |
| scene_id * | string | |
| brightness | number | |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| saturation | number | |
| temperature | number |
{
"name": "studio.color_grade",
"description": "Apply color grading to a scene (each channel -100..100; temperature negative = cool, positive = warm).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"scene_id"
],
"properties": {
"contrast": {
"type": "number"
},
"scene_id": {
"type": "string"
},
"brightness": {
"type": "number"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"saturation": {
"type": "number"
},
"temperature": {
"type": "number"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Adjust an audio role's mix: set every clip's volume on every track of that role (or only on the track track_id names) and/or toggle ducking (voice ducks music BY ROLE — no track ids needed).
| Parameter | Type | Description |
|---|---|---|
| track * | string | one of ["audio-music","audio-voice"] |
| volume | number | 0-2 linear volume for every clip on the track. |
| track_id | string | One audio track (vtr_) of that role from get_composition; left out, every track of the role. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| apply_ducking | boolean | Enable/disable voice-over-music ducking. |
{
"name": "studio.adjust_audio_levels",
"description": "Adjust an audio role's mix: set every clip's volume on every track of that role (or only on the track track_id names) and/or toggle ducking (voice ducks music BY ROLE — no track ids needed).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"track"
],
"properties": {
"track": {
"enum": [
"audio-music",
"audio-voice"
],
"type": "string"
},
"volume": {
"type": "number",
"description": "0-2 linear volume for every clip on the track."
},
"track_id": {
"type": "string",
"description": "One audio track (vtr_) of that role from get_composition; left out, every track of the role."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"apply_ducking": {
"type": "boolean",
"default": true,
"description": "Enable/disable voice-over-music ducking."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move a clip or adjust its volume/mute on any secondary track.
| Parameter | Type | Description |
|---|---|---|
| muted | boolean | |
| volume | number | |
| clip_id * | string | |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| start_time_ms | number |
{
"name": "studio.update_clip",
"description": "Move a clip or adjust its volume/mute on any secondary track.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"clip_id"
],
"properties": {
"muted": {
"type": "boolean"
},
"volume": {
"type": "number"
},
"clip_id": {
"type": "string"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"start_time_ms": {
"type": "number"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Delete a scene, clip, or sticker by id (captions soft-delete reversibly). Deleting a scene with ripple_secondary "shift" (the default) removes its span of time from every lane, so clips, captions and stickers over the scene go with it and everything after it moves earlier in sync; "none" closes the main track alone. A deleted clip still leaves its gap open whatever ripple_secondary says; ripple_delete closes it. Refuses a clip on a locked track, and a shift that moves a locked track (unlock it with lock_track, or pass ripple_secondary "none").
| Parameter | Type | Description |
|---|---|---|
| element_id * | string | |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| ripple_secondary | string | "shift" (default) keeps clips, captions and stickers in sync with the scenes; "none" edits the main track alone. |
{
"name": "studio.delete_element",
"description": "Delete a scene, clip, or sticker by id (captions soft-delete reversibly). Deleting a scene with ripple_secondary \"shift\" (the default) removes its span of time from every lane, so clips, captions and stickers over the scene go with it and everything after it moves earlier in sync; \"none\" closes the main track alone. A deleted clip still leaves its gap open whatever ripple_secondary says; ripple_delete closes it. Refuses a clip on a locked track, and a shift that moves a locked track (unlock it with lock_track, or pass ripple_secondary \"none\").",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"element_id"
],
"properties": {
"element_id": {
"type": "string"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"ripple_secondary": {
"enum": [
"shift",
"none"
],
"type": "string",
"default": "shift",
"description": "\"shift\" (default) keeps clips, captions and stickers in sync with the scenes; \"none\" edits the main track alone."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Delete every '[silence]' row from the TRANSCRIPT. This cleans up the caption text only - the footage keeps its full length and the pauses still play. To cut the pauses out of the video for real, use remove_dead_air. Silence rows are derived markers, not content, so this is a HARD delete and is not undoable - re-run transcription to get them back.
| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.remove_silence",
"description": "Delete every '[silence]' row from the TRANSCRIPT. This cleans up the caption text only - the footage keeps its full length and the pauses still play. To cut the pauses out of the video for real, use remove_dead_air. Silence rows are derived markers, not content, so this is a HARD delete and is not undoable - re-run transcription to get them back.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Hide filler words (um, uh, you know, kind of) from the transcript. REVERSIBLE: rows are soft-deleted, excluded from burn-in and SRT, and restore_fillers brings them back. Read the composition afterwards if you need to see which rows went.
| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.remove_fillers",
"description": "Hide filler words (um, uh, you know, kind of) from the transcript. REVERSIBLE: rows are soft-deleted, excluded from burn-in and SRT, and restore_fillers brings them back. Read the composition afterwards if you need to see which rows went.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Un-hide transcript rows that were soft-deleted. Scope is EVERY hidden row, not only filler words - a caption hidden by delete_element comes back too. There is no per-row restore.
| Parameter | Type | Description |
|---|---|---|
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.restore_fillers",
"description": "Un-hide transcript rows that were soft-deleted. Scope is EVERY hidden row, not only filler words - a caption hidden by delete_element comes back too. There is no per-row restore.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Cut a scene or a timeline clip in two at a timeline millisecond. The left half keeps the id; the right half is new and is returned. Both halves must keep at least 100ms of footage or the split refuses. Transitions stay on the outer edges - the new seam is a hard cut.
| Parameter | Type | Description |
|---|---|---|
| at_ms * | number | TIMELINE position of the cut, not an offset into the element. |
| target_id * | string | A scene id or a timeline clip id. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.split",
"description": "Cut a scene or a timeline clip in two at a timeline millisecond. The left half keeps the id; the right half is new and is returned. Both halves must keep at least 100ms of footage or the split refuses. Transitions stay on the outer edges - the new seam is a hard cut.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"target_id",
"at_ms"
],
"properties": {
"at_ms": {
"type": "number",
"description": "TIMELINE position of the cut, not an offset into the element."
},
"target_id": {
"type": "string",
"description": "A scene id or a timeline clip id."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Replace the transcript with fresh rows from your own transcription. Rows the operator hand-edited (source 'manual') SURVIVE - only machine-transcribed rows are replaced, so a re-transcribe never silently discards someone's correction. Rows are re-sorted by start time.
| Parameter | Type | Description |
|---|---|---|
| captions * | array | The new transcript, in any order. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
{
"name": "studio.replace_transcribed",
"description": "Replace the transcript with fresh rows from your own transcription. Rows the operator hand-edited (source 'manual') SURVIVE - only machine-transcribed rows are replaced, so a re-transcribe never silently discards someone's correction. Rows are re-sorted by start time.",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"captions"
],
"properties": {
"captions": {
"type": "array",
"items": {
"type": "object",
"required": [
"start_ms",
"end_ms",
"text"
],
"properties": {
"text": {
"type": "string"
},
"type": {
"enum": [
"speech",
"filler",
"silence",
"manual"
],
"type": "string",
"default": "speech"
},
"end_ms": {
"type": "number"
},
"speaker": {
"type": "string"
},
"start_ms": {
"type": "number"
},
"confidence": {
"type": "number",
"description": "0-1 recognizer confidence."
}
},
"additionalProperties": false
},
"description": "The new transcript, in any order."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Set project output settings: aspect ratio, resolution, frame rate, background colour, caption style. Every field is optional - only what you pass changes. Changing aspect does NOT re-crop existing footage (it letterboxes); reframe the scenes if you need the framing to follow.
| Parameter | Type | Description |
|---|---|---|
| fps | integer | Frame rate - 24, 25, 30 or 60 only. |
| aspect | string | one of ["16:9","9:16","1:1","4:5"] |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| resolution | string | one of ["720p","1080p","4k"] |
| caption_preset | string | one of ["default","bold","neon","minimal","pop","karaoke"] |
| background_color | string | Hex #RRGGBB - what shows in letterbox bars. |
{
"name": "studio.set_config",
"description": "Set project output settings: aspect ratio, resolution, frame rate, background colour, caption style. Every field is optional - only what you pass changes. Changing aspect does NOT re-crop existing footage (it letterboxes); reframe the scenes if you need the framing to follow.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"fps": {
"type": "integer",
"description": "Frame rate - 24, 25, 30 or 60 only."
},
"aspect": {
"enum": [
"16:9",
"9:16",
"1:1",
"4:5"
],
"type": "string"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"resolution": {
"enum": [
"720p",
"1080p",
"4k"
],
"type": "string"
},
"caption_preset": {
"enum": [
"default",
"bold",
"neon",
"minimal",
"pop",
"karaoke"
],
"type": "string"
},
"background_color": {
"type": "string",
"description": "Hex #RRGGBB - what shows in letterbox bars."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}Move a scene to a different position in the primary lane. Positions are 0-based, so to_index 0 makes it the opening scene. Scene start times are DERIVED from order, so every scene after the move shifts in time. With ripple_secondary "shift" (the default) every clip, caption and sticker that sits wholly inside a scene moves with that scene; one that spans a scene edge stays put and is listed in straddling_ids. "none" moves the scenes alone. Refuses a shift that moves a clip on a locked track (unlock it with lock_track, or pass ripple_secondary "none") or lands a moved clip over one that stays put (pass ripple_secondary "none", or move or split that clip first).
| Parameter | Type | Description |
|---|---|---|
| scene_id * | string | |
| to_index * | integer | 0-based destination position. |
| project_id * | string | The studio project (vp_…) this tool acts on. |
| ripple_secondary | string | "shift" (default) keeps clips, captions and stickers in sync with the scenes; "none" edits the main track alone. |
{
"name": "studio.reorder_scenes",
"description": "Move a scene to a different position in the primary lane. Positions are 0-based, so to_index 0 makes it the opening scene. Scene start times are DERIVED from order, so every scene after the move shifts in time. With ripple_secondary \"shift\" (the default) every clip, caption and sticker that sits wholly inside a scene moves with that scene; one that spans a scene edge stays put and is listed in straddling_ids. \"none\" moves the scenes alone. Refuses a shift that moves a clip on a locked track (unlock it with lock_track, or pass ripple_secondary \"none\") or lands a moved clip over one that stays put (pass ripple_secondary \"none\", or move or split that clip first).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"scene_id",
"to_index"
],
"properties": {
"scene_id": {
"type": "string"
},
"to_index": {
"type": "integer",
"description": "0-based destination position."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"ripple_secondary": {
"enum": [
"shift",
"none"
],
"type": "string",
"default": "shift",
"description": "\"shift\" (default) keeps clips, captions and stickers in sync with the scenes; \"none\" edits the main track alone."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}20 more tools not shown here; see the raw JSON.
Simpler execution substrate. Open catalog, closed data: tools/list and the discovery reads are anonymous; execution needs a tenant-scoped token. OPERATING CONSTANTS: 1) MONEY is integer CENTS ($15.00 → 1500) or a decimal string ("15.00") — never convert units yourself; a bare whole number for money is refused as ambiguous. Never INFER an amount from context ("paid the invoice" is not a number) — an unstated amount is a question for the operator, not a deduction. 2) OUTCOMES FIRST: common business outcomes are ONE tool call each — call simpler.outcomes (free, anonymous) for the outcome→tool menu before walking the catalog; ONE call creates the whole document (e.g. invoice_create takes client_name + items together). 3) OBEY THE ERROR: every error carries its correction and a runnable next_call in error.data.envelope — do exactly what the error says, change only what it names; -32030 means policy (envelope.error.code FORBIDDEN | APPROVAL_REQUIRED | TRUST_REQUIRED says which escalation). 4) VERIFY BEFORE DONE: after a write, read it back with the entity's read/list tool before you report done. 5) SALES DOCUMENTS (invoices, quotes, receipts, statements) return as copy-ready text, drawn in chat where the host can: give the user the document, never a link unless asked. DISCOVERY tiers: 0) simpler.outcomes — the outcome menu; 1) simpler.directory — every service, one line each; 2) simpler.describe_service — one service's operations; 3) simpler.invoke — execute (auth required; or call the named tool directly). EVERYTHING IS TENANT-SCOPED: ownership comes from your token — never send tenant_id or user_id, the tools do not accept them. Each tool's _meta declares its envelope (cost, approval/trust gates, failure modes, examples). Per-namespace servers exist at /mcp/{account,crm,desk,expenses,images,myinvois,network,operators,sales,spreadsheets,stock,studio}. image.project_* work: connect /mcp/images. studio.* and video.* work: connect /mcp/studio.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
None yet. Changes appear after a server's second daily check.
{
"name": "agent_note_send_cross_tenant",
"description": "Send a cross-tenant AI-to-AI message into another tenant's agent_note inbox — the door that turns a cross_tenant_comm consent grant into an actual reach. Both tenants must be KYB-approved and the recipient must hold an active grant (claims can narrow it further); every recipient-side failure refuses identically so the network can't be probed for who exists — only your OWN unapproved KYB answers distinctly, since that discloses nothing about the target. Your sender identity is injected server-side into from_tenant_id and cannot be spoofed. NEXT: agent_note_list on the recipient side confirms delivery.",
"inputSchema": {
"type": "object",
"required": [
"to_tenant_id"
],
"properties": {
"body": {
"type": "string",
"maxLength": 4000
},
"status": {
"enum": [
"unread",
"read"
],
"type": "string"
},
"subject": {
"type": "string",
"maxLength": 200
},
"to_tenant_id": {
"type": "string",
"description": "The recipient tenant id — must be another tenant, never your own. The recipient must hold an active cross_tenant_comm consent grant and both tenants must be KYB-approved, or the door refuses uniformly without revealing which condition failed."
},
"from_tenant_id": {
"type": "string",
"maxLength": 40
},
"consent_grant_id": {
"type": "string",
"maxLength": 40
},
"related_entity_id": {
"type": "string",
"maxLength": 40
},
"related_entity_type": {
"type": "string",
"maxLength": 60
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| last_contact_at | integer |
| first_interaction | object | Alias of interaction. |
{
"name": "contact_upsert",
"description": "Create-or-merge a contact keyed on email-then-phone identity — the sync door the future desktop harness and ingest lanes write through. Matching probes email first, then phone; a hit MERGES only the fields you send (omitted fields keep their stored values, so a partial sync payload can never wipe a curated field), a miss creates. Status moves still obey the transition machine — an upsert cannot jump straight to vip. Accepts the same first-note/first-interaction composite children as contact_create.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"note": {
"type": "string",
"description": "Log a first note in the SAME call — ONE call makes both."
},
"tags": {
"type": "string",
"maxLength": 2000
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"description": "Alias of note."
},
"phone": {
"type": "string",
"maxLength": 50
},
"source": {
"enum": [
"manual",
"import",
"invoice",
"sync"
],
"type": "string"
},
"status": {
"enum": [
"lead",
"contacted",
"qualified",
"customer",
"vip",
"inactive"
],
"type": "string"
},
"address": {
"type": "string",
"maxLength": 500
},
"company": {
"type": "string",
"maxLength": 200
},
"interaction": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"summary": {
"type": "string"
},
"occurred_at": {
"type": "string"
},
"interaction_type": {
"type": "string"
}
},
"description": "Log the first interaction in the same call: {type, summary, occurred_at?} — occurred_at takes \"YYYY-MM-DD\".",
"additionalProperties": false
},
"last_contact_at": {
"type": "integer"
},
"first_interaction": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"summary": {
"type": "string"
},
"occurred_at": {
"type": "string"
},
"interaction_type": {
"type": "string"
}
},
"description": "Alias of interaction.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| currency |
| string |
| ocr_json | string |
| tax_type | string | one of ["GST","SST","VAT","PPN"] |
| tags_json | string |
| approved_at | integer |
| approved_by | string |
| category_id | string |
| description | string | Alias of notes — used only when notes is not also supplied. |
| receipt_key | string |
| rejected_at | integer |
| amount_cents | integer |
| expense_date | integer |
| submitted_at | integer |
| tax_rate_bps | integer |
| category_name | string | Alias of category — resolves to category_id by name or slug. |
| recurrence_id | string |
| reimbursed_at | integer |
| subtotal_cents | integer |
| rejection_reason | string |
| tax_amount_cents | integer |
{
"name": "expense_create",
"description": "Logs a new expense — amount_cents must be integer CENTS (a decimal string via `amount` also works, and `category` resolves to a category_id by name). A same-amount, same-UTC-day duplicate for the same user is refused as CONFLICT unless you resend identically with force: true. Status is honor-or-refuse: admin/owner creators land 'approved' by default (or may request it explicitly), everyone else always starts 'draft'. NEXT: expense_submit sends a draft into the approval queue.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"cost": {
"type": "string",
"description": "Alias of amount — same decimal money STRING parsing."
},
"date": {
"type": "string",
"description": "YYYY-MM-DD (omitted = today)."
},
"force": {
"type": "boolean",
"description": "Resend an identical expense_create with force: true to save it despite a same-amount, same-UTC-day duplicate match; omitted or false leaves the duplicate check refusing with CONFLICT."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"total": {
"type": "string",
"description": "Alias of amount — same decimal money STRING parsing."
},
"amount": {
"type": "string",
"description": "Decimal money STRING (\"23.50\") — the platform converts; integer CENTS ($23.50 → 2350) via amount_cents is also accepted."
},
"status": {
"enum": [
"draft",
"pending",
"approved",
"rejected",
"reimbursed"
],
"type": "string"
},
"vendor": {
"type": "string",
"maxLength": 200
},
"category": {
"type": "string",
"description": "Category by name or slug, e.g. 'food'."
},
"currency": {
"type": "string",
"maxLength": 3
},
"ocr_json": {
"type": "string",
"maxLength": 8000
},
"tax_type": {
"enum": [
"GST",
"SST",
"VAT",
"PPN"
],
"type": "string"
},
"tags_json": {
"type": "string",
"maxLength": 2000
},
"approved_at": {
"type": "integer"
},
"approved_by": {
"type": "string",
"maxLength": 40
},
"category_id": {
"type": "string",
"maxLength": 40
},
"description": {
"type": "string",
"description": "Alias of notes — used only when notes is not also supplied."
},
"receipt_key": {
"type": "string",
"maxLength": 200
},
"rejected_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"expense_date": {
"type": "integer"
},
"submitted_at": {
"type": "integer"
},
"tax_rate_bps": {
"type": "integer"
},
"category_name": {
"type": "string",
"description": "Alias of category — resolves to category_id by name or slug."
},
"recurrence_id": {
"type": "string",
"maxLength": 40
},
"reimbursed_at": {
"type": "integer"
},
"subtotal_cents": {
"type": "integer"
},
"rejection_reason": {
"type": "string",
"maxLength": 500
},
"tax_amount_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| rejected_at | integer |
| amount_cents | integer |
| expense_date | integer |
| submitted_at | integer |
| tax_rate_bps | integer |
| recurrence_id | string |
| reimbursed_at | integer |
| subtotal_cents | integer |
| rejection_reason | string |
| tax_amount_cents | integer |
{
"name": "expense_submit",
"description": "Sends your own draft expense into the approval queue — draft only; an already-submitted or resolved expense refuses CONFLICT, and only the expense's own creator may submit it. Nobody is notified automatically — approvers see it appear in the Team Claims view. NEXT: expense_approve or expense_reject (admin/owner).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense id (expense_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"pending",
"approved",
"rejected",
"reimbursed"
],
"type": "string"
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"ocr_json": {
"type": "string",
"maxLength": 8000
},
"tax_type": {
"enum": [
"GST",
"SST",
"VAT",
"PPN"
],
"type": "string"
},
"tags_json": {
"type": "string",
"maxLength": 2000
},
"approved_at": {
"type": "integer"
},
"approved_by": {
"type": "string",
"maxLength": 40
},
"category_id": {
"type": "string",
"maxLength": 40
},
"receipt_key": {
"type": "string",
"maxLength": 200
},
"rejected_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"expense_date": {
"type": "integer"
},
"submitted_at": {
"type": "integer"
},
"tax_rate_bps": {
"type": "integer"
},
"recurrence_id": {
"type": "string",
"maxLength": 40
},
"reimbursed_at": {
"type": "integer"
},
"subtotal_cents": {
"type": "integer"
},
"rejection_reason": {
"type": "string",
"maxLength": 500
},
"tax_amount_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| string |
| rejected_at | integer |
| amount_cents | integer |
| expense_date | integer |
| submitted_at | integer |
| tax_rate_bps | integer |
| recurrence_id | string |
| reimbursed_at | integer |
| subtotal_cents | integer |
| rejection_reason | string |
| tax_amount_cents | integer |
{
"name": "expense_approve",
"description": "Approves a submitted expense claim — requires the admin or owner role, and only a 'pending' expense qualifies (CONFLICT otherwise). Stamps approved_by and approved_at with the caller and the current time; once approved, the row's content freezes for everyone except the approver themselves. NEXT: expense_reimburse (owner only) to pay it out.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense id (expense_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"pending",
"approved",
"rejected",
"reimbursed"
],
"type": "string"
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"ocr_json": {
"type": "string",
"maxLength": 8000
},
"tax_type": {
"enum": [
"GST",
"SST",
"VAT",
"PPN"
],
"type": "string"
},
"tags_json": {
"type": "string",
"maxLength": 2000
},
"approved_at": {
"type": "integer"
},
"approved_by": {
"type": "string",
"maxLength": 40
},
"category_id": {
"type": "string",
"maxLength": 40
},
"receipt_key": {
"type": "string",
"maxLength": 200
},
"rejected_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"expense_date": {
"type": "integer"
},
"submitted_at": {
"type": "integer"
},
"tax_rate_bps": {
"type": "integer"
},
"recurrence_id": {
"type": "string",
"maxLength": 40
},
"reimbursed_at": {
"type": "integer"
},
"subtotal_cents": {
"type": "integer"
},
"rejection_reason": {
"type": "string",
"maxLength": 500
},
"tax_amount_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "interaction_create",
"description": "Log an interaction — call, meeting, email, message, visit, payment, or other — against a contact. The ONE activity-logging door every lane funnels through, so the contact's last_contact_at freshness bumps no matter which surface logged the touch; the bump never moves backward, so importing older history can never regress a fresher touch. Accepts contact_name, contact_email or contact_phone in place of contact_id. NEXT: contact_read to see the bumped last_contact_at.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"summary": {
"type": "string",
"maxLength": 2000
},
"contact_id": {
"type": "string",
"maxLength": 40
},
"source_ref": {
"type": "string",
"maxLength": 80
},
"occurred_at": {
"type": "integer"
},
"contact_name": {
"type": "string",
"description": "No contact_id handy? Resolves the contact by exact name — a unique match wins; ambiguity refuses with the candidate ids."
},
"contact_email": {
"type": "string",
"description": "Resolves the contact by exact email when contact_id is absent."
},
"contact_phone": {
"type": "string",
"description": "Resolves the contact by exact phone when contact_id is absent."
},
"interaction_type": {
"enum": [
"meeting",
"call",
"email",
"message",
"visit",
"payment",
"other"
],
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| sent_at |
| integer |
| currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| due_date | integer |
| cash_sale | integer |
| client_id | string |
| source_id | string |
| issue_date | integer |
| line_items | array | Alias of items. |
| tax_scheme | string | sg_gst (Singapore GST) or my_sst (Malaysia SST): each line is taxed by its tax_code at the rate in force on the issue date. Under a scheme, a tax_rate_bps other than that rate, an unknown tax_code and a my_sst line without one are refused, naming the valid codes and the rate's source. "none" = no sc… |
| client_name | string | Client by NAME — resolves to an existing client or creates one (no client_id lookup needed). |
| source_type | string | one of ["quote","recurring","quick_sale"] |
| fx_rate_date | string | The date the fx rate is for, YYYY-MM-DD. Send with fx_rate_to_sgd. |
| tax_rate_bps | integer |
| payment_terms | string |
| ready_to_send | boolean | When the user wants to give the client the invoice (forward it, send it, get it ready): true issues it (status 'sent': it is owed from now and counts in receivables) and returns handoff, invoice_handoff's result: the client link, the PDF and the prepared message. Needs items. Nothing is sent: the us… |
| fx_rate_to_sgd | string | sg_gst invoices in a currency other than SGD: Singapore dollars per 1 unit of the invoice currency as a decimal string, up to 6 decimals ("1.3502"), from a source IRAS accepts (MAS, a local bank, Bloomberg, Reuters, Oanda) for the date of supply. Send with fx_rate_date. Or send fx_rate_to_sgd_ppm (1… |
| invoice_number | string |
| payment_method | string | one of ["cash","transfer","ewallet","other"] |
| fx_rate_to_sgd_ppm | integer |
| prices_include_tax | boolean | true = unit prices already include the tax (the tax is worked back out of each line). Default false. Needs a tax_scheme, except on a cash sale (cash_sale 1): its total is then the amount taken, with tax_rate_bps (or your default rate) worked out inside it, as the Quick Sale keypad records it. |
{
"name": "invoice_create",
"description": "ONE call creates the whole document: client_name + `items` [{description, quantity, unit_price}], each price as written (\"5000.00\"). It claims the next invoice number and writes every line; client_name finds or creates the client. A 'paid' birth needs items in the same call. tax_scheme sg_gst or my_sst taxes each line by its tax_code (refusals: see tax_scheme). When present, the second content block is the invoice as copy-ready text, shown with a Copy button where the host draws MCP Apps; if the user says they cannot see the invoice, give them that block word for word; share:true adds a client link, only when the user asks for one. NEXT: invoice_payment_record to record money-in.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"force": {
"type": "boolean",
"description": "Confirms a create whose notes or single line item read like a payment RECEIVED or a write-off rather than a new bill — resend the SAME call with force:true to create it anyway. No effect on quote_create (the intent trap is invoice-only)."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"unit": {
"type": "string"
},
"quantity": {
"type": "number"
},
"tax_code": {
"type": "string"
},
"unit_price": {
"type": "string"
},
"description": {
"type": "string"
},
"discount_bps": {
"type": "integer"
},
"unit_price_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"description": "ONE call creates the whole document — each line's unit_price is its price exactly as written, a decimal string (\"5000.00\" for $5,000), and the platform stores the cents itself; or send unit_price_cents in integer CENTS ($15.00 → 1500). quantity takes up to 3 decimals (1.5 hours → 1.5); unit is an optional label (hr, kg); discount_bps is an optional line discount (10% → 1000). tax_code is the line's tax under the document's tax_scheme (sg_gst: standard, zero_rated, exempt, out_of_scope, default standard; my_sst: sales_10, sales_5, service_8, service_6, exempt, required); refused without a tax_scheme."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"share": {
"type": "boolean",
"description": "Only when the user asks for a link: true also returns share_url (the client's link to view the invoice) and the full document in this same call. Where this environment has no public address, share_path and share_url_unavailable come back instead of share_url. Nothing is sent."
},
"status": {
"enum": [
"draft",
"sent",
"paid",
"cancelled"
],
"type": "string"
},
"paid_at": {
"type": "integer"
},
"sent_at": {
"type": "integer"
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"due_date": {
"type": "integer"
},
"cash_sale": {
"type": "integer"
},
"client_id": {
"type": "string",
"maxLength": 40
},
"source_id": {
"type": "string",
"maxLength": 40
},
"issue_date": {
"type": "integer"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"unit": {
"type": "string"
},
"quantity": {
"type": "number"
},
"tax_code": {
"type": "string"
},
"unit_price": {
"type": "string"
},
"description": {
"type": "string"
},
"discount_bps": {
"type": "integer"
},
"unit_price_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"description": "Alias of items."
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst",
"none"
],
"type": "string",
"description": "sg_gst (Singapore GST) or my_sst (Malaysia SST): each line is taxed by its tax_code at the rate in force on the issue date. Under a scheme, a tax_rate_bps other than that rate, an unknown tax_code and a my_sst line without one are refused, naming the valid codes and the rate's source. \"none\" = no scheme, priced by tax_rate_bps. Left out = your sales settings' tax_scheme."
},
"client_name": {
"type": "string",
"description": "Client by NAME — resolves to an existing client or creates one (no client_id lookup needed)."
},
"source_type": {
"enum": [
"quote",
"recurring",
"quick_sale"
],
"type": "string"
},
"fx_rate_date": {
"type": "string",
"description": "The date the fx rate is for, YYYY-MM-DD. Send with fx_rate_to_sgd."
},
"tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"payment_terms": {
"type": "string",
"maxLength": 500
},
"ready_to_send": {
"type": "boolean",
"description": "When the user wants to give the client the invoice (forward it, send it, get it ready): true issues it (status 'sent': it is owed from now and counts in receivables) and returns handoff, invoice_handoff's result: the client link, the PDF and the prepared message. Needs items. Nothing is sent: the user forwards it."
},
"fx_rate_to_sgd": {
"type": "string",
"description": "sg_gst invoices in a currency other than SGD: Singapore dollars per 1 unit of the invoice currency as a decimal string, up to 6 decimals (\"1.3502\"), from a source IRAS accepts (MAS, a local bank, Bloomberg, Reuters, Oanda) for the date of supply. Send with fx_rate_date. Or send fx_rate_to_sgd_ppm (1.3502 → 1350200)."
},
"invoice_number": {
"type": "string",
"maxLength": 40
},
"payment_method": {
"enum": [
"cash",
"transfer",
"ewallet",
"other"
],
"type": "string"
},
"fx_rate_to_sgd_ppm": {
"type": "integer",
"maximum": 1000000000,
"minimum": 1
},
"prices_include_tax": {
"type": "boolean",
"description": "true = unit prices already include the tax (the tax is worked back out of each line). Default false. Needs a tax_scheme, except on a cash sale (cash_sale 1): its total is then the amount taken, with tax_rate_bps (or your default rate) worked out inside it, as the Quick Sale keypad records it."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| credit_outcome | string | one of ["reduce_balance","refunded_outside"] |
| invoice_number | string | Alias of invoice_id — the invoice's own number (tenant-unique), resolved server-side. |
| adjustment_type | string | one of ["credit_note","write_off","discount_post_issue","dispute_settlement"] |
{
"name": "invoice_adjustment_record",
"description": "[REQUIRES APPROVAL] Records a credit note, write-off or post-issue discount on an issued invoice. A credit_note is numbered from the credit note series, holds its tax at the invoice's rate and takes reason_code and credit_outcome: reduce_balance (default) lowers what is owed; refunded_outside records a refund the business made outside Simpler, moves no money and is how a 'paid' invoice gets one. write_off and discount_post_issue need a 'sent' invoice. Money is integer CENTS (amount_cents) or a decimal STRING (amount); caps: see preconditions. Refuses a draft, a cancelled invoice, an amount over its cap and dispute_settlement; each refusal names the fix. An agent's call parks for approval. NEXT: invoice_read.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"amount": {
"type": "string",
"description": "Money as a decimal STRING (\"1500.00\" = $1,500.00), parsed server-side. Use amount_cents for integer CENTS instead — never convert units yourself."
},
"reason": {
"type": "string",
"maxLength": 500
},
"partial": {
"type": "boolean",
"description": "Confirms a deliberate PARTIAL write_off below the invoice's full remaining balance (checked only when adjustment_type is write_off) — resend the SAME call with partial:true; without it a below-remainder write_off refuses as a likely mis-carried amount."
},
"currency": {
"type": "string",
"maxLength": 3
},
"invoice_id": {
"type": "string",
"maxLength": 40
},
"occurred_at": {
"type": "integer"
},
"reason_code": {
"enum": [
"goods_returned",
"damaged_or_defective",
"pricing_error",
"discount",
"service_not_rendered",
"cancellation",
"other"
],
"type": "string",
"maxLength": 40
},
"amount_cents": {
"type": "integer"
},
"credit_outcome": {
"enum": [
"reduce_balance",
"refunded_outside"
],
"type": "string",
"maxLength": 20
},
"invoice_number": {
"type": "string",
"description": "Alias of invoice_id — the invoice's own number (tenant-unique), resolved server-side."
},
"adjustment_type": {
"enum": [
"credit_note",
"write_off",
"discount_post_issue",
"dispute_settlement"
],
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| allow_overpayment | boolean | Explicit override (default false): record more than the remaining balance / pay an already-settled invoice. |
{
"name": "invoice_payment_record",
"description": "Records a money-in fact row against an invoice (by invoice_id or its invoice_number) in ONE call: money is integer CENTS via amount_cents, or a decimal STRING via amount — never multiply or divide yourself. A draft invoice auto-advances to 'sent'; a cancelled invoice refuses; an amount above the remaining balance refuses unless allow_overpayment is true. status 'paid' derives from the ledger this writes, so this is how an invoice becomes paid. A same invoice/amount/day repeat refuses as a likely duplicate unless resent with force:true. NEXT: invoice_read to read it back.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"note": {
"type": "string",
"maxLength": 500
},
"force": {
"type": "boolean",
"description": "Confirms a genuine second payment when the same invoice/amount/day already has one recorded (default false refuses it as a likely duplicate) — resend the SAME call with force:true."
},
"amount": {
"type": "string",
"description": "Money as a decimal STRING (\"1500.00\" = $1,500.00), parsed server-side. Use amount_cents for integer CENTS instead — never convert units yourself."
},
"method": {
"enum": [
"cash",
"transfer",
"ewallet",
"other"
],
"type": "string"
},
"currency": {
"type": "string",
"maxLength": 3
},
"invoice_id": {
"type": "string",
"maxLength": 40
},
"occurred_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"invoice_number": {
"type": "string",
"description": "Alias of invoice_id — the invoice's own number (tenant-unique), resolved server-side."
},
"allow_overpayment": {
"type": "boolean",
"description": "Explicit override (default false): record more than the remaining balance / pay an already-settled invoice."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| array |
| Line items: [{description, quantity, unit_price_cents, tax_rate_bps?, tax_type?, classification_code?, unit_code?}]. Money is integer CENTS, tax_rate_bps is basis points (600 = 6%); tax_type/classification_code/unit_code default when omitted and validate against the LHDN code tables (GET /api/myinvo… |
| customer_id | string |
| total_cents | integer |
| invoice_data | string |
| invoice_type | string | one of ["01","02","03","04"] |
| lhdn_long_id | string |
| payment_terms | string | Payment terms text for this document; defaults to the supplier profile's default_payment_terms when omitted. |
| billing_period | object | Optional LHDN billing period {start_date, end_date, frequency?}: dates as YYYY-MM-DD, end on or after start, frequency up to 50 characters (for example Monthly). Leave it out when the invoice covers no period; the e-invoice then carries none. |
| invoice_number | string |
| subtotal_cents | integer |
| lhdn_submitted_at | integer |
| original_invoice_id | string | The type-01 original this note references — required for invoice_type 02, 03 or 04, refused for 01. Must already carry an LHDN UUID (myinvois_invoice_record_submission). |
| reference_invoice_id | string |
{
"name": "myinvois_invoice_generate",
"description": "Mint a sealed LHDN e-invoice in ONE call: invoice_type, line_items (unit_price_cents in integer CENTS, tax_rate_bps in basis points), and a buyer as customer_id or an inline buyer object. Refuses until myinvois_settings_save is done; invoice_type 02/03/04 also needs original_invoice_id naming a type-01 invoice with a recorded LHDN UUID, checked BEFORE the number is claimed, so a rejected note never burns a number. The result is immutable and carries portal_field_sheet; Simpler never submits it to LHDN. NEXT: the owner keys the field sheet into the MyInvois portal form, then myinvois_invoice_record_submission with the UUID the portal assigns.",
"inputSchema": {
"type": "object",
"required": [
"line_items"
],
"properties": {
"buyer": {
"type": "object",
"properties": {
"brn": {
"type": "string"
},
"tin": {
"type": "string"
},
"city": {
"type": "string"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"address": {
"type": "string"
},
"state_code": {
"type": "string"
},
"postal_code": {
"type": "string"
},
"country_code": {
"type": "string"
},
"contact_number": {
"type": "string"
}
},
"description": "Inline one-off buyer party — {name, tin, brn?, address?, city?, state_code?, postal_code?, country_code?, email?, contact_number?}. Required when customer_id is not given; ignored when it is.",
"additionalProperties": false
},
"notes": {
"type": "string",
"description": "Free-text notes printed on the generated e-invoice; optional."
},
"status": {
"enum": [
"generated",
"submitted"
],
"type": "string"
},
"currency": {
"type": "string",
"maxLength": 3
},
"buyer_tin": {
"type": "string",
"maxLength": 30
},
"lhdn_uuid": {
"type": "string",
"maxLength": 100
},
"tax_cents": {
"type": "integer"
},
"buyer_name": {
"type": "string",
"maxLength": 255
},
"issue_date": {
"type": "string",
"maxLength": 10
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"quantity": {
"type": "integer"
},
"tax_type": {
"type": "string"
},
"unit_code": {
"type": "string"
},
"description": {
"type": "string"
},
"tax_rate_bps": {
"type": "integer"
},
"unit_price_cents": {
"type": "integer"
},
"classification_code": {
"type": "string"
}
},
"additionalProperties": false
},
"description": "Line items: [{description, quantity, unit_price_cents, tax_rate_bps?, tax_type?, classification_code?, unit_code?}]. Money is integer CENTS, tax_rate_bps is basis points (600 = 6%); tax_type/classification_code/unit_code default when omitted and validate against the LHDN code tables (GET /api/myinvois/codes)."
},
"customer_id": {
"type": "string",
"maxLength": 40
},
"total_cents": {
"type": "integer"
},
"invoice_data": {
"type": "string",
"maxLength": 200000
},
"invoice_type": {
"enum": [
"01",
"02",
"03",
"04"
],
"type": "string"
},
"lhdn_long_id": {
"type": "string",
"maxLength": 200
},
"payment_terms": {
"type": "string",
"description": "Payment terms text for this document; defaults to the supplier profile's default_payment_terms when omitted."
},
"billing_period": {
"type": "object",
"properties": {
"end_date": {
"type": "string"
},
"frequency": {
"type": "string"
},
"start_date": {
"type": "string"
}
},
"description": "Optional LHDN billing period {start_date, end_date, frequency?}: dates as YYYY-MM-DD, end on or after start, frequency up to 50 characters (for example Monthly). Leave it out when the invoice covers no period; the e-invoice then carries none.",
"additionalProperties": false
},
"invoice_number": {
"type": "string",
"maxLength": 40
},
"subtotal_cents": {
"type": "integer"
},
"lhdn_submitted_at": {
"type": "integer"
},
"original_invoice_id": {
"type": "string",
"description": "The type-01 original this note references — required for invoice_type 02, 03 or 04, refused for 01. Must already carry an LHDN UUID (myinvois_invoice_record_submission)."
},
"reference_invoice_id": {
"type": "string",
"maxLength": 40
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| invoice_data |
| string |
| invoice_type | string | one of ["01","02","03","04"] |
| lhdn_long_id | string |
| invoice_number | string |
| subtotal_cents | integer |
| lhdn_submitted_at | integer |
| reference_invoice_id | string |
{
"name": "myinvois_invoice_record_submission",
"description": "Record the UUID the LHDN MyInvois portal assigned after the owner keyed this e-invoice into the portal (its form or LHDN's Excel batch template). Simpler never submits to LHDN and never calls the MyInvois API; this only stores the UUID the owner copies back. Only a type-01 original accepts a UUID: credit, debit and refund notes are refused (they link through BillingReference), so record the UUID on the original instead. Moves status generated to submitted; calling it again on a submitted invoice corrects a mistyped UUID. NEXT: myinvois_invoice_read to see the UUID attached.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_invoice id to record the LHDN UUID against (myinvois_invoice_list shows them)."
},
"status": {
"enum": [
"generated",
"submitted"
],
"type": "string"
},
"currency": {
"type": "string",
"maxLength": 3
},
"buyer_tin": {
"type": "string",
"maxLength": 30
},
"lhdn_uuid": {
"type": "string",
"maxLength": 100
},
"tax_cents": {
"type": "integer"
},
"buyer_name": {
"type": "string",
"maxLength": 255
},
"issue_date": {
"type": "string",
"maxLength": 10
},
"customer_id": {
"type": "string",
"maxLength": 40
},
"total_cents": {
"type": "integer"
},
"invoice_data": {
"type": "string",
"maxLength": 200000
},
"invoice_type": {
"enum": [
"01",
"02",
"03",
"04"
],
"type": "string"
},
"lhdn_long_id": {
"type": "string",
"maxLength": 200
},
"invoice_number": {
"type": "string",
"maxLength": 40
},
"subtotal_cents": {
"type": "integer"
},
"lhdn_submitted_at": {
"type": "integer"
},
"reference_invoice_id": {
"type": "string",
"maxLength": 40
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| line_items | array | Alias of items. |
| tax_scheme | string | sg_gst (Singapore GST) or my_sst (Malaysia SST): each line is taxed by its tax_code at the rate in force on the issue date. Under a scheme, a tax_rate_bps other than that rate, an unknown tax_code and a my_sst line without one are refused, naming the valid codes and the rate's source. "none" = no sc… |
| client_name | string | Client by NAME — resolves to an existing client or creates one (no client_id lookup needed). |
| valid_until | integer |
| quote_number | string |
| tax_rate_bps | integer |
| prices_include_tax | boolean | true = unit prices already include the tax (the tax is worked back out of each line). Default false. Needs a tax_scheme. |
| converted_invoice_id | string |
{
"name": "quote_create",
"description": "ONE call creates the whole document: client_name + `items` [{description, quantity, unit_price}], each price as written (\"5000.00\"). It claims the next atomic quote number and writes every line together; client_name finds or creates the client. tax_scheme sg_gst or my_sst taxes each line by its tax_code (refusals: see tax_scheme). When present, the second content block is the quote as copy-ready text, shown with a Copy button where the host draws MCP Apps; if the user says they cannot see the quote, give them that block word for word; make a client link with quote_share only when the user asks for one. NEXT: quote_convert to turn the quote into its invoice.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"force": {
"type": "boolean",
"description": "Confirms a create whose notes or single line item read like a payment RECEIVED or a write-off rather than a new bill — resend the SAME call with force:true to create it anyway. No effect on quote_create (the intent trap is invoice-only)."
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"unit": {
"type": "string"
},
"quantity": {
"type": "number"
},
"tax_code": {
"type": "string"
},
"unit_price": {
"type": "string"
},
"description": {
"type": "string"
},
"discount_bps": {
"type": "integer"
},
"unit_price_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"description": "ONE call creates the whole document — each line's unit_price is its price exactly as written, a decimal string (\"5000.00\" for $5,000), and the platform stores the cents itself; or send unit_price_cents in integer CENTS ($15.00 → 1500). quantity takes up to 3 decimals (1.5 hours → 1.5); unit is an optional label (hr, kg); discount_bps is an optional line discount (10% → 1000). tax_code is the line's tax under the document's tax_scheme (sg_gst: standard, zero_rated, exempt, out_of_scope, default standard; my_sst: sales_10, sales_5, service_8, service_6, exempt, required); refused without a tax_scheme."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"sent",
"accepted",
"declined",
"converted"
],
"type": "string"
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"client_id": {
"type": "string",
"maxLength": 40
},
"issue_date": {
"type": "integer"
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"unit": {
"type": "string"
},
"quantity": {
"type": "number"
},
"tax_code": {
"type": "string"
},
"unit_price": {
"type": "string"
},
"description": {
"type": "string"
},
"discount_bps": {
"type": "integer"
},
"unit_price_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"description": "Alias of items."
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst",
"none"
],
"type": "string",
"description": "sg_gst (Singapore GST) or my_sst (Malaysia SST): each line is taxed by its tax_code at the rate in force on the issue date. Under a scheme, a tax_rate_bps other than that rate, an unknown tax_code and a my_sst line without one are refused, naming the valid codes and the rate's source. \"none\" = no scheme, priced by tax_rate_bps. Left out = your sales settings' tax_scheme."
},
"client_name": {
"type": "string",
"description": "Client by NAME — resolves to an existing client or creates one (no client_id lookup needed)."
},
"valid_until": {
"type": "integer"
},
"quote_number": {
"type": "string",
"maxLength": 40
},
"tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"prices_include_tax": {
"type": "boolean",
"description": "true = unit prices already include the tax (the tax is worked back out of each line). Default false. Needs a tax_scheme."
},
"converted_invoice_id": {
"type": "string",
"maxLength": 40
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| string |
| tax_rate_bps | integer |
| prices_include_tax | integer |
| converted_invoice_id | string |
{
"name": "quote_convert",
"description": "Converts a quote into its invoice in ONE call: claims the quote's 'converted' status first (so a lost race never creates an orphan invoice), copies every live line item across, and records converted_invoice_id — nothing else to do afterward. Refuses if the quote is already converted (the error carries converted_invoice_id) or declined (revive it with quote_update first), and refuses with nothing converted when the quote or its lines changed while it was converting (for example a quote_item call running at the same time): read the quote again with quote_read, then convert. NEXT: invoice_read on the new invoice.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The quote id (quote_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"sent",
"accepted",
"declined",
"converted"
],
"type": "string"
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"quote_id": {
"type": "string",
"description": "Alias of id."
},
"client_id": {
"type": "string",
"maxLength": 40
},
"issue_date": {
"type": "integer"
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst"
],
"type": "string",
"maxLength": 10
},
"valid_until": {
"type": "integer"
},
"quote_number": {
"type": "string",
"maxLength": 40
},
"tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"prices_include_tax": {
"type": "integer",
"maximum": 1,
"minimum": 0
},
"converted_invoice_id": {
"type": "string",
"maxLength": 40
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| string |
| related_entity_type | string |
{
"name": "settlement_proposal_propose_cross_tenant",
"description": "Record a payment obligation against a KYB-verified partner tenant's settlement_proposals — the record-don't-move on-ramp: this writes the row only, no money moves until a later settlement-rails door executes it. amount_cents is a nonzero integer CENTS (positive = you owe them, negative = a refund/reversal record) and currency must be a 3-letter code. Requires the payee's cross_tenant_settlement consent grant and both sides KYB-approved; payee-side failures refuse identically to block probing, but your OWN unapproved KYB answers distinctly. Your tenant is injected as payer_tenant_id and cannot be spoofed. NEXT: settlement_proposal_accept moves it to accepted on the payee side.",
"inputSchema": {
"type": "object",
"required": [
"to_tenant_id"
],
"properties": {
"status": {
"enum": [
"proposed",
"accepted",
"settled"
],
"type": "string"
},
"currency": {
"type": "string",
"maxLength": 3
},
"accepted_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 1000
},
"amount_cents": {
"type": "integer"
},
"to_tenant_id": {
"type": "string",
"description": "The payee tenant id — must be another tenant, never your own. The payee must hold an active cross_tenant_settlement consent grant and both tenants must be KYB-approved, or the door refuses uniformly without revealing which condition failed."
},
"payer_tenant_id": {
"type": "string",
"maxLength": 40
},
"consent_grant_id": {
"type": "string",
"maxLength": 40
},
"related_entity_id": {
"type": "string",
"maxLength": 40
},
"related_entity_type": {
"type": "string",
"maxLength": 60
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| item_name | string | Alias of name. |
| expiry_date | string |
| occurred_at | string | When the stock ACTUALLY moved (business time): "YYYY-MM-DD" or epoch milliseconds. Omitted = now. Backdated deliveries stay distinguishable from entry time. |
| sell_price_cents | integer |
| cost_per_unit_cents | integer |
| low_stock_threshold | integer |
{
"name": "stock_item_adjust",
"description": "Move stock in or out by id or item name, in one atomic write with its movements-ledger row: stock-out clamps at zero (never negative) and applied_quantity reports what actually moved. An unmatched name CREATES the item at quantity 0 first so the delivery still lands as an audited ledger row; a name matching multiple active items refuses with the candidate ids. Concurrent adjusts on the same item retry instead of losing a write. NEXT: stock_item_list to see the item's updated balance in the full inventory.",
"inputSchema": {
"type": "object",
"required": [
"type",
"quantity"
],
"properties": {
"id": {
"type": "string",
"description": "The stock item id."
},
"name": {
"type": "string",
"description": "No id? Resolve-or-create by item name: a unique active match resolves; an unknown name CREATES the item at quantity 0 and the adjustment lands as its first ledger row."
},
"type": {
"type": "string",
"description": "\"in\" | \"out\" — also accepts received/delivery/restock (→ in) and sold/used (→ out)."
},
"unit": {
"type": "string",
"maxLength": 50
},
"notes": {
"type": "string",
"description": "Free-form note recorded on the movements-ledger row."
},
"reason": {
"type": "string",
"description": "Why the stock moved — recorded on the movements-ledger row."
},
"category": {
"type": "string",
"maxLength": 100
},
"quantity": {
"type": "integer",
"description": "Whole units — count whole units: 24 bags → 24 (the digit string \"24\" also works)."
},
"is_active": {
"type": "integer"
},
"item_name": {
"type": "string",
"description": "Alias of name."
},
"expiry_date": {
"type": "string",
"maxLength": 30
},
"occurred_at": {
"type": "string",
"description": "When the stock ACTUALLY moved (business time): \"YYYY-MM-DD\" or epoch milliseconds. Omitted = now. Backdated deliveries stay distinguishable from entry time."
},
"sell_price_cents": {
"type": "integer"
},
"cost_per_unit_cents": {
"type": "integer"
},
"low_stock_threshold": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| accepted_at |
| integer |
| artifact_id | string |
| assigned_to | string |
| declined_at | integer |
| description | string |
| photos_json | string |
| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_create",
"description": "[REQUIRES APPROVAL] Delegates a task to a teammate (or yourself) as a new team_assignment; status is workflow-owned and always starts 'pending' — passing status yourself fails validation instead of being silently overridden. Accepts natural language for the common fields: task_name/task for title, due_date/due for due_at ('YYYY-MM-DD', epoch millis, 'today', 'tomorrow', or 'next <weekday>'), and 'self'/'me'/'yourself' for assigned_to. assigned_to must already be a member of your tenant. NEXT: team_assignment_accept, then _start and _complete, drive the lifecycle from there.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"due": {
"type": "string",
"description": "Alias of due_at (same accepted forms as due_date)."
},
"task": {
"type": "string",
"description": "Alias of title (same as task_name)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"due_date": {
"type": "string",
"description": "Alias of due_at — \"YYYY-MM-DD\", \"today\", \"tomorrow\", or \"next <weekday>\" (epoch milliseconds also works — pass it via due_at directly instead)."
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"task_name": {
"type": "string",
"description": "Alias of title — the task's name in plain language."
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "workflow_prepared_outputs",
"description": "List this tenant's APPROVED prepared outputs: drafts a workflow's prepare_output nodes parked for review, which a human then approved in the platform inbox. Pending and rejected drafts never appear here — approval happens only in the inbox, never through this call. Optional limit 1-100 (default 50), newest-decided first. This is the platform-prepares-never-sends handoff: the desktop harness pulls approved drafts here and sends them locally.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string",
"maxLength": 120
},
"limit": {
"type": "integer",
"description": "Max rows to return, 1-100 (default 50). Out-of-range or non-integer values fall back to 50."
},
"is_active": {
"type": "integer"
},
"role_name": {
"type": "string",
"maxLength": 60
},
"description": {
"type": "string",
"maxLength": 500
},
"next_run_at": {
"type": "integer"
},
"trigger_type": {
"enum": [
"manual",
"webhook",
"schedule"
],
"type": "string"
},
"imported_from": {
"type": "string",
"maxLength": 40
},
"definition_json": {
"type": "string",
"maxLength": 40000
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "sales_document_show",
"description": "Show one invoice, quote or receipt as the document itself. When the result has a second content block, it is the document as copy-ready plain text (title, business, billed to, dates, one line per item, the totals as printed, notes, payment terms and details, or on a receipt the day paid and the method) to paste into an email or a chat, and hosts that draw MCP Apps show the page with a Copy button. A paid invoice shows as its receipt, and each payment has its own numbered receipt (the receipt_number invoice_payment_record answers, for example RCT-2026-001), shown by that number or the payment id. Pass id or number (exactly one, from invoice_list, quote_list or invoice_payment_list); kind 'invoice', 'quote' or 'receipt' is optional (else invoice first, then quote, then receipt). It sends nothing and makes no link. Refusals: unknown id or number NOT_FOUND (a removed payment's receipt: reason_code SIMPLER_SALES_RECEIPT_VOID); a missing or doubled id/number or another argument VALIDATION_ERROR; kind 'receipt' before receipts are set up SERVICE_UNAVAILABLE SIMPLER_SALES_RECEIPT_UNMIGRATED; stylesheet unreadable SERVICE_UNAVAILABLE SIMPLER_SALES_DOCUMENT_CHAT_ASSETS_UNAVAILABLE (retry_after); not read within 3 seconds SERVICE_UNAVAILABLE SIMPLER_SALES_DOCUMENT_SHOW_SLOW (call again after retry_after). Read-only tokens and viewers may call it. Free.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"id": {
"type": "string",
"maxLength": 64,
"description": "The invoice's or quote's id (invoice_list, quote_list or the create result), or a payment's id for its receipt (invoice_payment_list)."
},
"kind": {
"enum": [
"invoice",
"quote",
"receipt"
],
"type": "string",
"description": "'invoice', 'quote' or 'receipt' (one payment's numbered receipt). Leave out to try invoice, then quote, then receipt."
},
"number": {
"type": "string",
"maxLength": 64,
"description": "The document's number as printed, for example 'INV-2026-016' or a receipt's 'RCT-2026-001'. Send id or number, not both."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}{
"name": "statement_prepare",
"description": "A client's statement of account over a period of the business's own days (the sales_settings time zone): the balance they owed before it (opening), each invoice issued, payment received, credit and write-off in it with a running balance, the balance at its end (closing), and what was still owed at its end aged current / 1-30 / 31-60 / 61-90 / over 90 days past due, counted as sales_receivables counts. Only issued invoices count: drafts and cancelled invoices never do. Money is integer CENTS in each invoice's own currency, one section per currency, never converted or added across currencies; read the figures as given. It prepares nothing and sends nothing: returns the figures, document_path (the print-ready page, while signed in) and pdf_next_call (the statement_pdf call that makes the PDF). A statement with more than 150 rows lists its first rows, whole business days only, and lines_cut says which and gives the next_call that lists the rest; the balances, totals and ageing always cover the whole period. When the result has a second content block, it is the statement as copy-ready text (a very long one shortened), and hosts that draw MCP Apps show the statement with a Copy button, as plain text when it is too long to draw as a document. Refusals: a client_id that is not one of your clients is NOT_FOUND (find it with invoice_client_search or invoice_client_list); a date not written YYYY-MM-DD, a to after today, a from after to, or a period longer than 366 days is VALIDATION_ERROR naming the field; a client with more than 2000 issued invoices is PAYLOAD_TOO_LARGE SIMPLER_SALES_STATEMENT_TOO_LARGE (sales_receivables still ages them). Free.",
"inputSchema": {
"type": "object",
"required": [
"client_id"
],
"properties": {
"to": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Last day of the period, YYYY-MM-DD in the business's time zone, today at the latest. Default: today."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "First day of the period, YYYY-MM-DD in the business's time zone. Default: the first day of the month of to."
},
"client_id": {
"type": "string",
"maxLength": 64,
"description": "The client's id, from invoice_client_search (by name) or invoice_client_list."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}| Parameter | Type | Description |
|---|---|---|
| cash_on | string | Optional, with any of open_receivables, paid_history, open_payables or recurring: a date YYYY-MM-DD inside the 13 weeks; needs cash_balance and cash_as_of within 31 days. The answer adds that day's end-of-day balance. |
| drivers | array | Optional: at most 20 what-if drivers, applied to the same simulated paths as the base. |
| currency | string | The currency of every amount sent, one of 16 codes. Leave it out for USD; the output then says currency_assumed: true. |
| recurring | array | Optional: repeating money, at most 100 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). direction out leaves on each date; direction in falls due on each date and is paid on the receipt-timing curve, like a receivable. |
| cash_as_of | string | Optional: the date of cash_balance as YYYY-MM-DD, within the last 45 days. Send it with cash_balance. |
| monthlyData * | array | 2-120 monthly rows, oldest first: { date: 'YYYY-MM', revenue, costs, customers? }. revenue and costs are amounts in currency (major units, default USD): 1500 or "1500.00" - never cents. |
| cash_balance | number | Optional: the bank balance on cash_as_of in currency (major units, negative for an overdraft). Send it with cash_as_of. |
| paid_history | array | Optional: invoices already paid, at most 5,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). The receipt-timing curve learns from the days between due_date and paid_at; with no paid history at all the labelled prior times every receivable (source 'prior'). |
| cash_currency | string | Optional: the currency of cash_balance when it is not currency. Send it with cash_balance and cash_as_of. |
| open_payables | array | Optional: bills you owe, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on its due date (one already due is paid on the first modelled day). |
| declared_totals | object | Optional: the revenue and costs totals your own source shows for the months sent, in currency. A total more than 0.5% away from the months' sum refuses with SIMPLER_FORECAST_GRID_TOTALS_MISMATCH. |
| open_receivables | array | Optional: invoices your own accounting system shows unpaid, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on the receipt-timing curve from its due date. |
{
"name": "forecast.run",
"description": "WHAT-IF / scenario lane: runs monthly data YOU supply through a seeded 5,000-path simulation of monthly revenue and costs; bands are simulation outputs, not calibrated probabilities. The paths are clustered into 3-7 outcome bands for the next 6 months, with per-month revenue and cost percentiles and deathRisk, the share of paths the engine marks closed (a distress signal, not a cash-out date). Amounts are in currency (major units, default USD): 1500 or \"1500.00\" - never cents. currency is one of 16 codes (USD, EUR, GBP, JPY, CNY, AUD, HKD, INR, SGD, MYR, IDR, THB, PHP, VND, BND, MMK); leave it out and USD is assumed, and the output says currency_assumed: true. The engine runs in USD; every output figure converts back into currency at fx_rate_to_usd (USD per 1 unit), named in the top-level currency field. Send cash_balance (the bank balance, negative for an overdraft) with cash_as_of (its date, YYYY-MM-DD, within 45 days) and the cash block adds runway, cash-out share, lowest balance and health from that balance plus each path's revenue minus costs (balance_source 'request'); without them it carries net-flow figures only and its next_step says what to send. Send declared_totals {revenue, costs}, the totals your own source shows for the months sent, and the sums are checked on the server; totals_check echoes them. history_months, shallow (true under 5 months) and blend {yours_pct, peers_pct} (null when shallow) say how much of the result is your own history. Earlier releases removed the per-band cash range and the per-month cash percentiles (they started from an invented balance) and interpreted_money.unit (the top-level currency field replaces it). Refuses with VALIDATION_ERROR and a fix per field: fewer than 2 or more than 120 rows, a date that is not YYYY-MM, revenue or costs sent in cents or as text that is not a number (an exponent such as 1e5, letters other than one currency code or symbol, or a comma that does not group thousands), an amount whose code or symbol names another currency than the one it is read in (currency; cash_balance is read in cash_currency when sent: send that currency, or the amount in it; never converted), no month with revenue, or a currency outside the list; SIMPLER_FORECAST_CASH_WITHOUT_DATE when cash_balance comes without cash_as_of (send both); SIMPLER_FORECAST_CASH_AS_OF_INVALID when cash_as_of is not a real YYYY-MM-DD date or comes without cash_balance; SIMPLER_FORECAST_GRID_TOTALS_MISMATCH when a declared total and the months' sum are more than 0.5% apart (correct the months or the total and resend). Refuses with SERVICE_UNAVAILABLE SIMPLER_FORECAST_FX_UNAVAILABLE when no rate for a non-USD currency is available: retry shortly, or pass USD amounts. Send drivers (at most 20) to ask what if: each is {kind, start, end?, amount?, pct?}, kind one of revenue_pct, cost_pct, revenue_step, cost_step, hire, one_off_in, one_off_out, lose_customer, loan_drawdown, loan_repayment, festive_month. start and end are YYYY-MM (the whole month) or YYYY-MM-DD (that day); revenue_pct, cost_pct, lose_customer and festive_month take months only; start must fall inside the forecast months, and end may be left out to run to the last one. amount is in currency (major units): per month for revenue_step and cost_step (negative for a cut), hire (the full monthly cost), loan_repayment and lose_customer (that customer's average monthly receipts; forecast.run reads no records, so customer_ref is refused here), and the whole sum for one_off_in, one_off_out and loan_drawdown, which hit one month or one day and take no end. In text, commas only group thousands (\"4,000.00\"); a currency code or symbol may lead or follow (\"SGD 4,000\") only when it is the currency the amount is read in, and one naming another currency is refused, never converted; no exponent or other letters. The same applies to every amount this tool takes. pct is -100 to 500, not zero, for revenue_pct, cost_pct and festive_month (a revenue_pct on one month you pi",
"inputSchema": {
"type": "object",
"required": [
"monthlyData"
],
"properties": {
"cash_on": {
"type": "string",
"description": "Optional, with any of open_receivables, paid_history, open_payables or recurring: a date YYYY-MM-DD inside the 13 weeks; needs cash_balance and cash_as_of within 31 days. The answer adds that day's end-of-day balance."
},
"drivers": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind",
"start"
],
"properties": {
"end": {
"type": "string",
"description": "Optional last month or day; leave it out to run to the end of the forecast."
},
"pct": {
"type": "number",
"description": "Percent change, -100 to 500: 10 for +10%."
},
"kind": {
"enum": [
"revenue_pct",
"cost_pct",
"revenue_step",
"cost_step",
"hire",
"one_off_in",
"one_off_out",
"lose_customer",
"loan_drawdown",
"loan_repayment",
"festive_month"
],
"type": "string"
},
"start": {
"type": "string",
"description": "YYYY-MM (the whole month) or YYYY-MM-DD (that day)."
},
"amount": {
"type": "number",
"description": "Major units of the forecast currency: 4000 means 4,000 - never cents."
}
},
"additionalProperties": false
},
"description": "Optional: at most 20 what-if drivers, applied to the same simulated paths as the base."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "The currency of every amount sent, one of 16 codes. Leave it out for USD; the output then says currency_assumed: true."
},
"recurring": {
"type": "array",
"items": {
"type": "object",
"required": [
"direction",
"amount",
"cadence",
"next_date"
],
"properties": {
"amount": {
"type": "number",
"description": "Each occurrence's amount in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"cadence": {
"enum": [
"weekly",
"monthly",
"quarterly"
],
"type": "string",
"description": "How often it repeats; monthly and quarterly keep next_date's day of the month."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "Optional: the row's currency; leave it out for currency (USD when currency is left out)."
},
"direction": {
"enum": [
"in",
"out"
],
"type": "string",
"description": "in (money you receive) or out (money you pay)."
},
"next_date": {
"type": "string",
"description": "The next date it falls due, from this week's Monday on, YYYY-MM-DD."
}
},
"additionalProperties": false
},
"description": "Optional: repeating money, at most 100 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). direction out leaves on each date; direction in falls due on each date and is paid on the receipt-timing curve, like a receivable."
},
"cash_as_of": {
"type": "string",
"description": "Optional: the date of cash_balance as YYYY-MM-DD, within the last 45 days. Send it with cash_balance."
},
"monthlyData": {
"type": "array",
"items": {
"type": "object",
"required": [
"date",
"revenue",
"costs"
],
"properties": {
"date": {
"type": "string"
},
"costs": {
"type": "number"
},
"revenue": {
"type": "number"
},
"customers": {
"type": "number"
}
},
"additionalProperties": false
},
"description": "2-120 monthly rows, oldest first: { date: 'YYYY-MM', revenue, costs, customers? }. revenue and costs are amounts in currency (major units, default USD): 1500 or \"1500.00\" - never cents."
},
"cash_balance": {
"type": "number",
"description": "Optional: the bank balance on cash_as_of in currency (major units, negative for an overdraft). Send it with cash_as_of."
},
"paid_history": {
"type": "array",
"items": {
"type": "object",
"required": [
"due_date",
"paid_at"
],
"properties": {
"amount": {
"type": "number",
"description": "Optional: the amount paid in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"paid_at": {
"type": "string",
"description": "The day it was paid, not after today, YYYY-MM-DD."
},
"due_date": {
"type": "string",
"description": "The due date, YYYY-MM-DD."
},
"client_ref": {
"type": "string",
"description": "Optional: your own id for the customer, at most 60 characters. It only groups and labels rows; nothing is looked up."
}
},
"additionalProperties": false
},
"description": "Optional: invoices already paid, at most 5,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). The receipt-timing curve learns from the days between due_date and paid_at; with no paid history at all the labelled prior times every receivable (source 'prior')."
},
"cash_currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "Optional: the currency of cash_balance when it is not currency. Send it with cash_balance and cash_as_of."
},
"open_payables": {
"type": "array",
"items": {
"type": "object",
"required": [
"due_date",
"amount"
],
"properties": {
"amount": {
"type": "number",
"description": "The amount owed in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "Optional: the row's currency; leave it out for currency (USD when currency is left out)."
},
"due_date": {
"type": "string",
"description": "The due date, YYYY-MM-DD."
},
"vendor_ref": {
"type": "string",
"description": "Optional: your own id for the supplier, at most 60 characters. It only groups and labels rows; nothing is looked up."
}
},
"additionalProperties": false
},
"description": "Optional: bills you owe, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on its due date (one already due is paid on the first modelled day)."
},
"declared_totals": {
"type": "object",
"required": [],
"properties": {
"costs": {
"type": "number"
},
"revenue": {
"type": "number"
}
},
"description": "Optional: the revenue and costs totals your own source shows for the months sent, in currency. A total more than 0.5% away from the months' sum refuses with SIMPLER_FORECAST_GRID_TOTALS_MISMATCH.",
"additionalProperties": false
},
"open_receivables": {
"type": "array",
"items": {
"type": "object",
"required": [
"due_date",
"amount"
],
"properties": {
"amount": {
"type": "number",
"description": "The amount still unpaid in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "Optional: the row's currency; leave it out for currency (USD when currency is left out)."
},
"due_date": {
"type": "string",
"description": "The due date, YYYY-MM-DD."
},
"issued_at": {
"type": "string",
"description": "Optional: the invoice date, on or before due_date and not after today, YYYY-MM-DD."
},
"client_ref": {
"type": "string",
"description": "Optional: your own id for the customer, at most 60 characters. It only groups and labels rows; nothing is looked up."
}
},
"additionalProperties": false
},
"description": "Optional: invoices your own accounting system shows unpaid, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on the receipt-timing curve from its due date."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}| Parameter | Type | Description |
|---|---|---|
| cash_as_of | string | The date of cash_balance as YYYY-MM-DD. |
| cash_balance | number | Optional: the bank balance on cash_as_of in cash_currency (major units, negative for an overdraft). Send cash_balance, cash_currency and cash_as_of together; owner or admin only. Refused with SIMPLER_FORECAST_CASH_MULTI_ACCOUNT_REFUSED when more than one bank account is saved: update those on the Fo… |
| cash_currency | string | The currency of cash_balance. |
{
"name": "forecast.run_stored",
"description": "Run the tenant's REAL forecast from the books — cash receipts (recorded invoice payments by payment date, plus paid invoices with no recorded payment at their paid date, flagged) and expenses by expense date, monthly in the tenant's base currency, up to the last complete month (the current month is left out; months are the business's calendar months in its own time zone, set in sales settings, Asia/Singapore when unset, and the books block names it in bucket_timezone) and at most 36 months — through the one import pipeline. The result is STORED, replacing the forecast every member reads, so it is owner or admin only: any other role is refused with FORBIDDEN SIMPLER_FORECAST_IMPORT_ROLE_REFUSED before anything is read, saved, run or charged (ask an owner or admin to run it; forecast.read reads the forecast already stored). No arguments are needed. Optional cash_balance (the bank balance in cash_currency, negative for an overdraft), cash_currency (one of 16 codes) and cash_as_of (its date, YYYY-MM-DD) go together: they are saved as the workspace's declared bank balance, replacing the balance entered before, and then the forecast runs and starts its cash block from that balance. When more than one bank account is saved on the Forecast page, it refuses with CONFLICT SIMPLER_FORECAST_CASH_MULTI_ACCOUNT_REFUSED before anything is saved or run, because one balance would replace them all: ask the owner or an admin to update the balances on the Forecast page, or call without the three cash fields to run from the saved balances. It refuses with SERVICE_UNAVAILABLE SIMPLER_FORECAST_SETTINGS_READ_FAIL when the saved balances cannot be read (retry in a minute). The cash fields refuse like forecast.run's (SIMPLER_FORECAST_CASH_WITHOUT_DATE, SIMPLER_FORECAST_CASH_AS_OF_INVALID, VALIDATION_ERROR naming cash_currency when it is missing or outside the list, or cash_balance when its code or symbol names another currency than cash_currency, before anything is saved) and with SERVICE_UNAVAILABLE SIMPLER_FORECAST_FX_UNAVAILABLE when no rate for cash_currency is available (retry shortly, or send the balance in USD). A refusal after the balance was saved carries cash_balance_saved: true. Cost: no metered model cost. Returns the first-3-months outlook and the cash block (as forecast.read describes it) with money formatted in the business's currency, named in the top-level currency field: the engine runs in USD and figures convert back at the rate pinned on the stored result (fx_rate_to_usd); before this release they were USD. Verify with forecast.read before reporting done. Outlook rows carry distress_risk_pct, the share of paths the engine marks closed by that month (renamed this release from the old death-risk column); they no longer carry a cash median, which started from an invented balance. Runway and cash-out come only from forecast.read's cash block. Refuses with RATE_LIMITED after 5 runs an hour and with 402 when the workspace credit cannot cover the cost: when a forecast is already stored the error names forecast.read, so read that instead. The books block in the result names the base currency, gap months, converted amounts and any paid invoices counted without a recorded payment. Refuses with BAD_REQUEST: SIMPLER_FORECAST_LEDGER_TOO_SHORT when the books have fewer than 2 complete months of receipts or spend, SIMPLER_FORECAST_LEDGER_GAPS when 2 or more of the last 6 complete months have no receipts and no spend, and SIMPLER_FORECAST_LEDGER_NO_RECEIPTS when the books carry no receipts or the last complete month has none. Fix: Record payments against your invoices (invoice_payment_record) and log expenses so each month has activity, or upload a spreadsheet on the Forecast page instead. Then run again. To check first without spending a run, call forecast.read: its summary and its no-forecast error carry readiness with the same refusal_code.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"cash_as_of": {
"type": "string",
"description": "The date of cash_balance as YYYY-MM-DD."
},
"cash_balance": {
"type": "number",
"description": "Optional: the bank balance on cash_as_of in cash_currency (major units, negative for an overdraft). Send cash_balance, cash_currency and cash_as_of together; owner or admin only. Refused with SIMPLER_FORECAST_CASH_MULTI_ACCOUNT_REFUSED when more than one bank account is saved: update those on the Forecast page."
},
"cash_currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "The currency of cash_balance."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| Parameter | Type | Description |
|---|---|---|
| view | string | One of summary, monthly, variance, scenarios, weekly; leave it out for summary. |
| cash_on | string | View weekly only: a date YYYY-MM-DD inside the 13 weeks; the answer adds that day's end-of-day balance. |
| drivers | array | Optional, views scenarios and weekly only: at most 20 drivers in each of up to 3 sets, one flat list; weekly takes one set (no set field). |
| recurring | array | Optional, view weekly only, joined with the books' own for this answer: repeating money, at most 100 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). direction out leaves on each date; direction in falls due on each date and is paid on the receipt-timing curve, like a receivable. |
| paid_history | array | Optional, view weekly only, joined with the books' own for this answer: invoices already paid, at most 5,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). The receipt-timing curve learns from the days between due_date and paid_at; with no paid history at all the labelled prior tim… |
| open_payables | array | Optional, view weekly only, joined with the books' own for this answer: bills you owe, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on its due date (one already due is paid on the first modelled day). |
| open_receivables | array | Optional, view weekly only, joined with the books' own for this answer: invoices your own accounting system shows unpaid, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on the receipt-timing curve from its due date. |
{
"name": "forecast.read",
"description": "Read the tenant's STORED forecast — the verify-read for this rail. view picks the answer, one of summary, monthly, variance, scenarios, weekly (default summary). summary: the outcome bands (label, growth_direction, probability_pct, final_month_revenue_low and _high, distress_risk_pct, path_count), the cash block, blend {yours_pct, peers_pct} (the share of the result from this business's own history versus businesses like it; null when shallow). monthly: per month revenue, costs and net at p10, p25, p50, p75 and p90 with distress_risk_pct, plus balance_p10 to balance_p90 and below_zero_cum_pct when a balance anchors the cash block, and the cash block. This release moved monthlyForecast out of the default answer into view 'monthly'. Every view carries view, dataMonths, history_months, shallow (true under 5 months of history) and CFO narration status, money formatted in the business's currency, named in the top-level currency field: the engine runs in USD and figures convert back at the rate pinned on the stored result (fx_rate_to_usd); before this release they were USD. Free. Refuses with VALIDATION_ERROR naming view when it is not in the list. The cash block is computed from a real bank balance plus each simulated path's revenue minus costs: with basis 'anchored' it carries provenance (the balance grade), balance_source ('statement': the latest balance on bank statements imported with banking.import_statement, used while under 31 days old in place of a typed balance for the same account; a typed account whose label ends in other last 4 digits, or the same digits in another currency, and dated on or after the statement, is added to it and provenance is then declared (an older one is left out: save it again with today's date); 'settings': entered on the Forecast page or saved by forecast.run_stored; 'upload_row': the cash row of an uploaded sheet), balance_as_of, runway_months_p10 and _p50 (null = no cash-out within the horizon), cash_out_pct, lowest_balance_p10, burn_rate_p50_per_month, cost_cut_to_survive_pct and health. With no balance dated within 45 days before the day the forecast was computed and before its first month, basis is 'unanchored': runway, cash-out and health are null, net-flow figures remain, and unavailable_reason plus next_step say how the owner adds today's balance. unavailable_reason 'forecast_out_of_date' means the forecast's months end before today or before the balance on record, so today's balance cannot start it: rebuild from recent months first (forecast.run_stored, or an upload on the Forecast page), as its next_step says. This release replaced the old cashFlow block (its runway started from an invented balance), removed the monthly cash median and renamed the monthly death-risk column to distress_risk_pct. The summary view also carries readiness, whether the books are ready for forecast.run_stored without running it: ready, months, first_period, last_period, min_months, gap_months, recent_gap_months, gap_window_months, months_with_receipts, refusal_code (null when ready, else SIMPLER_FORECAST_LEDGER_TOO_SHORT, SIMPLER_FORECAST_LEDGER_GAPS or SIMPLER_FORECAST_LEDGER_NO_RECEIPTS), message, next_step, base_currency, base_currency_source, legacy_paid_without_payments, fx_unconverted_currencies, bucket_timezone and excluded_period; when the books cannot be read just now readiness is null and readiness_unavailable {code SIMPLER_FORECAST_LEDGER_READ_FAIL, message, next_step} says to retry, and the forecast still returns. variance: the track record, earlier saved forecasts against what happened, worked out on each read and never stored. variance.rows has one row per month with both an actual and an earlier forecast: month, horizon_months (1 = the forecast whose data ended the month before), forecast_made_on, actual, p10, p50, p90, inside_80 (the actual landed between p10 and p90), error_pct ((actual - p50) / p50 x 100, null when p50 is not above zero) and fx_pinned (false = converted at today's rate because",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"view": {
"enum": [
"summary",
"monthly",
"variance",
"scenarios",
"weekly"
],
"type": "string",
"description": "One of summary, monthly, variance, scenarios, weekly; leave it out for summary."
},
"cash_on": {
"type": "string",
"description": "View weekly only: a date YYYY-MM-DD inside the 13 weeks; the answer adds that day's end-of-day balance."
},
"drivers": {
"type": "array",
"items": {
"type": "object",
"required": [
"kind",
"start"
],
"properties": {
"end": {
"type": "string",
"description": "Optional last month or day; leave it out to run to the end of the forecast."
},
"pct": {
"type": "number",
"description": "Percent change, -100 to 500: 10 for +10%."
},
"set": {
"type": "integer",
"description": "Which compared set, 1 to 3; default 1."
},
"kind": {
"enum": [
"revenue_pct",
"cost_pct",
"revenue_step",
"cost_step",
"hire",
"one_off_in",
"one_off_out",
"lose_customer",
"loan_drawdown",
"loan_repayment",
"festive_month"
],
"type": "string"
},
"start": {
"type": "string",
"description": "YYYY-MM (the whole month) or YYYY-MM-DD (that day)."
},
"amount": {
"type": "number",
"description": "Major units of the forecast currency: 4000 means 4,000 - never cents."
},
"customer_ref": {
"type": "string",
"description": "lose_customer: an invoice client id from invoice_client_list, in place of amount."
}
},
"additionalProperties": false
},
"description": "Optional, views scenarios and weekly only: at most 20 drivers in each of up to 3 sets, one flat list; weekly takes one set (no set field)."
},
"recurring": {
"type": "array",
"items": {
"type": "object",
"required": [
"direction",
"amount",
"cadence",
"next_date"
],
"properties": {
"amount": {
"type": "number",
"description": "Each occurrence's amount in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"cadence": {
"enum": [
"weekly",
"monthly",
"quarterly"
],
"type": "string",
"description": "How often it repeats; monthly and quarterly keep next_date's day of the month."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "Optional: the row's currency; leave it out for the books' currency (weekly.currency)."
},
"direction": {
"enum": [
"in",
"out"
],
"type": "string",
"description": "in (money you receive) or out (money you pay)."
},
"next_date": {
"type": "string",
"description": "The next date it falls due, from this week's Monday on, YYYY-MM-DD."
}
},
"additionalProperties": false
},
"description": "Optional, view weekly only, joined with the books' own for this answer: repeating money, at most 100 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). direction out leaves on each date; direction in falls due on each date and is paid on the receipt-timing curve, like a receivable."
},
"paid_history": {
"type": "array",
"items": {
"type": "object",
"required": [
"due_date",
"paid_at"
],
"properties": {
"amount": {
"type": "number",
"description": "Optional: the amount paid in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"paid_at": {
"type": "string",
"description": "The day it was paid, not after today, YYYY-MM-DD."
},
"due_date": {
"type": "string",
"description": "The due date, YYYY-MM-DD."
},
"client_ref": {
"type": "string",
"description": "Optional: your own id for the customer, at most 60 characters. It only groups and labels rows; nothing is looked up."
}
},
"additionalProperties": false
},
"description": "Optional, view weekly only, joined with the books' own for this answer: invoices already paid, at most 5,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). The receipt-timing curve learns from the days between due_date and paid_at; with no paid history at all the labelled prior times every receivable (source 'prior')."
},
"open_payables": {
"type": "array",
"items": {
"type": "object",
"required": [
"due_date",
"amount"
],
"properties": {
"amount": {
"type": "number",
"description": "The amount owed in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "Optional: the row's currency; leave it out for the books' currency (weekly.currency)."
},
"due_date": {
"type": "string",
"description": "The due date, YYYY-MM-DD."
},
"vendor_ref": {
"type": "string",
"description": "Optional: your own id for the supplier, at most 60 characters. It only groups and labels rows; nothing is looked up."
}
},
"additionalProperties": false
},
"description": "Optional, view weekly only, joined with the books' own for this answer: bills you owe, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on its due date (one already due is paid on the first modelled day)."
},
"open_receivables": {
"type": "array",
"items": {
"type": "object",
"required": [
"due_date",
"amount"
],
"properties": {
"amount": {
"type": "number",
"description": "The amount still unpaid in the row's currency (major units): 1500 or \"1500.00\" - never cents."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "Optional: the row's currency; leave it out for the books' currency (weekly.currency)."
},
"due_date": {
"type": "string",
"description": "The due date, YYYY-MM-DD."
},
"issued_at": {
"type": "string",
"description": "Optional: the invoice date, on or before due_date and not after today, YYYY-MM-DD."
},
"client_ref": {
"type": "string",
"description": "Optional: your own id for the customer, at most 60 characters. It only groups and labels rows; nothing is looked up."
}
},
"additionalProperties": false
},
"description": "Optional, view weekly only, joined with the books' own for this answer: invoices your own accounting system shows unpaid, at most 2,000 rows (more refuses with SIMPLER_FORECAST_AGENT_INPUT_TOO_LARGE). Each is paid on the receipt-timing curve from its due date."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}| prompt * |
| string |
| Image description (max 1500 chars). |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
{
"name": "image.generate",
"description": "[paid: $0.06/image max] Generate 1-3 images from a text prompt on the first lane that delivers, tried in order: google/nano-banana-2.1 via the Cloudflare AI catalog ($0.06/image), then @cf/black-forest-labs/flux-2-dev via Cloudflare Workers AI, only when the first lane is down ($0.00/image). Each lane settles its own price per delivered image, so an image never costs more than the first lane's price, the credit a call must have available before it runs; price.charged_micro_usd in the result is the actual charge. Nano Banana keeps printed words (signs, labels, posters) legible; for a product photo the owner already has, image.variation with the photo as reference keeps the real product. Each image is stored in this workspace's image library and returned as JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; never a provider link. A result with no download_url says why in download_url_unavailable. Refuses: VALIDATION_ERROR on an empty prompt (describe the image), INSUFFICIENT_CREDITS (add credits), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later). A partial result lists refunded outputs in output.withheld; SIMPLER_IMAGE_RESULT_UNDELIVERED means nothing was charged: retry. For canvas-sized generation inside an edit session use image.generate_for_edit. NEXT: pass images[0].asset_key as image_asset_key to image.variation or image.upscale.",
"inputSchema": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"count": {
"type": "number",
"description": "Number of images (1-3, default 1)."
},
"width": {
"type": "number",
"description": "Desired width px (256-2048; sets the aspect ratio: the image comes out at about 2K on the long side at the nearest of 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16)."
},
"height": {
"type": "number",
"description": "Desired height px (256-2048; sets the aspect ratio with width)."
},
"prompt": {
"type": "string",
"description": "Image description (max 1500 chars)."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| last_contact_at | integer |
| first_interaction | object | Alias of interaction. |
{
"name": "contact_create",
"description": "Create a contact and, in the same call, log its first note and/or first interaction — the composite first-touch door. Children validate before the contact write; if the contact commits but a child then fails, the error names the contact's id plus the exact call to finish it, never a silent orphan. A contact with the same email or phone already in this tenant refuses with CONFLICT. NEXT: contact_upsert merges into an existing contact instead of creating a duplicate.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"name": {
"type": "string",
"maxLength": 200
},
"note": {
"type": "string",
"description": "Log a first note in the SAME call — ONE call makes both."
},
"tags": {
"type": "string",
"maxLength": 2000
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"description": "Alias of note."
},
"phone": {
"type": "string",
"maxLength": 50
},
"source": {
"enum": [
"manual",
"import",
"invoice",
"sync"
],
"type": "string"
},
"status": {
"enum": [
"lead",
"contacted",
"qualified",
"customer",
"vip",
"inactive"
],
"type": "string"
},
"address": {
"type": "string",
"maxLength": 500
},
"company": {
"type": "string",
"maxLength": 200
},
"interaction": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"summary": {
"type": "string"
},
"occurred_at": {
"type": "string"
},
"interaction_type": {
"type": "string"
}
},
"description": "Log the first interaction in the same call: {type, summary, occurred_at?} — occurred_at takes \"YYYY-MM-DD\".",
"additionalProperties": false
},
"last_contact_at": {
"type": "integer"
},
"first_interaction": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"summary": {
"type": "string"
},
"occurred_at": {
"type": "string"
},
"interaction_type": {
"type": "string"
}
},
"description": "Alias of interaction.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "contact_update",
"description": "Update a contact you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The contact id."
},
"name": {
"type": "string",
"maxLength": 200
},
"tags": {
"type": "string",
"maxLength": 2000
},
"email": {
"type": "string",
"maxLength": 320
},
"phone": {
"type": "string",
"maxLength": 50
},
"source": {
"enum": [
"manual",
"import",
"invoice",
"sync"
],
"type": "string"
},
"status": {
"enum": [
"lead",
"contacted",
"qualified",
"customer",
"vip",
"inactive"
],
"type": "string"
},
"address": {
"type": "string",
"maxLength": 500
},
"company": {
"type": "string",
"maxLength": 200
},
"last_contact_at": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "desk_surface_update",
"description": "Moves, resizes, or restacks a surface already on the desk canvas — x/y/w/h/z_index are real column writes, not a layout cache. The surface's identity is frozen here: kind, widget_key, and content_ref never change through this door, only via delete then re-create. NEXT: desk_surface_list to find the id to move.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"h": {
"type": "integer"
},
"w": {
"type": "integer"
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
},
"id": {
"type": "string",
"description": "The desk_surface id (desk_surface_list shows them)."
},
"kind": {
"enum": [
"widget",
"artifact"
],
"type": "string"
},
"z_index": {
"type": "integer"
},
"widget_key": {
"enum": [
"calendar-money-month",
"fx-converter",
"from-ai-inbox",
"assignments",
"market-discovery",
"sticky-notes",
"quick-start",
"coin-flip",
"interests"
],
"type": "string"
},
"content_ref": {
"type": "string",
"maxLength": 64
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at from a prior desk_surface_list/read. Mismatch returns CONFLICT — another tab already moved this surface."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "edit_project_update",
"description": "Save changes to an existing canvas project by id — the autosave door: send only the fields that changed (name, canvas_json, width, height, thumbnail_data_url), everything else on the row is left alone. A canvas_json you send goes through the same image-externalization and hygiene refusal as edit_project_create (embedded images become R2 keys; SVG, unrecognized types, oversized images, or a still-too-large canvas refuse the whole save). version is bumped by the door itself on every save and thumbnail_key is server-minted from thumbnail_data_url — both refuse if you pass them directly. NEXT: edit_project_read to confirm the saved version.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The edit_project id (edit_project_list shows them)."
},
"name": {
"type": "string",
"maxLength": 120
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"version": {
"type": "integer"
},
"canvas_json": {
"type": "string",
"maxLength": 150000
},
"thumbnail_key": {
"type": "string",
"maxLength": 300
},
"thumbnail_data_url": {
"type": "string",
"description": "Optional thumbnail as a data: URL (PNG/JPEG/WebP/GIF, max 2MB) — externalized into thumbnail_key the same way embedded canvas images are. Omit to skip thumbnail externalization (create: no thumbnail_key is set; update: the existing thumbnail_key is left unchanged)."
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| receipt_key | string |
| rejected_at | integer |
| amount_cents | integer |
| expense_date | integer |
| submitted_at | integer |
| tax_rate_bps | integer |
| recurrence_id | string |
| reimbursed_at | integer |
| subtotal_cents | integer |
| rejection_reason | string |
| tax_amount_cents | integer |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "expense_update",
"description": "Edits an expense's own fields only — status and approval stamps refuse with VALIDATION_ERROR here since those are transitions (expense_submit, expense_approve, expense_reject, expense_reimburse). amount_cents, if changed, must stay integer CENTS. Only the expense's own creator may edit it, and content freezes once the row is 'pending', reimbursed, or approved by someone else — draft, rejected, and your own self-approved rows stay editable.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense id (expense_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"pending",
"approved",
"rejected",
"reimbursed"
],
"type": "string"
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"ocr_json": {
"type": "string",
"maxLength": 8000
},
"tax_type": {
"enum": [
"GST",
"SST",
"VAT",
"PPN"
],
"type": "string"
},
"tags_json": {
"type": "string",
"maxLength": 2000
},
"approved_at": {
"type": "integer"
},
"approved_by": {
"type": "string",
"maxLength": 40
},
"category_id": {
"type": "string",
"maxLength": 40
},
"receipt_key": {
"type": "string",
"maxLength": 200
},
"rejected_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"expense_date": {
"type": "integer"
},
"submitted_at": {
"type": "integer"
},
"tax_rate_bps": {
"type": "integer"
},
"recurrence_id": {
"type": "string",
"maxLength": 40
},
"reimbursed_at": {
"type": "integer"
},
"subtotal_cents": {
"type": "integer"
},
"rejection_reason": {
"type": "string",
"maxLength": 500
},
"tax_amount_cents": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| receipt_key | string |
| rejected_at | integer |
| amount_cents | integer |
| expense_date | integer |
| submitted_at | integer |
| tax_rate_bps | integer |
| recurrence_id | string |
| reimbursed_at | integer |
| subtotal_cents | integer |
| rejection_reason | string |
| tax_amount_cents | integer |
{
"name": "expense_delete",
"description": "Deletes an expense you created — draft and rejected rows only. Pending, approved, and reimbursed rows are approval-trail records and refuse with CONFLICT (approval_locked: true), and the lock is pinned into the delete itself so a status change racing your read still refuses instead of silently deleting. NEXT: expense_reject it first (admin+) if it must leave the books.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense id (expense_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"pending",
"approved",
"rejected",
"reimbursed"
],
"type": "string"
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"ocr_json": {
"type": "string",
"maxLength": 8000
},
"tax_type": {
"enum": [
"GST",
"SST",
"VAT",
"PPN"
],
"type": "string"
},
"tags_json": {
"type": "string",
"maxLength": 2000
},
"approved_at": {
"type": "integer"
},
"approved_by": {
"type": "string",
"maxLength": 40
},
"category_id": {
"type": "string",
"maxLength": 40
},
"receipt_key": {
"type": "string",
"maxLength": 200
},
"rejected_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"expense_date": {
"type": "integer"
},
"submitted_at": {
"type": "integer"
},
"tax_rate_bps": {
"type": "integer"
},
"recurrence_id": {
"type": "string",
"maxLength": 40
},
"reimbursed_at": {
"type": "integer"
},
"subtotal_cents": {
"type": "integer"
},
"rejection_reason": {
"type": "string",
"maxLength": 500
},
"tax_amount_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}| rejected_at | integer |
| amount_cents | integer |
| expense_date | integer |
| submitted_at | integer |
| tax_rate_bps | integer |
| recurrence_id | string |
| reimbursed_at | integer |
| subtotal_cents | integer |
| rejection_reason | string |
| tax_amount_cents | integer |
{
"name": "expense_reject",
"description": "Rejects a submitted expense claim — requires the admin or owner role, and only a 'pending' expense qualifies (CONFLICT otherwise). rejection_reason (up to 500 chars) is optional but records why; rejected is terminal and never counts as spend, so a corrected claim is a fresh expense_create, never a resubmit.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense id (expense_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"pending",
"approved",
"rejected",
"reimbursed"
],
"type": "string"
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"ocr_json": {
"type": "string",
"maxLength": 8000
},
"tax_type": {
"enum": [
"GST",
"SST",
"VAT",
"PPN"
],
"type": "string"
},
"tags_json": {
"type": "string",
"maxLength": 2000
},
"approved_at": {
"type": "integer"
},
"approved_by": {
"type": "string",
"maxLength": 40
},
"category_id": {
"type": "string",
"maxLength": 40
},
"receipt_key": {
"type": "string",
"maxLength": 200
},
"rejected_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"expense_date": {
"type": "integer"
},
"submitted_at": {
"type": "integer"
},
"tax_rate_bps": {
"type": "integer"
},
"recurrence_id": {
"type": "string",
"maxLength": 40
},
"reimbursed_at": {
"type": "integer"
},
"subtotal_cents": {
"type": "integer"
},
"rejection_reason": {
"type": "string",
"maxLength": 500
},
"tax_amount_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| string |
| rejected_at | integer |
| amount_cents | integer |
| expense_date | integer |
| submitted_at | integer |
| tax_rate_bps | integer |
| recurrence_id | string |
| reimbursed_at | integer |
| subtotal_cents | integer |
| rejection_reason | string |
| tax_amount_cents | integer |
{
"name": "expense_reimburse",
"description": "Marks an approved expense as paid out — restricted to the tenant owner because it moves real money, and only an 'approved' expense qualifies (CONFLICT otherwise). Stamps reimbursed_at, after which the row's content freezes unconditionally since the amount approved is the amount recorded as paid. Records the payout only — no funds move automatically.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense id (expense_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"pending",
"approved",
"rejected",
"reimbursed"
],
"type": "string"
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"ocr_json": {
"type": "string",
"maxLength": 8000
},
"tax_type": {
"enum": [
"GST",
"SST",
"VAT",
"PPN"
],
"type": "string"
},
"tags_json": {
"type": "string",
"maxLength": 2000
},
"approved_at": {
"type": "integer"
},
"approved_by": {
"type": "string",
"maxLength": 40
},
"category_id": {
"type": "string",
"maxLength": 40
},
"receipt_key": {
"type": "string",
"maxLength": 200
},
"rejected_at": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"expense_date": {
"type": "integer"
},
"submitted_at": {
"type": "integer"
},
"tax_rate_bps": {
"type": "integer"
},
"recurrence_id": {
"type": "string",
"maxLength": 40
},
"reimbursed_at": {
"type": "integer"
},
"subtotal_cents": {
"type": "integer"
},
"rejection_reason": {
"type": "string",
"maxLength": 500
},
"tax_amount_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "expense_recurrence_create",
"description": "Create a expense_recurrence.",
"inputSchema": {
"type": "object",
"required": [
"vendor",
"amount_cents",
"frequency",
"next_due"
],
"properties": {
"notes": {
"type": "string",
"maxLength": 2000
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"next_due": {
"type": "integer"
},
"frequency": {
"enum": [
"daily",
"weekly",
"monthly",
"yearly"
],
"type": "string"
},
"is_active": {
"type": "integer"
},
"category_id": {
"type": "string",
"maxLength": 40
},
"day_of_week": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"day_of_month": {
"type": "integer"
},
"total_generated": {
"type": "integer"
},
"last_generated_at": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "expense_recurrence_update",
"description": "Update a expense_recurrence you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The expense_recurrence id."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"vendor": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"next_due": {
"type": "integer"
},
"frequency": {
"enum": [
"daily",
"weekly",
"monthly",
"yearly"
],
"type": "string"
},
"is_active": {
"type": "integer"
},
"category_id": {
"type": "string",
"maxLength": 40
},
"day_of_week": {
"type": "integer"
},
"amount_cents": {
"type": "integer"
},
"day_of_month": {
"type": "integer"
},
"total_generated": {
"type": "integer"
},
"last_generated_at": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}| string |
| issue_date | integer |
| tax_scheme | string | one of ["sg_gst","my_sst"] |
| source_type | string | one of ["quote","recurring","quick_sale"] |
| fx_rate_date | string | The date the fx rate is for, YYYY-MM-DD. Send with fx_rate_to_sgd. |
| tax_rate_bps | integer |
| payment_terms | string |
| ready_to_send | boolean | When the user wants to give the client a draft invoice (forward it, send it, get it ready): true issues it (status 'sent') and returns handoff, invoice_handoff's result: the client link, the PDF and the prepared message. Refused for a paid or cancelled invoice, or one with nothing owed. Nothing is s… |
| fx_rate_to_sgd | string | sg_gst invoices in a currency other than SGD: Singapore dollars per 1 unit of the invoice currency as a decimal string, up to 6 decimals ("1.3502"), from a source IRAS accepts (MAS, a local bank, Bloomberg, Reuters, Oanda) for the date of supply. Send with fx_rate_date. Or send fx_rate_to_sgd_ppm (1… |
| invoice_number | string |
| payment_method | string | one of ["cash","transfer","ewallet","other"] |
| fx_rate_to_sgd_ppm | integer |
| prices_include_tax | integer |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "invoice_update",
"description": "Edits an invoice's header fields and status. status 'paid' cannot be set here — it derives from the payment ledger, so call invoice_payment_record instead. Status moves are machine-checked (draft to sent/cancelled, sent to cancelled); cancelled is terminal and a paid invoice never reopens by hand. A move to 'sent' stamps sent_at automatically when omitted, and currency is ledger-locked once any live payment exists. An agent's change to notes or payment_terms on an issued invoice waits for the owner's approval; on a draft it does not. tax_scheme and prices_include_tax are fixed at creation, as is the tax rate. NEXT: invoice_payment_record to settle money, invoice_read to verify.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice id (invoice_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"sent",
"paid",
"cancelled"
],
"type": "string"
},
"paid_at": {
"type": "integer"
},
"sent_at": {
"type": "integer"
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"due_date": {
"type": "integer"
},
"cash_sale": {
"type": "integer"
},
"client_id": {
"type": "string",
"maxLength": 40
},
"source_id": {
"type": "string",
"maxLength": 40
},
"issue_date": {
"type": "integer"
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst"
],
"type": "string",
"maxLength": 10
},
"source_type": {
"enum": [
"quote",
"recurring",
"quick_sale"
],
"type": "string"
},
"fx_rate_date": {
"type": "string",
"description": "The date the fx rate is for, YYYY-MM-DD. Send with fx_rate_to_sgd."
},
"tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"payment_terms": {
"type": "string",
"maxLength": 500
},
"ready_to_send": {
"type": "boolean",
"description": "When the user wants to give the client a draft invoice (forward it, send it, get it ready): true issues it (status 'sent') and returns handoff, invoice_handoff's result: the client link, the PDF and the prepared message. Refused for a paid or cancelled invoice, or one with nothing owed. Nothing is sent: the user forwards it."
},
"fx_rate_to_sgd": {
"type": "string",
"description": "sg_gst invoices in a currency other than SGD: Singapore dollars per 1 unit of the invoice currency as a decimal string, up to 6 decimals (\"1.3502\"), from a source IRAS accepts (MAS, a local bank, Bloomberg, Reuters, Oanda) for the date of supply. Send with fx_rate_date. Or send fx_rate_to_sgd_ppm (1.3502 → 1350200)."
},
"invoice_number": {
"type": "string",
"maxLength": 40
},
"payment_method": {
"enum": [
"cash",
"transfer",
"ewallet",
"other"
],
"type": "string"
},
"fx_rate_to_sgd_ppm": {
"type": "integer",
"maximum": 1000000000,
"minimum": 1
},
"prices_include_tax": {
"type": "integer",
"maximum": 1,
"minimum": 0
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| amount_cents | integer | accept only: the amount received in integer CENTS. Omit it to record the balance still owed. |
| allow_overpayment | boolean | accept only: record more than the balance still owed. |
{
"name": "invoice_payer_confirmation",
"description": "Acts on a payer's report, sent from the invoice's client page, that they have paid. action 'accept' records the payment with the same writer as invoice_payment_record, graded counterparty_confirmed: the amount is amount_cents (or amount) when given, else the balance still owed; occurred_at defaults to when the payer reported. An agent's accept waits for the owner's approval. action 'dismiss' closes a report whose money did not arrive. Find reports in invoice_read's payer_confirmations. Refuses a report already accepted or dismissed with CONFLICT (invoice_read shows it), and an invoice with nothing owed unless amount_cents comes with allow_overpayment. Nothing is sent to the payer.",
"inputSchema": {
"type": "object",
"required": [
"action"
],
"properties": {
"id": {
"type": "string",
"description": "The confirmation id from invoice_read's payer_confirmations."
},
"note": {
"type": "string",
"description": "accept only: your own note on the payment (max 500)."
},
"force": {
"type": "boolean",
"description": "accept only: confirms a genuine second payment of the same amount on the same day."
},
"action": {
"enum": [
"accept",
"dismiss"
],
"type": "string",
"description": "accept: record the payment the payer reported. dismiss: the money did not arrive."
},
"amount": {
"type": "string",
"description": "accept only: the amount as a decimal STRING (\"250.00\") instead of amount_cents."
},
"method": {
"enum": [
"cash",
"transfer",
"ewallet",
"other"
],
"type": "string",
"description": "accept only: how the money arrived."
},
"invoice_id": {
"type": "string",
"description": "Instead of id: the invoice, when exactly one report on it is pending."
},
"occurred_at": {
"type": "integer",
"description": "accept only: epoch milliseconds the money arrived. Omit it to use the time the payer reported."
},
"amount_cents": {
"type": "integer",
"description": "accept only: the amount received in integer CENTS. Omit it to record the balance still owed."
},
"allow_overpayment": {
"type": "boolean",
"description": "accept only: record more than the balance still owed."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| Alias of invoice_id — the invoice's own number. |
{
"name": "invoice_debit_note",
"description": "[REQUIRES APPROVAL] Issues a numbered debit note that raises what an issued ('sent' or 'paid') invoice is owed: an extra charge, or a price or tax correction. It is numbered from the debit note series and adds amount_cents (or a decimal STRING amount), tax at the invoice's rate inside, in its currency; a 'paid' invoice goes back to 'sent' until the rest is paid. Refuses a draft (change its lines instead), a cancelled invoice, an invoice with no lines, another currency, and a paid invoice with no payment recorded (record it first with invoice_payment_record); every refusal names the call to send. Never deleted: undo one with a credit_note. An agent's call parks for approval. Nothing is sent. NEXT: invoice_read.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"amount": {
"type": "string",
"description": "The amount as a decimal STRING (\"25.00\") instead of amount_cents — never convert units yourself."
},
"reason": {
"type": "string",
"description": "Why the customer owes more, as the debit note prints it (max 500)."
},
"currency": {
"type": "string",
"description": "Must be the invoice's own currency; omit it to use that currency."
},
"debit_kind": {
"enum": [
"additional_charge",
"price_correction",
"tax_correction",
"other"
],
"type": "string",
"description": "What the debit note is for. Omit it for additional_charge."
},
"invoice_id": {
"type": "string",
"description": "The invoice the debit note raises (invoice_list shows ids); its invoice_number works too."
},
"occurred_at": {
"type": "integer",
"description": "Epoch milliseconds the debit note takes effect. Omit it for now."
},
"amount_cents": {
"type": "integer",
"description": "The amount the debit note adds, in integer CENTS."
},
"invoice_number": {
"type": "string",
"description": "Alias of invoice_id — the invoice's own number."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| fx_rate_to_sgd in millionths (1.3502 → 1350200), instead of fx_rate_to_sgd. Send with fx_rate_date. |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. A mismatch returns CONFLICT and changes nothing. |
{
"name": "invoice_reissue",
"description": "Voids a 'sent' invoice with no money on it and reissues it under the next number: 'sent', dated today, same client, currency, notes, terms and lines, tax on today's rules, the old days to pay unless due_date is sent. A foreign-currency sg_gst invoice issued before today needs fx_rate_to_sgd and fx_rate_date for today unless its rate is dated today. The old one is cancelled, its client link stops working, both trails link them. Paid, part-paid, credited or written-off invoices refuse: correct them with a credit note (invoice_adjustment_record). When present, the second content block is the new invoice as copy-ready text. Nothing is sent. NEXT: invoice_share only if the user asks for a link.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"id": {
"type": "string",
"description": "The invoice to cancel and issue again (invoice_list shows ids); its invoice_number works too."
},
"reason": {
"type": "string",
"description": "Why the invoice is reissued, kept in both invoices' activity (max 500)."
},
"due_date": {
"type": "integer",
"description": "Epoch milliseconds of the new due date, today or later. Omit it to give the new invoice the old one's days to pay, counted from today."
},
"fx_rate_date": {
"type": "string",
"description": "The date the fx rate is for, YYYY-MM-DD. Send with fx_rate_to_sgd."
},
"fx_rate_to_sgd": {
"type": "string",
"description": "sg_gst invoices in a currency other than SGD: Singapore dollars per 1 unit of the invoice currency for today, the new invoice's date of supply (\"1.3502\", up to 6 decimals, from MAS, a local bank, Bloomberg, Reuters or Oanda). Send with fx_rate_date. Needed when the invoice was issued before today and its rate is not dated today; otherwise the old rate, if any, is kept."
},
"invoice_number": {
"type": "string",
"description": "Alias of id — the invoice's own number."
},
"fx_rate_to_sgd_ppm": {
"type": "integer",
"maximum": 1000000000,
"minimum": 1,
"description": "fx_rate_to_sgd in millionths (1.3502 → 1350200), instead of fx_rate_to_sgd. Send with fx_rate_date."
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. A mismatch returns CONFLICT and changes nothing."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| string |
| one of ["credit_note","write_off","discount_post_issue","dispute_settlement"] |
{
"name": "invoice_adjustment_delete",
"description": "[REQUIRES APPROVAL] Retires a dilution fact row — the only correction lane (adjustments are append-only; amounts are never edited). If the retired row was a credit that settled the invoice, the status rolls from 'paid' back to 'sent' and paid_at clears; the remaining balance and the derived 'written_off' state re-derive from the live rows immediately. An agent's call parks here for human approval. NEXT: invoice_adjustment_record to re-record the correct amount.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The adjustment id (invoice_adjustment_list shows them)."
},
"reason": {
"type": "string",
"maxLength": 500
},
"currency": {
"type": "string",
"maxLength": 3
},
"invoice_id": {
"type": "string",
"maxLength": 40
},
"occurred_at": {
"type": "integer"
},
"reason_code": {
"enum": [
"goods_returned",
"damaged_or_defective",
"pricing_error",
"discount",
"service_not_rendered",
"cancellation",
"other"
],
"type": "string",
"maxLength": 40
},
"amount_cents": {
"type": "integer"
},
"adjustment_id": {
"type": "string",
"description": "Alias of id."
},
"credit_outcome": {
"enum": [
"reduce_balance",
"refunded_outside"
],
"type": "string",
"maxLength": 20
},
"adjustment_type": {
"enum": [
"credit_note",
"write_off",
"discount_post_issue",
"dispute_settlement"
],
"type": "string"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}{
"name": "invoice_client_update",
"description": "Update a invoice_client you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_client id."
},
"name": {
"type": "string",
"maxLength": 200
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"maxLength": 1000
},
"phone": {
"type": "string",
"maxLength": 50
},
"address": {
"type": "string",
"maxLength": 500
},
"company": {
"type": "string",
"maxLength": 200
},
"contact_id": {
"type": "string",
"maxLength": 40
},
"message_language": {
"enum": [
"en",
"ms",
"zh"
],
"type": "string",
"maxLength": 8
},
"reminder_cadence": {
"enum": [
"standard",
"from_due",
"overdue_only",
"off"
],
"type": "string",
"maxLength": 16
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}| one of ["standard","from_due","overdue_only","off"] |
| counterparty_tenant_id * | string | The on-platform business this client IS (their tenant id). Pass null to unlink. |
{
"name": "invoice_client_link_tenant",
"description": "[REQUIRES APPROVAL] Asserts that a billing client IS an on-platform tenant (or pass counterparty_tenant_id null to unlink) and retro-stamps that client's existing invoices with the link in the same call — invoices_stamped in the result is the count. Linking requires the counterparty's 'cross_tenant_settlement' consent AND a live network relationship (an active match or a deal thread); unlinking passes neither gate, since it withdraws your own assertion rather than making a new one. NEXT: invoice_client_read to read back what linked.",
"inputSchema": {
"type": "object",
"required": [
"id",
"counterparty_tenant_id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_client id (invoice_client_list shows them)."
},
"name": {
"type": "string",
"maxLength": 200
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"maxLength": 1000
},
"phone": {
"type": "string",
"maxLength": 50
},
"address": {
"type": "string",
"maxLength": 500
},
"company": {
"type": "string",
"maxLength": 200
},
"client_id": {
"type": "string",
"description": "Alias of id."
},
"contact_id": {
"type": "string",
"maxLength": 40
},
"message_language": {
"enum": [
"en",
"ms",
"zh"
],
"type": "string",
"maxLength": 8
},
"reminder_cadence": {
"enum": [
"standard",
"from_due",
"overdue_only",
"off"
],
"type": "string",
"maxLength": 16
},
"counterparty_tenant_id": {
"type": "string",
"description": "The on-platform business this client IS (their tenant id). Pass null to unlink."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "invoice_item_create",
"description": "Adds one line item to an invoice. unit_price_cents is integer CENTS, 0 or more ($15.00 → 1500); quantity is 0.001 to 1,000,000 with up to 3 decimals (1.5 hours → 1.5); unit is an optional label (hr, kg); discount_bps is an optional line discount (10% → 1000). quantity × unit_price_cents is at most 10,000,000,000. Refuses a negative price (send discount_bps instead), a 'paid' parent (retire the payment first) and a 'cancelled' parent (issue a new invoice). Re-derives the invoice's paid/sent status. tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: invoice_read to see the updated total.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"maxLength": 50
},
"position": {
"type": "integer"
},
"quantity": {
"type": "number",
"maximum": 1000000,
"minimum": 0.001,
"description": "How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1."
},
"tax_code": {
"enum": [
"standard",
"zero_rated",
"exempt",
"out_of_scope",
"sales_10",
"sales_5",
"service_8",
"service_6"
],
"type": "string",
"maxLength": 20
},
"invoice_id": {
"type": "string",
"maxLength": 40
},
"description": {
"type": "string",
"maxLength": 500
},
"discount_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0,
"description": "Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price."
},
"unit_price_cents": {
"type": "integer",
"maximum": 10000000000,
"minimum": 0
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| expected_updated_at * | integer | Required: the line's updated_at from your last read (invoice_item_read, invoice_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is. |
{
"name": "invoice_item_update",
"description": "Edits a line item's description, quantity, unit, price or discount, or re-parents it to another invoice. expected_updated_at is required: the line's updated_at from your read; without it nothing is written and the refusal names the current value; a line changed since then answers CONFLICT. Bounds: unit_price_cents is integer CENTS, 0 or more; quantity 0.001 to 1,000,000 (3 decimals); discount_bps 0 to 10000; quantity × unit_price_cents at most 10,000,000,000. unit \"\" clears the unit. Refuses when the current or target invoice is paid or cancelled. tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: invoice_read to see the updated total.",
"inputSchema": {
"type": "object",
"required": [
"id",
"expected_updated_at"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_item id (invoice_item_list shows them)."
},
"unit": {
"type": "string",
"maxLength": 50
},
"position": {
"type": "integer"
},
"quantity": {
"type": "number",
"maximum": 1000000,
"minimum": 0.001,
"description": "How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1."
},
"tax_code": {
"enum": [
"standard",
"zero_rated",
"exempt",
"out_of_scope",
"sales_10",
"sales_5",
"service_8",
"service_6"
],
"type": "string",
"maxLength": 20
},
"invoice_id": {
"type": "string",
"maxLength": 40
},
"description": {
"type": "string",
"maxLength": 500
},
"discount_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0,
"description": "Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price."
},
"unit_price_cents": {
"type": "integer",
"maximum": 10000000000,
"minimum": 0
},
"expected_updated_at": {
"type": "integer",
"description": "Required: the line's updated_at from your last read (invoice_item_read, invoice_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| expected_updated_at * | integer | Required: the line's updated_at from your last read (invoice_item_read, invoice_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is. |
{
"name": "invoice_item_delete",
"description": "Soft-deletes a line item — it leaves the invoice and its derived total immediately, but the row is retired for audit history, never removed. expected_updated_at is required: the line's updated_at from your read (invoice_item_read); without it the removal is refused and the refusal names the current value. Refuses when the parent invoice is 'paid' (ledger-locked: retire the payment first) or 'cancelled' (terminal: its lines stay as issued), and with CONFLICT when the line changed since that read (read it again). If retiring the line settles the remaining balance on a partially-paid invoice, the parent re-derives to 'paid' by itself. NEXT: invoice_read to see the updated total.",
"inputSchema": {
"type": "object",
"required": [
"id",
"expected_updated_at"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_item id (invoice_item_list shows them)."
},
"unit": {
"type": "string",
"maxLength": 50
},
"position": {
"type": "integer"
},
"quantity": {
"type": "integer",
"maximum": 1000000,
"minimum": 1
},
"tax_code": {
"enum": [
"standard",
"zero_rated",
"exempt",
"out_of_scope",
"sales_10",
"sales_5",
"service_8",
"service_6"
],
"type": "string",
"maxLength": 20
},
"invoice_id": {
"type": "string",
"maxLength": 40
},
"description": {
"type": "string",
"maxLength": 500
},
"discount_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"unit_price_cents": {
"type": "integer",
"maximum": 10000000000,
"minimum": 0
},
"expected_updated_at": {
"type": "integer",
"description": "Required: the line's updated_at from your last read (invoice_item_read, invoice_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}| max_invoices | integer |
| tax_rate_bps | integer |
| total_generated | integer |
| last_generated_at | integer |
{
"name": "invoice_recurring_create",
"description": "Create a invoice_recurring.",
"inputSchema": {
"type": "object",
"required": [
"title",
"items_json",
"frequency",
"next_due"
],
"properties": {
"notes": {
"type": "string",
"maxLength": 2000
},
"title": {
"type": "string",
"maxLength": 200
},
"ends_on": {
"type": "integer"
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"next_due": {
"type": "integer"
},
"client_id": {
"type": "string",
"maxLength": 40
},
"frequency": {
"enum": [
"weekly",
"monthly",
"yearly"
],
"type": "string"
},
"is_active": {
"type": "integer"
},
"items_json": {
"type": "string",
"maxLength": 8000
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst",
"none"
],
"type": "string",
"maxLength": 10
},
"day_of_week": {
"type": "integer"
},
"day_of_month": {
"type": "integer"
},
"max_invoices": {
"type": "integer",
"maximum": 1000,
"minimum": 1
},
"tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"total_generated": {
"type": "integer"
},
"last_generated_at": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| day_of_month |
| integer |
| max_invoices | integer |
| tax_rate_bps | integer |
| total_generated | integer |
| last_generated_at | integer |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "invoice_recurring_update",
"description": "Update a invoice_recurring you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The invoice_recurring id."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"title": {
"type": "string",
"maxLength": 200
},
"ends_on": {
"type": "integer"
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"next_due": {
"type": "integer"
},
"client_id": {
"type": "string",
"maxLength": 40
},
"frequency": {
"enum": [
"weekly",
"monthly",
"yearly"
],
"type": "string"
},
"is_active": {
"type": "integer"
},
"items_json": {
"type": "string",
"maxLength": 8000
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst",
"none"
],
"type": "string",
"maxLength": 10
},
"day_of_week": {
"type": "integer"
},
"day_of_month": {
"type": "integer"
},
"max_invoices": {
"type": "integer",
"maximum": 1000,
"minimum": 1
},
"tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"total_generated": {
"type": "integer"
},
"last_generated_at": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "market_signal_update",
"description": "Update a market_signal you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The market_signal id."
},
"notes": {
"type": "string",
"maxLength": 1000
},
"status": {
"enum": [
"open",
"fulfilled",
"closed"
],
"type": "string"
},
"product": {
"type": "string",
"maxLength": 200
},
"currency": {
"type": "string",
"maxLength": 3
},
"deadline": {
"type": "integer"
},
"location": {
"type": "string",
"maxLength": 120
},
"quantity": {
"type": "string",
"maxLength": 100
},
"price_cents": {
"type": "integer"
},
"signal_type": {
"enum": [
"buy",
"sell",
"swap",
"capacity_offer",
"capacity_request"
],
"type": "string"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "myinvois_customer_create",
"description": "Register a buyer in the LHDN buyer registry so it attaches to future e-invoices with one pick (customer_id) instead of typing the party every time. Validates the TIN format, and validates state_code against the LHDN state table when you send one — a buyer with no real TIN uses the LHDN generic TIN (EI00000000010 Malaysian public, EI00000000020 foreign) instead. NEXT: myinvois_invoice_generate with customer_id.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"brn": {
"type": "string",
"maxLength": 50
},
"tin": {
"type": "string",
"maxLength": 30
},
"city": {
"type": "string",
"maxLength": 100
},
"name": {
"type": "string",
"maxLength": 255
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"maxLength": 2000
},
"address": {
"type": "string",
"maxLength": 500
},
"sst_number": {
"type": "string",
"maxLength": 50
},
"state_code": {
"type": "string",
"maxLength": 10
},
"postal_code": {
"type": "string",
"maxLength": 20
},
"country_code": {
"type": "string",
"maxLength": 3
},
"contact_number": {
"type": "string",
"maxLength": 50
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| string |
| contact_number | string |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at from a prior myinvois_customer_list/read. Mismatch returns CONFLICT with the current value. |
{
"name": "myinvois_customer_update",
"description": "Edit a registered buyer's LHDN details — send only the fields you are changing. When tin is included it is re-checked against the same format gate create runs, and when state_code is included it is re-checked against the LHDN state table, so an edited buyer stays valid to generate against. Never touches e-invoices already generated for this buyer; each one sealed its own copy of the buyer party. NEXT: myinvois_customer_list to find the id.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The myinvois_customer id (myinvois_customer_list shows them)."
},
"brn": {
"type": "string",
"maxLength": 50
},
"tin": {
"type": "string",
"maxLength": 30
},
"city": {
"type": "string",
"maxLength": 100
},
"name": {
"type": "string",
"maxLength": 255
},
"email": {
"type": "string",
"maxLength": 320
},
"notes": {
"type": "string",
"maxLength": 2000
},
"address": {
"type": "string",
"maxLength": 500
},
"sst_number": {
"type": "string",
"maxLength": 50
},
"state_code": {
"type": "string",
"maxLength": 10
},
"postal_code": {
"type": "string",
"maxLength": 20
},
"country_code": {
"type": "string",
"maxLength": 3
},
"contact_number": {
"type": "string",
"maxLength": 50
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at from a prior myinvois_customer_list/read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| address_line2 | string |
| contact_number | string |
| invoice_prefix | string |
| default_currency | string |
| business_activity | string |
| tourism_tax_number | string |
| default_payment_terms | string |
{
"name": "myinvois_settings_save",
"description": "[REQUIRES APPROVAL] Save the one-time LHDN supplier profile — the door checks for an existing row on your tenant and creates or updates in place, so this is the only write you ever call. Validates the TIN format, checks msic_code is a 5-digit MSIC code, and checks state_code against the LHDN state table before the row moves. NEXT: myinvois_invoice_generate reads this profile as the supplier party of every e-invoice.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"brn": {
"type": "string",
"maxLength": 50
},
"tin": {
"type": "string",
"maxLength": 30
},
"city": {
"type": "string",
"maxLength": 100
},
"email": {
"type": "string",
"maxLength": 320
},
"scope": {
"enum": [
"default"
],
"type": "string"
},
"msic_code": {
"type": "string",
"maxLength": 10
},
"sst_number": {
"type": "string",
"maxLength": 50
},
"state_code": {
"type": "string",
"maxLength": 10
},
"postal_code": {
"type": "string",
"maxLength": 20
},
"company_name": {
"type": "string",
"maxLength": 255
},
"country_code": {
"type": "string",
"maxLength": 3
},
"address_line1": {
"type": "string",
"maxLength": 500
},
"address_line2": {
"type": "string",
"maxLength": 500
},
"contact_number": {
"type": "string",
"maxLength": 50
},
"invoice_prefix": {
"type": "string",
"maxLength": 10
},
"default_currency": {
"type": "string",
"maxLength": 3
},
"business_activity": {
"type": "string",
"maxLength": 500
},
"tourism_tax_number": {
"type": "string",
"maxLength": 50
},
"default_payment_terms": {
"type": "string",
"maxLength": 500
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| prices_include_tax | integer |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
| converted_invoice_id | string |
{
"name": "quote_update",
"description": "Edits a quote's header fields and bookkeeping status (draft, sent, accepted, declined move freely). status 'converted' and converted_invoice_id are convert-flow-owned — hand-setting either refuses, and a converted quote is frozen: no status move and no header edit (it could convert again and double-bill; its invoice is the live document, so edit that). tax_scheme and prices_include_tax are fixed at creation, as is the tax rate. NEXT: quote_convert to create the invoice and record the link atomically.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The quote id (quote_list shows them)."
},
"notes": {
"type": "string",
"maxLength": 2000
},
"status": {
"enum": [
"draft",
"sent",
"accepted",
"declined",
"converted"
],
"type": "string"
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"client_id": {
"type": "string",
"maxLength": 40
},
"issue_date": {
"type": "integer"
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst"
],
"type": "string",
"maxLength": 10
},
"valid_until": {
"type": "integer"
},
"quote_number": {
"type": "string",
"maxLength": 40
},
"tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"prices_include_tax": {
"type": "integer",
"maximum": 1,
"minimum": 0
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
},
"converted_invoice_id": {
"type": "string",
"maxLength": 40
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "quote_item_create",
"description": "Adds one line item to a quote. unit_price_cents is integer CENTS, 0 or more ($15.00 → 1500); quantity is 0.001 to 1,000,000 with up to 3 decimals (1.5 hours → 1.5); unit is an optional label (hr, kg); discount_bps is an optional line discount (10% → 1000). quantity × unit_price_cents is at most 10,000,000,000. Refuses a negative price (send discount_bps instead), a line above the ceiling (split it) and any line on a converted quote (CONFLICT: change its invoice instead). tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: quote_read to see the quote.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"unit": {
"type": "string",
"maxLength": 50
},
"position": {
"type": "integer"
},
"quantity": {
"type": "number",
"maximum": 1000000,
"minimum": 0.001,
"description": "How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1."
},
"quote_id": {
"type": "string",
"maxLength": 40
},
"tax_code": {
"enum": [
"standard",
"zero_rated",
"exempt",
"out_of_scope",
"sales_10",
"sales_5",
"service_8",
"service_6"
],
"type": "string",
"maxLength": 20
},
"description": {
"type": "string",
"maxLength": 500
},
"discount_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0,
"description": "Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price."
},
"unit_price_cents": {
"type": "integer",
"maximum": 10000000000,
"minimum": 0
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| expected_updated_at * | integer | Required: the line's updated_at from your last read (quote_item_read, quote_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is. |
{
"name": "quote_item_update",
"description": "Edits a quote line's description, quantity, unit, price or discount, or moves it to another quote. expected_updated_at is required: the line's updated_at from your read; without it nothing is written and the refusal names the current value; a line changed since then answers CONFLICT. Refuses a line of a converted quote or a move onto one (CONFLICT: change its invoice instead). Bounds: unit_price_cents is integer CENTS, 0 or more; quantity 0.001 to 1,000,000 (3 decimals); discount_bps 0 to 10000; quantity × unit_price_cents at most 10,000,000,000. unit \"\" clears the unit. tax_code is the line's code under the document's tax_scheme, refused on a document without a scheme. NEXT: quote_read.",
"inputSchema": {
"type": "object",
"required": [
"id",
"expected_updated_at"
],
"properties": {
"id": {
"type": "string",
"description": "The quote_item id (quote_item_list shows them)."
},
"unit": {
"type": "string",
"maxLength": 50
},
"position": {
"type": "integer"
},
"quantity": {
"type": "number",
"maximum": 1000000,
"minimum": 0.001,
"description": "How many, up to 3 decimals (1.5 hours → 1.5). A new line defaults to 1."
},
"quote_id": {
"type": "string",
"maxLength": 40
},
"tax_code": {
"enum": [
"standard",
"zero_rated",
"exempt",
"out_of_scope",
"sales_10",
"sales_5",
"service_8",
"service_6"
],
"type": "string",
"maxLength": 20
},
"description": {
"type": "string",
"maxLength": 500
},
"discount_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0,
"description": "Optional line discount in basis points: 10% → 1000, none → 0. A discount is never a lower or negative price."
},
"unit_price_cents": {
"type": "integer",
"maximum": 10000000000,
"minimum": 0
},
"expected_updated_at": {
"type": "integer",
"description": "Required: the line's updated_at from your last read (quote_item_read, quote_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| Required: the line's updated_at from your last read (quote_item_read, quote_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is. |
{
"name": "quote_item_delete",
"description": "Soft-deletes a quote line — it leaves the quote and its totals immediately, but the row is retired for audit history, never removed. expected_updated_at is required: the line's updated_at from your read (quote_item_read); without it the removal is refused and the refusal names the current value. Refuses with CONFLICT when the line changed since that read (read it again and decide on the current line) and on a converted quote (its lines are frozen: change its invoice instead). NEXT: quote_read to see the quote.",
"inputSchema": {
"type": "object",
"required": [
"id",
"expected_updated_at"
],
"properties": {
"id": {
"type": "string",
"description": "The quote_item id (quote_item_list shows them)."
},
"unit": {
"type": "string",
"maxLength": 50
},
"position": {
"type": "integer"
},
"quantity": {
"type": "integer",
"maximum": 1000000,
"minimum": 1
},
"quote_id": {
"type": "string",
"maxLength": 40
},
"tax_code": {
"enum": [
"standard",
"zero_rated",
"exempt",
"out_of_scope",
"sales_10",
"sales_5",
"service_8",
"service_6"
],
"type": "string",
"maxLength": 20
},
"description": {
"type": "string",
"maxLength": 500
},
"discount_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"unit_price_cents": {
"type": "integer",
"maximum": 10000000000,
"minimum": 0
},
"expected_updated_at": {
"type": "integer",
"description": "Required: the line's updated_at from your last read (quote_item_read, quote_item_list or the create answer). Left out, the call is refused and names the current value; a line changed since then returns CONFLICT with the current value and stays as it is."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}| string |
| business_phone | string |
| invoice_prefix | string |
| template_style | string | one of ["clean","professional","modern"] |
| business_address | string |
| default_currency | string | one of ["USD","EUR","GBP","JPY","CNY","AUD","HKD","INR","SGD","MYR","IDR","THB","PHP","VND","BND","MMK"] |
| brand_accent_color | string |
| payment_terms_days | integer |
| brand_primary_color | string |
| default_tax_rate_bps | integer |
| payment_instructions | string |
{
"name": "sales_settings_upsert",
"description": "[REQUIRES APPROVAL] Saves your business identity and document defaults (one row per business; scope is 'default'). timezone is the business clock: an invoice turns overdue at midnight in that zone after its due day, and days_overdue counts days there; unset means Asia/Singapore. Left out, timezone and the text fields keep their saved value, but defaulted fields (default_currency, default_tax_rate_bps, payment_terms_days, invoice_prefix, quote_prefix, template_style) reset, so resend them from sales_settings_read. An agent call waits for the owner's approval. Refuses an unlisted timezone or currency, or a tax rate outside 0-10000, with VALIDATION_ERROR before it waits for approval: send a listed value.",
"inputSchema": {
"type": "object",
"required": [
"scope"
],
"properties": {
"scope": {
"enum": [
"default"
],
"type": "string"
},
"tax_id": {
"type": "string",
"maxLength": 50
},
"timezone": {
"enum": [
"Asia/Singapore",
"Asia/Kuala_Lumpur",
"Asia/Kuching",
"Asia/Brunei",
"Asia/Jakarta",
"Asia/Pontianak",
"Asia/Makassar",
"Asia/Jayapura",
"Asia/Bangkok",
"Asia/Ho_Chi_Minh",
"Asia/Phnom_Penh",
"Asia/Vientiane",
"Asia/Yangon",
"Asia/Manila",
"Asia/Dili",
"Asia/Hong_Kong",
"Asia/Shanghai",
"Asia/Taipei",
"Asia/Tokyo",
"Asia/Seoul",
"Asia/Kolkata",
"Asia/Dubai",
"Australia/Perth",
"Australia/Sydney",
"Europe/London",
"Europe/Berlin",
"America/New_York",
"America/Los_Angeles",
"UTC"
],
"type": "string",
"maxLength": 64
},
"bank_name": {
"type": "string",
"maxLength": 100
},
"tax_scheme": {
"enum": [
"sg_gst",
"my_sst",
"none"
],
"type": "string",
"maxLength": 10
},
"bank_account": {
"type": "string",
"maxLength": 100
},
"quote_prefix": {
"type": "string",
"maxLength": 10
},
"business_name": {
"type": "string",
"maxLength": 200
},
"business_email": {
"type": "string",
"maxLength": 320
},
"business_phone": {
"type": "string",
"maxLength": 50
},
"invoice_prefix": {
"type": "string",
"maxLength": 10
},
"template_style": {
"enum": [
"clean",
"professional",
"modern"
],
"type": "string"
},
"business_address": {
"type": "string",
"maxLength": 500
},
"default_currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"maxLength": 3
},
"brand_accent_color": {
"type": "string",
"maxLength": 7
},
"payment_terms_days": {
"type": "integer"
},
"brand_primary_color": {
"type": "string",
"maxLength": 7
},
"default_tax_rate_bps": {
"type": "integer",
"maximum": 10000,
"minimum": 0
},
"payment_instructions": {
"type": "string",
"maxLength": 1000
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}{
"name": "settlement_proposal_accept",
"description": "Accept a settlement obligation recorded against your tenant as payee — moves status proposed to accepted and stamps accepted_at under the registry's transition guard. Calling it again on an already-accepted row is idempotent (accepted_at simply re-stamps); once a proposal reaches settled the guard refuses any further move, since settled is terminal. Recording agreement only: no money moves here, settlement execution is a later rail's door. NEXT: settlement_proposal_read to verify the accepted row.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The settlement_proposal id to accept, recorded against your tenant as payee (settlement_proposal_list shows them)."
},
"status": {
"enum": [
"proposed",
"accepted",
"settled"
],
"type": "string"
},
"currency": {
"type": "string",
"maxLength": 3
},
"accepted_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 1000
},
"amount_cents": {
"type": "integer"
},
"payer_tenant_id": {
"type": "string",
"maxLength": 40
},
"consent_grant_id": {
"type": "string",
"maxLength": 40
},
"related_entity_id": {
"type": "string",
"maxLength": 40
},
"related_entity_type": {
"type": "string",
"maxLength": 60
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| analysis_summary | string |
| last_analyzed_at | integer |
| original_filename | string |
{
"name": "spreadsheet_file_create",
"description": "Register a spreadsheet file row in the library for bytes that already sit in R2: r2_key must be a spreadsheets/<your tenant>/ key minted by the upload route or spreadsheet.create_with_content — a caller-invented, foreign-tenant, or wrong-domain key is refused. sheet_count, row_count, and column_count are unverified client-reported hints, since nothing server-side parses the binary. NEXT: spreadsheet.create_with_content stores the bytes and registers the row together.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"tags": {
"type": "string",
"maxLength": 2000
},
"title": {
"type": "string",
"maxLength": 255
},
"r2_key": {
"type": "string",
"maxLength": 200
},
"source": {
"enum": [
"upload",
"ai-generated",
"agent"
],
"type": "string"
},
"ai_prompt": {
"type": "string",
"maxLength": 2000
},
"file_size": {
"type": "integer"
},
"folder_id": {
"type": "string",
"maxLength": 40
},
"row_count": {
"type": "integer"
},
"deleted_at": {
"type": "integer"
},
"sheet_count": {
"type": "integer"
},
"sheet_names": {
"type": "string",
"maxLength": 2000
},
"column_count": {
"type": "integer"
},
"analysis_summary": {
"type": "string",
"maxLength": 5000
},
"last_analyzed_at": {
"type": "integer"
},
"original_filename": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| sheet_names |
| string |
| column_count | integer |
| analysis_summary | string |
| last_analyzed_at | integer |
| original_filename | string |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. |
{
"name": "spreadsheet_file_update",
"description": "Edit a spreadsheet file's metadata — title, tags, folder_id, or the AI-analysis fields — without touching the underlying R2 object. r2_key and source are birth facts: including either field in the call at all, even set to its current value, is refused — re-upload as a new file to change custody or provenance. Moving folder_id re-verifies the target folder belongs to your tenant. NEXT: spreadsheet_file_read to confirm the change landed.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The spreadsheet_file id (spreadsheet_file_list shows them)."
},
"tags": {
"type": "string",
"maxLength": 2000
},
"title": {
"type": "string",
"maxLength": 255
},
"r2_key": {
"type": "string",
"maxLength": 200
},
"source": {
"enum": [
"upload",
"ai-generated",
"agent"
],
"type": "string"
},
"ai_prompt": {
"type": "string",
"maxLength": 2000
},
"file_size": {
"type": "integer"
},
"folder_id": {
"type": "string",
"maxLength": 40
},
"row_count": {
"type": "integer"
},
"deleted_at": {
"type": "integer"
},
"sheet_count": {
"type": "integer"
},
"sheet_names": {
"type": "string",
"maxLength": 2000
},
"column_count": {
"type": "integer"
},
"analysis_summary": {
"type": "string",
"maxLength": 5000
},
"last_analyzed_at": {
"type": "integer"
},
"original_filename": {
"type": "string",
"maxLength": 255
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| sheet_names | string |
| column_count | integer |
| analysis_summary | string |
| last_analyzed_at | integer |
| original_filename | string |
{
"name": "spreadsheet_file_delete",
"description": "Soft-delete a spreadsheet file: stamps deleted_at on the row so it drops out of the library and folder listings, while the row and its R2 object both survive untouched — there is no purge or restore lane yet, so this cannot be reversed through any current door. Requires the file id; an empty id is refused before anything is touched. NEXT: spreadsheet_file_read to confirm deleted_at is now set — the generic list tool still includes soft-deleted rows.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The spreadsheet_file id (spreadsheet_file_list shows them)."
},
"tags": {
"type": "string",
"maxLength": 2000
},
"title": {
"type": "string",
"maxLength": 255
},
"r2_key": {
"type": "string",
"maxLength": 200
},
"source": {
"enum": [
"upload",
"ai-generated",
"agent"
],
"type": "string"
},
"ai_prompt": {
"type": "string",
"maxLength": 2000
},
"file_size": {
"type": "integer"
},
"folder_id": {
"type": "string",
"maxLength": 40
},
"row_count": {
"type": "integer"
},
"deleted_at": {
"type": "integer"
},
"sheet_count": {
"type": "integer"
},
"sheet_names": {
"type": "string",
"maxLength": 2000
},
"column_count": {
"type": "integer"
},
"analysis_summary": {
"type": "string",
"maxLength": 5000
},
"last_analyzed_at": {
"type": "integer"
},
"original_filename": {
"type": "string",
"maxLength": 255
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}{
"name": "sticky_note_dismiss",
"description": "Clear a sticky note's reminder (triggers_at back to NULL) so it drops out of the sticky_note_due poll — call this after the host fires the local notification for it. Runs through the same tenant-scoped write path as every entity update, but via a clear-properties op: ordinary updates ignore null values, so this is the only way to null the column. Idempotent — dismissing an already-cleared note just re-nulls a NULL and succeeds. NEXT: sticky_note_due to see what's still outstanding.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The sticky note id to dismiss (sticky_note_due or sticky_note_list shows them)."
},
"color": {
"enum": [
"amber",
"rose",
"verdigris",
"sky",
"onyx"
],
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"content": {
"type": "string",
"maxLength": 2000
},
"z_index": {
"type": "integer"
},
"position_x": {
"type": "integer"
},
"position_y": {
"type": "integer"
},
"triggers_at": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}{
"name": "stock_item_update",
"description": "Update a stock_item you own (optionally compare-and-set via expected_updated_at).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The stock_item id."
},
"name": {
"type": "string",
"maxLength": 255
},
"unit": {
"type": "string",
"maxLength": 50
},
"notes": {
"type": "string",
"maxLength": 5000
},
"category": {
"type": "string",
"maxLength": 100
},
"quantity": {
"type": "integer"
},
"is_active": {
"type": "integer"
},
"expiry_date": {
"type": "string",
"maxLength": 30
},
"sell_price_cents": {
"type": "integer"
},
"cost_per_unit_cents": {
"type": "integer"
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value."
},
"low_stock_threshold": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}
}| integer |
{
"name": "stock_item_delete",
"description": "Soft-delete a stock item by id: sets is_active to 0 while its movements-ledger history stays intact. stock_item_adjust then refuses the id as NOT_FOUND and stops resolving it by name, so a later delivery under the same name creates a fresh item instead of reviving this one. stock_item_list and stock_item_read still return it with is_active: 0 — only the dashboard's stats header excludes it. Restore by running a normal update that sets is_active back to 1; there is no separate restore door.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The stock item id to soft-delete (stock_item_list shows them)."
},
"name": {
"type": "string",
"maxLength": 255
},
"unit": {
"type": "string",
"maxLength": 50
},
"notes": {
"type": "string",
"maxLength": 5000
},
"category": {
"type": "string",
"maxLength": 100
},
"quantity": {
"type": "integer"
},
"is_active": {
"type": "integer"
},
"expiry_date": {
"type": "string",
"maxLength": 30
},
"sell_price_cents": {
"type": "integer"
},
"cost_per_unit_cents": {
"type": "integer"
},
"low_stock_threshold": {
"type": "integer"
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}| photos_json | string |
| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
| expected_updated_at | integer | Optional compare-and-set guard: the updated_at from a prior read. Mismatch returns CONFLICT — another writer changed this assignment first. |
{
"name": "team_assignment_update",
"description": "Edits an assignment's content (title/description/priority/due_at/attachment) — only the assigner may call this, and only before the job reaches a terminal state. assigned_to cannot move here even though it is a writable column: reassigning is a separate transition that also opens a 30-second undo window. NEXT: team_assignment_reassign to hand the job to someone else.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at from a prior read. Mismatch returns CONFLICT — another writer changed this assignment first."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| photos_json | string |
| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_delete",
"description": "Deletes an assignment outright — only the assigner may call this. The row is removed first, then its attachment and any job photos are best-effort deleted from R2 afterward, so a storage hiccup never leaves the assignment stranded. NEXT: team_assignment_list to confirm it is gone.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}
}| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_accept",
"description": "Accepts a pending job — only the assignee may call this, and only while the assignment is still 'pending'; it stamps accepted_at and moves status to 'accepted'. NEXT: team_assignment_start once you begin the work.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_start",
"description": "Marks a job as started — only the assignee, and only from status 'accepted'; it stamps started_at and moves status to 'in_progress'. NEXT: team_assignment_add_photo for proof, then team_assignment_complete when done.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| string |
| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_complete",
"description": "Finishes a job — only the assignee, and only from status 'in_progress'; it stamps completed_at, moves status to 'completed', and stores completion_notes when you supply them. Completed is terminal: the row can no longer be edited or reassigned (deletion by the assigner is still possible).",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_decline",
"description": "Declines a job — only the assignee, and only while it is 'pending' or 'accepted'; decline_reason is required and is stamped alongside declined_at. Declined is terminal, same as completed: the assignment cannot be edited or reassigned afterward.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| photos_json | string |
| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_reassign",
"description": "Hands an assignment to a different tenant member — only the original assigner or an admin+, never the current assignee reassigning themself, and never onto a terminal (completed/declined) row. It resets status to 'pending' for the new assignee and records the prior assignee/status so the move can be undone. NEXT: team_assignment_undo_reassign within 30 seconds reverts it.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_undo_reassign",
"description": "Reverts an assignment's most recent reassignment — restores the previous assignee and status. Only the person who performed that reassignment may call it, and only within the 30-second window after it happened; past that, CONFLICT says to reassign again instead.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| integer |
| description | string |
| photos_json | string |
| completed_at | integer |
| reassigned_at | integer |
| reassigned_by | string |
| attachment_key | string |
| decline_reason | string |
| attachment_name | string |
| attachment_type | string |
| previous_status | string | one of ["pending","accepted","in_progress","completed","declined"] |
| completion_notes | string |
| previous_assignee | string |
{
"name": "team_assignment_add_photo",
"description": "Attaches a job photo to an assignment — only the assignee, and only while the job is 'accepted', 'in_progress', or 'completed'. photo_key must be one minted by POST /api/desk/assignments/upload for this tenant; re-attaching the same key is a no-op, and the row holds at most 20 photos. NEXT: team_assignment_complete once proof is attached.",
"inputSchema": {
"type": "object",
"required": [
"id",
"photo_key"
],
"properties": {
"id": {
"type": "string",
"description": "The team_assignment id (team_assignment_list shows them)."
},
"title": {
"type": "string",
"maxLength": 200
},
"due_at": {
"type": "integer"
},
"status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"priority": {
"enum": [
"low",
"normal",
"high",
"urgent"
],
"type": "string"
},
"photo_key": {
"type": "string",
"description": "The R2 key minted by POST /api/desk/assignments/upload for this tenant — attaching an unminted key or another tenant's key fails validation."
},
"started_at": {
"type": "integer"
},
"accepted_at": {
"type": "integer"
},
"artifact_id": {
"type": "string",
"maxLength": 64
},
"assigned_to": {
"type": "string",
"maxLength": 64
},
"declined_at": {
"type": "integer"
},
"description": {
"type": "string",
"maxLength": 2000
},
"photos_json": {
"type": "string",
"maxLength": 4000
},
"completed_at": {
"type": "integer"
},
"reassigned_at": {
"type": "integer"
},
"reassigned_by": {
"type": "string",
"maxLength": 64
},
"attachment_key": {
"type": "string",
"maxLength": 200
},
"decline_reason": {
"type": "string",
"maxLength": 500
},
"attachment_name": {
"type": "string",
"maxLength": 200
},
"attachment_type": {
"type": "string",
"maxLength": 100
},
"previous_status": {
"enum": [
"pending",
"accepted",
"in_progress",
"completed",
"declined"
],
"type": "string"
},
"completion_notes": {
"type": "string",
"maxLength": 2000
},
"previous_assignee": {
"type": "string",
"maxLength": 64
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| Optional compare-and-set guard: the updated_at from a prior workflow_read/workflow_list. Mismatch returns CONFLICT with the current value. |
{
"name": "workflow_update",
"description": "Edit a workflow's fields or its definition graph: every call re-validates the definition — yours if resent, else the stored one decoded back — against the resulting trigger_type, so a plain rename can fail if that stored graph no longer validates, and flipping to 'schedule' without a schedule block fails here rather than at the scheduler. When trigger_type ends as 'schedule' and is_active as 1, next_run_at recomputes from schedule and now on every call, even one touching neither field; any value you send for it is ignored. Optional expected_updated_at compare-and-set: a stale value refuses CONFLICT — re-read, merge, retry. NEXT: workflow_read to confirm the new next_run_at.",
"inputSchema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The workflow id (workflow_list shows them)."
},
"name": {
"type": "string",
"maxLength": 120
},
"is_active": {
"type": "integer"
},
"role_name": {
"type": "string",
"maxLength": 60
},
"description": {
"type": "string",
"maxLength": 500
},
"next_run_at": {
"type": "integer"
},
"trigger_type": {
"enum": [
"manual",
"webhook",
"schedule"
],
"type": "string"
},
"imported_from": {
"type": "string",
"maxLength": 40
},
"definition_json": {
"type": "string",
"maxLength": 40000
},
"expected_updated_at": {
"type": "integer",
"description": "Optional compare-and-set guard: the updated_at from a prior workflow_read/workflow_list. Mismatch returns CONFLICT with the current value."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}
}| Optional: 1-based column numbers, sent after a refusal lists the file's columns. Needs date and balance, plus amount (money in positive) or both debit and credit. |
| csv_text * | string | The statement exported from online banking as CSV, at most 2,000,000 bytes. A title block above the header row is fine. |
| currency * | string | The account's currency. |
| bank_label * | string | The bank's name, such as DBS or Maybank. No account number. |
| date_order | string | Optional: send only when a refusal says every date can be read two ways. day_first reads 03/04/2026 as 3 April. |
| new_account | boolean | Optional: send true only after a SIMPLER_BANKING_ACCOUNT_LABEL_CONFLICT refusal, when this statement is from a different account that shares the saved account's last 4 digits and currency. Leave it out otherwise. |
| account_last4 * | string | The account number's last 4 digits as text, such as "0123". A longer number is cut to its last 4. |
{
"name": "banking.import_statement",
"description": "Import one bank account's statement as CSV text (CSV today, PDF later) so the forecast starts from the bank's own balance. Owner or admin only. Stores each line and each day's closing balance for the account named by bank_label, account_last4 and currency; uploading the same statement again adds nothing. Name an account the same way every time (the label is matched ignoring case). Before anything is stored, only the last 4 digits of the account number are kept, and runs of 6 or more digits, email addresses and phone numbers are cut from descriptions and counterparties; payee and payer names stay as the statement gives them until the workspace is closed, when they are emptied and the lines are kept as figures and dates. The columns are recognised from the header (date, balance, and one signed amount or separate withdrawal and deposit columns); no bank layout is verified yet, so check the mapping in the reply. The latest balance, if under 31 days old, becomes the forecast's starting cash, graded 'statement', in place of a typed balance for the same account (a typed account whose label ends in other last 4 digits and dated on or after the statement is added to it, and the sum is graded 'declared'; an older one is left out until it is saved again with today's date), and the stored forecast is rerun. Returns counts, statement_balance, the mapping used, balance_checks, and forecast.status with next_step; verify with forecast.read. Refuses with FORBIDDEN SIMPLER_BANKING_ROLE_REFUSED for any other role (ask an owner or admin); VALIDATION_ERROR SIMPLER_BANKING_ACCOUNT_LAST4_INVALID when account_last4 has fewer than 4 digits (send the last 4 as text); VALIDATION_ERROR SIMPLER_BANKING_STATEMENT_FIELDS_INVALID naming each bad field; CONFLICT SIMPLER_BANKING_ACCOUNT_LABEL_CONFLICT with saved_accounts when an account with the same account_last4 and currency is saved under another bank_label, before anything is stored, because one account under two names would count its balance twice (resend with the saved bank_label for that account, or with new_account: true for a different account); VALIDATION_ERROR SIMPLER_BANKING_STATEMENT_UNPARSEABLE with reason and the file's columns when the columns or dates cannot be read (send mapping with 1-based column numbers, or date_order); PAYLOAD_TOO_LARGE SIMPLER_BANKING_STATEMENT_TOO_LARGE over 2,000,000 bytes or 20,000 lines (export a shorter date range); SERVICE_UNAVAILABLE SIMPLER_BANKING_STATEMENT_WRITE_FAIL (retry the same upload).",
"inputSchema": {
"type": "object",
"required": [
"csv_text",
"bank_label",
"account_last4",
"currency"
],
"properties": {
"mapping": {
"type": "object",
"required": [],
"properties": {
"date": {
"type": "integer",
"description": "The date column number."
},
"debit": {
"type": "integer",
"description": "The debit column number."
},
"amount": {
"type": "integer",
"description": "The amount column number."
},
"credit": {
"type": "integer",
"description": "The credit column number."
},
"balance": {
"type": "integer",
"description": "The balance column number."
},
"description": {
"type": "integer",
"description": "The description column number."
},
"counterparty": {
"type": "integer",
"description": "The counterparty column number."
}
},
"description": "Optional: 1-based column numbers, sent after a refusal lists the file's columns. Needs date and balance, plus amount (money in positive) or both debit and credit.",
"additionalProperties": false
},
"csv_text": {
"type": "string",
"description": "The statement exported from online banking as CSV, at most 2,000,000 bytes. A title block above the header row is fine."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "The account's currency."
},
"bank_label": {
"type": "string",
"description": "The bank's name, such as DBS or Maybank. No account number."
},
"date_order": {
"enum": [
"day_first",
"month_first"
],
"type": "string",
"description": "Optional: send only when a refusal says every date can be read two ways. day_first reads 03/04/2026 as 3 April."
},
"new_account": {
"type": "boolean",
"description": "Optional: send true only after a SIMPLER_BANKING_ACCOUNT_LABEL_CONFLICT refusal, when this statement is from a different account that shares the saved account's last 4 digits and currency. Leave it out otherwise."
},
"account_last4": {
"type": "string",
"description": "The account number's last 4 digits as text, such as \"0123\". A longer number is cut to its last 4."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | The reference image, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.variation",
"description": "[paid: $0.06/image] Generate 1-3 new images from a reference image guided by a prompt (google/nano-banana-2.1, which keeps the reference's product, logo and printed words when the prompt says to): a new scene, background, lighting or layout for the same subject. Pass image_asset_key (an earlier result) or image_url (public https or data:image) plus a prompt describing the change. Each image is stored in this workspace's image library and returned as JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; never a provider link. A result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass one image input), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), VALIDATION_ERROR on an empty prompt, INSUFFICIENT_CREDITS (add credits), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later). A partial result lists refunded outputs in output.withheld. To edit a SPECIFIC region use image.inpaint; for whole-image restyle use image.style_transfer. NEXT: pass images[0].asset_key to image.upscale or image.cut_background.",
"inputSchema": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"count": {
"type": "number",
"description": "Number of variations (1-3, default 1)."
},
"prompt": {
"type": "string",
"description": "How to vary the image (max 1500 chars)."
},
"image_url": {
"type": "string",
"description": "The reference image: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "The reference image, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| width |
| integer |
| Bounding width in pixels; leave width and height out to keep the size. |
| format * | string | The result's file type: png (lossless, keeps transparency), jpeg (smallest for photos, no transparency) or webp. |
| height | integer | Bounding height in pixels; leave width and height out to keep the size. |
| quality | integer | jpeg and webp only: 1-100, default 85. Refused with png. |
| image_url | string | The image to convert: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP, GIF or HEIC; SVG is refused). Pass this or image_asset_key, not both. |
| background | string | #RRGGBB under transparent pixels and around a padded image. A jpeg defaults to #FFFFFF. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | The image to convert, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.convert",
"description": "[paid: $0.0005] Convert an image to PNG, JPEG or WebP, and optionally bound its size, with the Cloudflare Images service: a PNG, JPEG, WebP, GIF or HEIC goes in and the result is stored in this workspace. format is png, jpeg, webp (AVIF is not offered). quality (1-100, default 85) applies to jpeg and webp. width and height (16-4096 px) bound the result and fit picks how: scale-down (the default) shrinks to fit and never enlarges, contain fits inside and may enlarge, cover and crop fill the box and cut the overflow, pad fits inside and fills the rest with background. background (#RRGGBB) fills transparent pixels and padding; a JPEG, which has no transparency, is laid on white unless you name a colour. One call is one Images transformation at $0.0005, charged only when the result is stored; the preview is never charged. Returns JSON {images:[{url, asset_key, download_url?, width, height, content_type}], price, output: {format, bytes, quality?, input_format, input_bytes}, next} plus a preview; a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), VALIDATION_ERROR naming the field for a format outside the list, a quality with png, a size outside the range, a fit without width or height, or a background that is not #RRGGBB; SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them; SIMPLER_MEDIA_PIN_TOO_LARGE when the result is over 20MB (pass width and height, or pick jpeg or webp); INSUFFICIENT_CREDITS or PAYMENT_REQUIRED when the workspace cannot cover $0.0005 or is past its spend cap (add credits or raise the cap). NEXT: Pass images[0].asset_key as image_asset_key to image.adjust, image.marketplace_check or another image.* tool; a download_url, when the result carries one, works for 24 hours without a session.",
"inputSchema": {
"type": "object",
"required": [
"format"
],
"properties": {
"fit": {
"enum": [
"scale-down",
"contain",
"cover",
"crop",
"pad"
],
"type": "string",
"description": "How the image fits width and height (default scale-down). Needs width or height."
},
"width": {
"type": "integer",
"maximum": 4096,
"minimum": 16,
"description": "Bounding width in pixels; leave width and height out to keep the size."
},
"format": {
"enum": [
"png",
"jpeg",
"webp"
],
"type": "string",
"description": "The result's file type: png (lossless, keeps transparency), jpeg (smallest for photos, no transparency) or webp."
},
"height": {
"type": "integer",
"maximum": 4096,
"minimum": 16,
"description": "Bounding height in pixels; leave width and height out to keep the size."
},
"quality": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "jpeg and webp only: 1-100, default 85. Refused with png."
},
"image_url": {
"type": "string",
"description": "The image to convert: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP, GIF or HEIC; SVG is refused). Pass this or image_asset_key, not both."
},
"background": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$",
"description": "#RRGGBB under transparent pixels and around a padded image. A jpeg defaults to #FFFFFF."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "The image to convert, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}{
"name": "image.cut_background",
"description": "[paid: $0.0005] Remove the background from a photo, returning the subject on transparency (BiRefNet on Cloudflare Images; when that cannot read the image, Bria's background remover runs instead at $0.018). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"image_url": {
"type": "string",
"description": "Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}{
"name": "image.upscale",
"description": "[paid: $0.005] Upscale a photo to about 4 megapixels (Pruna P-Image Upscale). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"image_url": {
"type": "string",
"description": "Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| mask_asset_key | string | Mask (white = edit region), as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.inpaint",
"description": "[paid: $0.06] Remove or replace a masked region of a photo (Nano Banana repaints it in context; the result is the original with only the mask, grown and feathered, changed). White mask pixels = edit region. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_EDIT_FILL_MASK_EMPTY (the mask selects nothing: paint the object white), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"prompt": {
"type": "string",
"description": "What to paint in; empty removes."
},
"mask_url": {
"type": "string",
"description": "Mask (white = edit region): a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"image_url": {
"type": "string",
"description": "Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"mask_asset_key": {
"type": "string",
"description": "Mask (white = edit region), as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| mask_asset_key | string | Sky mask (white = sky), as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.replace_sky",
"description": "[paid: $0.03] Replace a photo's sky (Bria FIBO Edit). Pass a mask covering the sky (white = sky). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"prompt": {
"type": "string",
"description": "Sky description."
},
"mask_url": {
"type": "string",
"description": "Sky mask (white = sky): a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"image_url": {
"type": "string",
"description": "Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"mask_asset_key": {
"type": "string",
"description": "Sky mask (white = sky), as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| mask_asset_key | string | Optional background mask (white = background); omit it to cut the subject out automatically, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.replace_background",
"description": "[paid: $0.03] Replace a photo's background with a generated scene (Bria FIBO Edit). With no mask, the subject is cut out first (plus [paid: $0.0005]) and the original subject is laid back over the new scene; or pass a mask covering the background (white = background). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR on an empty prompt (describe the scene), SIMPLER_EDIT_BACKDROP_NO_SUBJECT (no mask and no clear subject: pass a background mask), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"description": "Scene description."
},
"mask_url": {
"type": "string",
"description": "Optional background mask (white = background); omit it to cut the subject out automatically: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"image_url": {
"type": "string",
"description": "Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"mask_asset_key": {
"type": "string",
"description": "Optional background mask (white = background); omit it to cut the subject out automatically, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Composite image, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
| subject_mask_url | string | Subject mask (white = subject): a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| subject_mask_asset_key | string | Subject mask (white = subject), as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.harmonize",
"description": "Match a pasted subject's light and colour to its scene: a Reinhard colour transfer in CIELAB moves the subject's mean and spread toward the scene's, weighted by the subject mask, at strength 0..100 (default 80). Pixels outside the mask never change. Pass the composite plus a subject mask (white = subject, black = scene). Free: runs on the platform's own deterministic kernel, so the same input and arguments always return the same pixels. Takes PNG, JPEG, WebP, GIF or HEIC. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_EDIT_HARMONIZE_MASK_EMPTY (the mask selects no visible pixel: paint the subject white), SIMPLER_EDIT_HARMONIZE_NO_BACKGROUND (the mask covers everything: pass the whole composite with only the subject white), SIMPLER_EDIT_SERVER_PIXELS_NEEDS_PNG (the file is not an image: send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE (at most 4,194,304 pixels: run image.convert with width and height 2048 first), SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them, and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"strength": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "How far to move the subject toward the scene, 0..100 (default 80)."
},
"image_url": {
"type": "string",
"description": "Composite image: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Composite image, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
},
"subject_mask_url": {
"type": "string",
"description": "Subject mask (white = subject): a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"subject_mask_asset_key": {
"type": "string",
"description": "Subject mask (white = subject), as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| integer |
| Edge softness in pixels, 0..100 (unset: 5% of the subject's height, at least 16). |
| kind | string | Shadow kind (default drop). |
| angle | integer | Light direction in degrees, counterclockwise from 3 o'clock (default 120). |
| opacity | integer | Shadow strength, 0..100 (default 65). |
| distance | integer | Offset in pixels, 0..200 (unset: 3.5% of the subject's height, at least 12). |
| image_url | string | Cut-out subject on transparency: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| background | string | #RRGGBB backdrop used when transparent is false (default #ffffff). The word transparent is also accepted and means transparent true; it cannot be combined with transparent false. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| transparent | boolean | true (default) keeps the backdrop see-through; false fills background behind the shadow. |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Cut-out subject on transparency, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.add_shadow",
"description": "Add a product shadow to a cut-out (subject on transparency), cast from its alpha: kind drop, contact or reflection. angle 0..359 is the light direction counterclockwise from 3 o'clock (default 120; the shadow falls the other way); distance 0..200 px (unset: 3.5% of the subject's height, at least 12; the gap under the base for a reflection); blur 0..100 px (unset: 5% of the subject's height, at least 16); opacity 0..100 (default 65); transparent true (default) keeps the backdrop see-through, false fills background #RRGGBB (default #ffffff) behind the shadow. contact ignores angle and distance, reflection ignores angle. The result grows past the input by the shadow's reach (distance plus blur) so no visible shadow pixel is cut: output pad {left, top, right, bottom} gives the growth in input pixels and subject_box the subject in the result; clipped true means the growth was trimmed to stay within 4,194,304 pixels. Free: runs on the platform's own deterministic kernel, so the same input and arguments always return the same pixels. Takes PNG, JPEG, WebP, GIF or HEIC. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), SIMPLER_EDIT_SHADOW_NEEDS_CUTOUT (no transparent pixels: run image.cut_background and pass its asset_key), VALIDATION_ERROR with reason SIMPLER_EDIT_TOOL_ARGS_INVALID for a value out of range, SIMPLER_EDIT_SERVER_PIXELS_NEEDS_PNG (the file is not an image: send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE (at most 4,194,304 pixels: run image.convert with width and height 2048 first), SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them, and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [],
"properties": {
"blur": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Edge softness in pixels, 0..100 (unset: 5% of the subject's height, at least 16)."
},
"kind": {
"enum": [
"drop",
"contact",
"reflection"
],
"type": "string",
"description": "Shadow kind (default drop)."
},
"angle": {
"type": "integer",
"maximum": 359,
"minimum": 0,
"description": "Light direction in degrees, counterclockwise from 3 o'clock (default 120)."
},
"opacity": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Shadow strength, 0..100 (default 65)."
},
"distance": {
"type": "integer",
"maximum": 200,
"minimum": 0,
"description": "Offset in pixels, 0..200 (unset: 3.5% of the subject's height, at least 12)."
},
"image_url": {
"type": "string",
"description": "Cut-out subject on transparency: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"background": {
"type": "string",
"pattern": "^(#[0-9A-Fa-f]{6}|transparent)$",
"description": "#RRGGBB backdrop used when transparent is false (default #ffffff). The word transparent is also accepted and means transparent true; it cannot be combined with transparent false."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"transparent": {
"type": "boolean",
"description": "true (default) keeps the backdrop see-through; false fills background behind the shadow."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Cut-out subject on transparency, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| Parameter |
|---|
| Type |
|---|
| Description |
|---|
| ops * | array | Adjustments applied in order, 1..10. Each op takes only its own params keys: brightness_contrast (brightness, contrast), exposure (stops), temperature_tint (temperature, tint), vibrance_saturation (vibrance, saturation), curves (rgb, red, green, blue), levels (in_black, in_white, levels_gamma, out_b… |
| image_url | string | Photo to adjust: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| request_ref | string | Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a re… |
| output_format | string | Result encoding: png (the default, free), jpeg or webp ($0.0005, one Images encode at quality 85; a JPEG has no transparency, so transparent pixels come out white). |
| preview_format | string | Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Photo to adjust, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.adjust",
"description": "Apply 1..10 adjustments to a photo in order, with the editor's own kernels: a one-op stack returns the same pixels as that tool in the editor. ops is a list of {op, params}; each op takes only its own params keys, and a key left out takes that op's default: brightness_contrast (brightness, contrast), exposure (stops), temperature_tint (temperature, tint), vibrance_saturation (vibrance, saturation), curves (rgb, red, green, blue), levels (in_black, in_white, levels_gamma, out_black, out_white), hsl_per_range (range, hue, saturation, luminance), sharpen (amount, radius, shadow_protect, highlight_protect), blur (radius), denoise (luminance_strength, chrominance_strength, radius), vignette (amount, midpoint, feather), grain (amount), black_and_white (red_weight, green_weight, blue_weight, tint_color), auto_tone (aggressive). output_format is png (the default, free), jpeg or webp ($0.0005 for the one Images encode, charged only when the result is delivered). Free for png output, $0.0005 for jpeg or webp: runs on the platform's own deterministic kernel, so the same input and arguments always return the same pixels. Takes PNG, JPEG, WebP, GIF or HEIC. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR with reason SIMPLER_EDIT_TOOL_ARGS_INVALID for an unknown op, a key the op does not take, a value outside the op's range, levels with in_white not above in_black, or an output_format outside png, jpeg and webp, SIMPLER_EDIT_SERVER_PIXELS_NEEDS_PNG (the file is not an image: send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE (at most 4,194,304 pixels: run image.convert with width and height 2048 first), SIMPLER_IMAGES_BINDING_ABSENT (this deployment has no Images binding yet, owner step O-2: send a standard PNG), SIMPLER_IMAGES_QUOTA_EXCEEDED or SIMPLER_IMAGES_LEGACY_SUBSCRIPTION (an owner account step: send a standard PNG meanwhile), SIMPLER_IMAGES_INPUT_UNREADABLE (send a PNG, JPEG, WebP, GIF or HEIC), SIMPLER_IMAGES_INPUT_TOO_LARGE (under 20,000,000 bytes and 100 megapixels), SIMPLER_IMAGES_TRANSFORM_FAILED (retry, or send a standard PNG); nothing is charged on any of them, and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [
"ops"
],
"properties": {
"ops": {
"type": "array",
"items": {
"type": "object",
"required": [
"op"
],
"properties": {
"op": {
"enum": [
"brightness_contrast",
"exposure",
"temperature_tint",
"vibrance_saturation",
"curves",
"levels",
"hsl_per_range",
"sharpen",
"blur",
"denoise",
"vignette",
"grain",
"black_and_white",
"auto_tone"
],
"type": "string",
"description": "The adjustment to apply."
},
"params": {
"type": "object",
"properties": {
"hue": {
"type": "number",
"maximum": 180,
"minimum": -180,
"description": "hsl_per_range -180..180, default 0, degrees"
},
"red": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"maxItems": 2,
"minItems": 2
},
"maxItems": 8,
"minItems": 2,
"description": "curves red curve, 2..8 [x,y] points in 0..1"
},
"rgb": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"maxItems": 2,
"minItems": 2
},
"maxItems": 8,
"minItems": 2,
"description": "curves master curve, 2..8 [x,y] points in 0..1"
},
"blue": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"maxItems": 2,
"minItems": 2
},
"maxItems": 8,
"minItems": 2,
"description": "curves blue curve, 2..8 [x,y] points in 0..1"
},
"tint": {
"type": "number",
"maximum": 100,
"minimum": -100,
"description": "temperature_tint -100..100, default 0, positive is greener"
},
"green": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "number",
"maximum": 1,
"minimum": 0
},
"maxItems": 2,
"minItems": 2
},
"maxItems": 8,
"minItems": 2,
"description": "curves green curve, 2..8 [x,y] points in 0..1"
},
"range": {
"enum": [
"reds",
"oranges",
"yellows",
"greens",
"aquas",
"blues",
"purples",
"magentas"
],
"type": "string",
"description": "hsl_per_range required, the colour band"
},
"stops": {
"type": "number",
"maximum": 5,
"minimum": -5,
"description": "exposure -5..5, default 0, a gain in linear light; +1 doubles the light and whites clip"
},
"amount": {
"type": "number",
"maximum": 4,
"minimum": -1,
"description": "sharpen 0..4, default 1; vignette -1..1, default -0.3, negative darkens the edges, positive lightens them; grain 0..1, default 0.1"
},
"radius": {
"type": "number",
"maximum": 60,
"minimum": 1,
"description": "sharpen 1..20, default 2, pixels; blur 1..60, default 5, pixels; denoise 1..8, default 4, pixels"
},
"feather": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "vignette 0..1, default 0.5, 0 is a hard edge"
},
"contrast": {
"type": "number",
"maximum": 1,
"minimum": -1,
"description": "brightness_contrast -1..1, default 0, around mid-grey"
},
"in_black": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "levels 0..1, default 0, input black point"
},
"in_white": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "levels 0..1, default 1, input white point, above in_black"
},
"midpoint": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "vignette 0..1, default 0.5, where the falloff centres, from the middle (0) to the corners (1)"
},
"vibrance": {
"type": "number",
"maximum": 1,
"minimum": -1,
"description": "vibrance_saturation -1..1, default 0, moves muted colours most and protects skin"
},
"luminance": {
"type": "number",
"maximum": 1,
"minimum": -1,
"description": "hsl_per_range -1..1, default 0"
},
"out_black": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "levels 0..1, default 0, output black"
},
"out_white": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "levels 0..1, default 1, output white"
},
"aggressive": {
"type": "boolean",
"description": "auto_tone default false, scales the detected scene's preset 1.5x"
},
"brightness": {
"type": "number",
"maximum": 1,
"minimum": -1,
"description": "brightness_contrast -1..1, default 0, added to every channel"
},
"red_weight": {
"type": "number",
"maximum": 2,
"minimum": -2,
"description": "black_and_white -2..2, default 0.3"
},
"saturation": {
"type": "number",
"maximum": 1,
"minimum": -1,
"description": "vibrance_saturation -1..1, default 0; hsl_per_range -1..1, default 0"
},
"tint_color": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$",
"description": "black_and_white #RRGGBB tint; omit for neutral grey"
},
"blue_weight": {
"type": "number",
"maximum": 2,
"minimum": -2,
"description": "black_and_white -2..2, default 0.11"
},
"temperature": {
"type": "number",
"maximum": 100,
"minimum": -100,
"description": "temperature_tint -100..100, default 0, positive is warmer"
},
"green_weight": {
"type": "number",
"maximum": 2,
"minimum": -2,
"description": "black_and_white -2..2, default 0.59"
},
"levels_gamma": {
"type": "number",
"maximum": 3,
"minimum": 0.1,
"description": "levels 0.1..3, default 1, midtone gamma"
},
"shadow_protect": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "sharpen 0..1, default 0.2"
},
"highlight_protect": {
"type": "number",
"maximum": 1,
"minimum": 0,
"description": "sharpen 0..1, default 0.2"
},
"luminance_strength": {
"type": "number",
"maximum": 50,
"minimum": 0,
"description": "denoise 0..50, default 10"
},
"chrominance_strength": {
"type": "number",
"maximum": 80,
"minimum": 0,
"description": "denoise 0..80, default 25"
}
},
"description": "This op's settings; omit a key for its default. A key another op takes is refused.",
"additionalProperties": false
}
},
"additionalProperties": false
},
"maxItems": 10,
"minItems": 1,
"description": "Adjustments applied in order, 1..10. Each op takes only its own params keys: brightness_contrast (brightness, contrast), exposure (stops), temperature_tint (temperature, tint), vibrance_saturation (vibrance, saturation), curves (rgb, red, green, blue), levels (in_black, in_white, levels_gamma, out_black, out_white), hsl_per_range (range, hue, saturation, luminance), sharpen (amount, radius, shadow_protect, highlight_protect), blur (radius), denoise (luminance_strength, chrominance_strength, radius), vignette (amount, midpoint, feather), grain (amount), black_and_white (red_weight, green_weight, blue_weight, tint_color), auto_tone (aggressive)."
},
"image_url": {
"type": "string",
"description": "Photo to adjust: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"output_format": {
"enum": [
"png",
"jpeg",
"webp"
],
"type": "string",
"description": "Result encoding: png (the default, free), jpeg or webp ($0.0005, one Images encode at quality 85; a JPEG has no transparency, so transparent pixels come out white)."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Photo to adjust, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.style_transfer",
"description": "[paid: $0.06] Apply a style to a photo while preserving the content (Nano Banana 2.1, told to change only the look). Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR on an empty prompt (name the look), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to the next image.* tool, or open download_url when the result carries one.",
"inputSchema": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"description": "Style descriptor."
},
"image_url": {
"type": "string",
"description": "Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable. |
| image_asset_key | string | Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.segment_at",
"description": "[paid: $0.0005] Mask the side of the subject/background cut that pixel (x, y) falls on (BiRefNet on Cloudflare Images: the main subject, or everything behind it; not one object among several) and return the mask image. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB), VALIDATION_ERROR with reason SIMPLER_EDIT_TOOL_ARGS_INVALID when x or y is missing or outside 0..16384 (take the point from the user, in the image's pixels), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as mask_asset_key to image.inpaint, image.replace_sky or image.replace_background.",
"inputSchema": {
"type": "object",
"required": [
"x",
"y"
],
"properties": {
"x": {
"type": "number",
"maximum": 16384,
"minimum": 0,
"description": "Pixel X of a point on the object (0..16384)."
},
"y": {
"type": "number",
"maximum": 16384,
"minimum": 0,
"description": "Pixel Y of a point on the object (0..16384)."
},
"image_url": {
"type": "string",
"description": "Source photo: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
},
"image_asset_key": {
"type": "string",
"description": "Source photo, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}{
"name": "image.generate_for_edit",
"description": "[paid: $0.06] Generate an image from a text prompt (google/nano-banana-2.1) sized for editing. Returns JSON {images:[{url, asset_key, download_url?, width, height}], price, next} plus a preview; images are stored in this workspace, never provider links, and a result with no download_url says why in download_url_unavailable. Refuses: VALIDATION_ERROR on an empty prompt (describe the image), SIMPLER_IMAGE_PROMPT_REFUSED names the label (sexual, minor, real_person or other_unsafe): rewrite the prompt without it, for example no real person's name or likeness; SIMPLER_IMAGE_PROMPT_CHECK_UNAVAILABLE (the safety check is down, nothing charged: retry later); SIMPLER_IMAGE_OUTPUT_FLAGGED (the output failed the content check and was refunded: change the prompt); SIMPLER_IMAGE_OUTPUT_SCAN_UNAVAILABLE (outputs cannot be checked right now, nothing charged: retry later), INSUFFICIENT_CREDITS (add credits). SIMPLER_EDIT_RESULT_UNDELIVERED means the charge was refunded: retry. NEXT: pass images[0].asset_key as image_asset_key to image.inpaint, image.upscale or image.style_transfer.",
"inputSchema": {
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"description": "Full image description."
},
"image_size": {
"enum": [
"square_hd",
"landscape_4_3",
"landscape_16_9",
"portrait_4_3",
"portrait_16_9"
],
"type": "string",
"description": "Older size names; when sent, they win over destination."
},
"destination": {
"enum": [
"ig_post",
"story_reel",
"square",
"flyer_a4",
"web_banner"
],
"type": "string",
"description": "Where it will be used, which sets the shape: ig_post 4:5 (the default), story_reel 9:16, square 1:1, flyer_a4 (A4 portrait), web_banner 16:9."
},
"request_ref": {
"type": "string",
"description": "Optional idempotency key (1-64 chars: letters, digits, . _ : -). Retrying with the same request_ref and the same arguments within 24 hours returns the first result at $0 with replayed: true; the same request_ref with different arguments is refused (SIMPLER_IMAGE_REQUEST_REF_CONFLICT), and so is a retry whose first result was deleted since (SIMPLER_IMAGE_REQUEST_REF_RESULT_DELETED): send a new request_ref to run it again."
},
"preview_format": {
"enum": [
"png",
"jpeg",
"none"
],
"type": "string",
"description": "Preview block after the JSON, at most 384px on the long edge and never charged: png, jpeg or none. Left out, a PNG result gets a png preview and a JPEG or WebP result a jpeg one. A result with no preview says why in preview_unavailable."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| Parameter | Type | Description |
|---|---|---|
| platform * | string | The marketplace whose listing-image rules to check: shopee, lazada or tiktok_shop. |
| image_url | string | Product photo to check: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both. |
| image_asset_key | string | Product photo to check, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY). |
{
"name": "image.marketplace_check",
"description": "Check a product photo against a marketplace's listing-image rules before the seller uploads it: shopee, lazada or tiktok_shop. Free and read-only: the platform's own deterministic check, which stores nothing, calls no marketplace and uploads nothing. Returns JSON {images: [], price ($0.00), output: {verdict (pass, fail or partial), failed, advice, skipped, file: {width, height, format, bytes}, rules: [{rule, level (required or recommended), status (pass, fail or skipped), expected, measured, fix, reason, source, checked, note}]}, next}. It checks the minimum and maximum size, the square shape, the file type, the file size and a white background; each rule names its source page and the day it was read, and a figure read through search results says UNVERIFIED in its note. The background is read from the pixels, up to 4,194,304 pixels (for example 2048x2048); a JPEG, WebP, GIF, HEIC or interlaced PNG is read through the Images binding at no charge. That one rule is skipped, with every other verdict kept, for a larger image (reason SIMPLER_EDIT_SERVER_PIXELS_TOO_LARGE: run image.convert with width and height 2048, then check the copy), or with the binding's reason when it cannot read the image: SIMPLER_IMAGES_BINDING_ABSENT when this deployment has no Images binding yet (owner step O-2: send a standard PNG copy to check it), or SIMPLER_IMAGES_QUOTA_EXCEEDED, SIMPLER_IMAGES_LEGACY_SUBSCRIPTION, SIMPLER_IMAGES_INPUT_UNREADABLE, SIMPLER_IMAGES_INPUT_TOO_LARGE or SIMPLER_IMAGES_TRANSFORM_FAILED, each with its fix in the rule. Added text and watermarks are skipped with reason SIMPLER_EDIT_MARKETPLACE_TEXT_CHECK_UNAVAILABLE or SIMPLER_EDIT_MARKETPLACE_WATERMARK_CHECK_UNAVAILABLE until the vision check lands (look at the image yourself). Refuses: SIMPLER_MEDIA_INPUT_MISSING (pass the url or the asset_key), SIMPLER_MEDIA_FOREIGN_KEY (use this workspace's asset_key), SIMPLER_MEDIA_URL_REFUSED (use https, data:image or an asset_key), SIMPLER_MEDIA_PIN_TOO_LARGE (under 20MB); VALIDATION_ERROR for a platform outside the list; VALIDATION_ERROR whose reason is SIMPLER_MEDIA_EMPTY, SIMPLER_MEDIA_UNKNOWN_TYPE, SIMPLER_MEDIA_KIND_NOT_ALLOWED, SIMPLER_MEDIA_SVG_REFUSED or SIMPLER_MEDIA_DIMENSIONS_UNREADABLE (send a JPEG, PNG, WebP, GIF or HEIC) or SIMPLER_MEDIA_PNG_CORRUPT (save it again as a standard PNG); for a HEIC only, the binding's reason when it cannot read the size (SIMPLER_IMAGES_BINDING_ABSENT while this deployment has no Images binding: send a JPEG or PNG copy); and INSUFFICIENT_CREDITS or PAYMENT_REQUIRED only when the workspace is already overdrawn or past its spend cap (add credits or raise the cap). NEXT: apply each failed rule's fix, for example image.add_shadow with transparent false and background #ffffff for a white background, or image.convert with format jpeg (and width and height for a size rule) for a file type, size or file-size failure, and check again.",
"inputSchema": {
"type": "object",
"required": [
"platform"
],
"properties": {
"platform": {
"enum": [
"shopee",
"lazada",
"tiktok_shop"
],
"type": "string",
"description": "The marketplace whose listing-image rules to check: shopee, lazada or tiktok_shop."
},
"image_url": {
"type": "string",
"description": "Product photo to check: a public https URL, a data:image/...;base64 URL, or the url/url_path of an earlier image result (max 20MB; PNG, JPEG, WebP or GIF; SVG is refused). Pass this or the matching *_asset_key, not both."
},
"image_asset_key": {
"type": "string",
"description": "Product photo to check, as the asset_key of an earlier image result for this workspace (edit-projects/<tenant>/... or images/<tenant>/...). A key from another workspace is refused (SIMPLER_MEDIA_FOREIGN_KEY)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true
}
}| preset |
| string |
| Encoder profile; default original (the project's own size and aspect). A preset whose aspect differs from the project is refused. |
| project_id * | string | The studio project (vp_...) to render. |
| caption_mode | string | none (default), burned_in (drawn into the video), srt (a separate captions file), or both. |
| poster_time_ms | integer | Required with format "poster_jpg", refused with any other: the timeline millisecond to capture, from 0 to the timeline length minus 1. |
| composition_version | integer | Optional: the composition_version you reviewed (studio.get_composition). If a newer version is saved, the export is refused instead of rendering something you have not seen. |
{
"name": "video.export_create",
"description": "Start rendering a studio project to a file: a video, a GIF, the sound mix alone or one poster still (format). Returns job_id immediately; call video.export with job_id to follow progress and receive a download link valid for 24 hours. Refuses, naming the fix, when the project is not exportable, the preset's aspect differs from the project, or the tenant's active-job or daily limit is reached. format picks the file (mp4_h264_aac, webm_vp9_opus, gif, m4a_aac, wav_pcm, poster_jpg; default mp4_h264_aac). Format refusals: a preset other than original with any format but mp4_h264_aac (SIMPLER_STUDIO_EXPORT_FORMAT_PRESET: send preset original); gif longer than 30 s (SIMPLER_STUDIO_EXPORT_GIF_TOO_LONG: trim, or pick a video format); m4a_aac or wav_pcm with nothing audible (SIMPLER_STUDIO_EXPORT_FORMAT_NO_AUDIO: add or unmute sound); poster_jpg without poster_time_ms inside the timeline, or poster_time_ms with another format (SIMPLER_STUDIO_EXPORT_POSTER_TIME). Repeating the same request within 24 hours returns the same job, except a job still waiting for a free renderer: the repeat replaces it with a fresh attempt (the old job then reads SIMPLER_STUDIO_EXPORT_SUPERSEDED). Pricing: free (rendering runs on platform compute, no provider cost). Limits per workspace: 2 renders at a time (SIMPLER_STUDIO_EXPORT_ACTIVE_CAP) and 60 output minutes per rolling 24 hours (SIMPLER_STUDIO_EXPORT_DAILY_QUOTA); wait, or export a shorter cut. A composition_version older than the saved one is refused (SIMPLER_STUDIO_EXPORT_VERSION_STALE): re-read with studio.get_composition. One export may run 15 min at 1080p and 5 min at 4K, and a sound-only export 15 min at any resolution (SIMPLER_STUDIO_EXPORT_OUTPUT_CAP): trim the timeline or pick a smaller preset. A poster renders the timeline up to its frame, so the cap counts up to its poster_time_ms: pick an earlier one. When every renderer is busy the job waits in a queue (queue_position) and starts on its own; video.export_cancel {job_id} withdraws it. The files are kept 30 days after the export finishes. Nothing is posted, emailed or uploaded anywhere; the result is a file you download.",
"inputSchema": {
"type": "object",
"required": [
"project_id"
],
"properties": {
"format": {
"enum": [
"mp4_h264_aac",
"webm_vp9_opus",
"gif",
"m4a_aac",
"wav_pcm",
"poster_jpg"
],
"type": "string",
"description": "The output file; default mp4_h264_aac. mp4_h264_aac: H.264 video with AAC sound; plays everywhere and takes the platform presets. webm_vp9_opus: VP9 video with Opus sound; smaller files for the web, but encoding takes about three times as long. gif: Silent looping animation, up to 30 s, at most 480 px on the long side and 15 fps. Captions can burn in; no SRT file. m4a_aac: The sound mix only, as AAC 192 kbps; video is never decoded. Captions come only as an SRT file. wav_pcm: The sound mix only, uncompressed 16-bit 48 kHz; video is never decoded. Captions come only as an SRT file. poster_jpg: One JPEG still of the finished frame at the chosen time, with text and burned captions; no SRT file."
},
"preset": {
"enum": [
"original",
"youtube_16x9",
"shorts_9x16",
"tiktok_9x16",
"reels_9x16",
"feed_1x1",
"feed_4x5",
"x_16x9",
"shopee_1x1",
"lazada_1x1",
"tiktok_shop_9x16"
],
"type": "string",
"description": "Encoder profile; default original (the project's own size and aspect). A preset whose aspect differs from the project is refused."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_...) to render."
},
"caption_mode": {
"enum": [
"none",
"burned_in",
"srt",
"both"
],
"type": "string",
"description": "none (default), burned_in (drawn into the video), srt (a separate captions file), or both."
},
"poster_time_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": 0,
"description": "Required with format \"poster_jpg\", refused with any other: the timeline millisecond to capture, from 0 to the timeline length minus 1."
},
"composition_version": {
"type": "integer",
"minimum": 0,
"description": "Optional: the composition_version you reviewed (studio.get_composition). If a newer version is saved, the export is refused instead of rendering something you have not seen."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}{
"name": "studio.cut_transcript_span",
"description": "Cut the words of a transcript span out of the whole video, the way deleting text in a transcript editor does. The span runs from from_caption_id to to_caption_id (row ids from get_transcript) and takes both rows whole; from_word_index and to_word_index narrow it to a word inside the from row and the to row (0-based, in the order get_transcript lists a row's words). The span's time comes out of every lane through the same cut as cut_range, so the scenes, clips, captions and stickers after it move earlier together, and a transcribed row that loses words keeps the words that are left. cut_start_ms and cut_end_ms report the range applied, which is wider than the span when a scene edge needs it. Not undoable. Refuses, naming the fix: an unknown caption id, a span that runs backwards, a word index on a manual caption or a silence row (neither has word timings, so it cuts only as a whole row), a word index past the row's last word, a span that covers no time, a locked track after the span, and whatever else cut_range refuses there (a span past the timeline end, a scene split with no room).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"from_caption_id",
"to_caption_id"
],
"properties": {
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"to_caption_id": {
"type": "string",
"minLength": 1,
"description": "The caption row (vc_) the span ends in; the same id as from_caption_id for a span inside one row."
},
"to_word_index": {
"type": "integer",
"maximum": 99,
"minimum": 0,
"description": "0-based index of the last word to cut in the to row; the row's end when left out."
},
"from_caption_id": {
"type": "string",
"minLength": 1,
"description": "The caption row (vc_) the span starts in."
},
"from_word_index": {
"type": "integer",
"maximum": 99,
"minimum": 0,
"description": "0-based index of the first word to cut in the from row; the row's start when left out."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}{
"name": "studio.move_clips_to_track",
"description": "Move 1 to 200 timeline clips onto another track of the same kind (a b-roll clip to a video-broll track, a title to a text track, music to an audio-music track, a voice clip to an audio-voice track), keeping their spacing; delta_ms also moves them in time (default 0). Stacking follows the track: get_composition lists tracks in stacking order, and a clip on a later video-broll or text track draws over the earlier ones. All or nothing. Refuses, naming the first offender and moving nothing: an unknown clip id or track_id (get_composition lists the ids), a locked source or target track (unlock it with lock_track), a target of another kind (pick a track of the clip's kind, or add one with add_track), a target that would pass its clip cap (move fewer clips, or add a track with add_track), listed clips that overlap each other (move them one at a time), a clip pushed before 0 or past the timeline cap (keep delta_ms within the range the refusal gives), or a landing that overlaps a clip already on the target (use another delta_ms; the refusal gives the nearest one that fits).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"clip_ids",
"track_id"
],
"properties": {
"clip_ids": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"maxItems": 200,
"minItems": 1,
"description": "Timeline clip ids (vcl_) from get_composition's tracks; duplicates count once."
},
"delta_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": -36000000,
"description": "Milliseconds to move the clips in time as they change track; negative moves them earlier. 0 when left out."
},
"track_id": {
"type": "string",
"minLength": 1,
"description": "The target track (vtr_) from get_composition's tracks, of the same role as every listed clip's track."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}| string |
| The item's name as the stock record holds it. |
| stock_item_id * | string | The stock item's id from stock_item_list; kept on the card so it can be refreshed from the record. |
| sell_price_cents * | integer | The selling price in cents (1290 prints as 12.90). |
{
"name": "studio.place_product_card",
"description": "Place a product card: a price_tag text clip showing a stock item's name and price, built from values you already hold. studio.insert_product_card reads them from the stock record for you; use this op inside studio.apply_ops or when the values come from elsewhere. The price prints as the currency code and the amount with two decimals (SGD 12.90), never a symbol. style: tag (name over price, lower left), banner (name and price on one line, bottom centre), price_only (the price alone, large, top right); default tag. A name longer than 32 characters is shortened on screen and kept whole in the card's record. Lands on the first text track, or the one track_id names, at start_ms (default 0) for duration_ms (default 4000). Refuses, naming the fix: a blank product_name, an unknown or non-text track_id, a locked text track, a card past the timeline cap, a full track, or an overlap with another clip (the refusal gives the nearest start_ms that fits).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"stock_item_id",
"product_name",
"sell_price_cents",
"currency"
],
"properties": {
"style": {
"enum": [
"tag",
"banner",
"price_only"
],
"type": "string",
"description": "The card's layout; tag when left out."
},
"currency": {
"enum": [
"USD",
"EUR",
"GBP",
"JPY",
"CNY",
"AUD",
"HKD",
"INR",
"SGD",
"MYR",
"IDR",
"THB",
"PHP",
"VND",
"BND",
"MMK"
],
"type": "string",
"description": "The ISO code the price prints with; the business's sales_settings default_currency."
},
"start_ms": {
"type": "integer",
"maximum": 36000000,
"minimum": 0,
"description": "Timeline millisecond where the card appears; 0 when left out."
},
"track_id": {
"type": "string",
"minLength": 1,
"description": "A text track (vtr_) from get_composition; the first text track when left out."
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_ms": {
"type": "integer",
"maximum": 600000,
"minimum": 100,
"description": "How long the card shows, in milliseconds; 4000 when left out."
},
"product_name": {
"type": "string",
"maxLength": 255,
"minLength": 1,
"description": "The item's name as the stock record holds it."
},
"stock_item_id": {
"type": "string",
"maxLength": 64,
"minLength": 1,
"description": "The stock item's id from stock_item_list; kept on the card so it can be refreshed from the record."
},
"sell_price_cents": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "The selling price in cents (1290 prints as 12.90)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}{
"name": "studio.add_text_overlay",
"description": "Add a text clip to the first text track, or to the one track_id names (a later text track draws over an earlier one). Pick a semantic preset (title/subtitle/lower_third/callout/price_tag) — it carries complete opinionated styling; override only what matters. Keep text SHORT (max 5-7 words).",
"inputSchema": {
"type": "object",
"required": [
"project_id",
"content"
],
"properties": {
"preset": {
"enum": [
"title",
"subtitle",
"lower_third",
"callout",
"price_tag"
],
"type": "string",
"default": "title"
},
"content": {
"type": "string",
"description": "The text (max 500 chars; aim for 5-7 words)."
},
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"description": "Normalized 0-1; 0.5,0.5 is center.",
"additionalProperties": false
},
"track_id": {
"type": "string",
"description": "A text track (vtr_) from get_composition; defaults to the first one."
},
"animation": {
"enum": [
"none",
"fade_in",
"fade_up",
"fade_down",
"slide_left",
"slide_right",
"pop",
"typewriter"
],
"type": "string",
"default": "fade_up"
},
"project_id": {
"type": "string",
"description": "The studio project (vp_…) this tool acts on."
},
"duration_ms": {
"type": "number",
"default": 3000,
"description": "Visible time; keep text readable (3-5s minimum)."
},
"start_time_ms": {
"type": "number",
"default": 0
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": false
}
}