Koskamo

Zeno MCP

An AI bookkeeping service for Swiss small companies that reads mail, books invoices, matches bank statements, and keeps VAT and financial records current via an MCP interface.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

Zeno MCP logo, by Zeno Works AGVendor evidenceStreamable HTTPNo sign-inEndpoint checked 2026-11-23Operated by Zeno Works AG
You need:Every other tool needs an API key, sent as `X-API-Key: ` or `Authorization: Bearer `.Keys are scoped: onboarding (sets up one company, then becomes that company's key), company, or full.
MCP endpoint (Streamable HTTP)
https://app.zeno-works.ch/mcp
Vendor documentation

What its tools do

51 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

51 of 51 have a description · 0 of 51 declare behavior hints · 0 of 46 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Official MCP Registry namespace is tied to zeno-works.ch ·
  • Passed Endpoint is on the registry namespace domain ·
  • Uptime 100% over 90 days
  • Availability 2 of 2 checks passed in 30 days

What you can do with it

  • Read incoming invoices and receipts from email
  • Book invoices with amounts, VAT, and due dates
  • Match bank statement lines to documents
  • Keep balance sheet and VAT return current

Source and maintenance

Vendor evidenceRegistry 0.1.0

Protocol and capabilities

Server
zeno 0.1.0+405ecc9021
MCP protocol negotiated in check
2025-11-25
Tools
51 advertised
Resources
Not advertised
Resource templates
Not advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": true
  },
  "logging": {},
  "extensions": {
    "io.modelcontextprotocol/ui": {}
  },
  "experimental": {}
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

This server is Zeno, an accounting platform — bookkeeping, VAT, payroll, year-end, reconciliation, invoicing and reporting for Swiss fiduciary work. HOW TO WORK IN THESE BOOKS These are real books, not a scratchpad: bookings are expected to trace back to the document that justifies them, and the pipeline is what creates that link. This server hosts many tenants and your credentials decide which of them you are in — call whoami first to see the user you act as and the company, if any, your API key is confined to. 1. Let Zeno read documents; never transcribe one. To book an invoice, receipt, statement or contract, send the FILE (upload_document for an invoice or receipt, upload_intake for anything else) and let the analyzer code it. A journal entry you compose yourself carries no document. Copying figures out of a document into create_gl_journal_entry is always the wrong move, however reliable the figures look — attach_gl_journal_entry_document files the evidence beside the booking, but nothing derives the booking FROM it, which is the whole point of sending the file. Setting a company UP works the same way: analyze_document reads a closing balance sheet into the opening snapshot, extract_open_items an OP-Liste, extract_bank_account a statement's IBAN — the figures those return are what resolve_balance, propose_bank_mapping and the create expect, and typing them in by hand is the same mistake. Start a setup with onboarding_guide: it lists what to ask the user for, which documents to request, and the order those operations feed each other in. 2. Uploading is not the end of the job. What the coder is unsure about is HELD, not posted. Work the open items as a loop: process_status says whether the company is done and lists every open item; book_documents_status and reconcile_bank_status list a process's own, each row with its actions and version. get_decision reads one row with its proposal, candidates and history; focus_decision shows the user the one you are on, and get_decision_focus reads the one they are on. Do one action with book_documents_act or reconcile_bank_act (it returns the next status), and skip with a reason what you may not decide. For rows that share a partner, a bank pattern or an account: list_decision_groups lists them, get_decision_group previews one with its totals, accept_decision_group accepts its members with their versions, each checked as one accept would be; a refused member is skipped and reported. get_work_list counts everything waiting; list_autopost_decisions (outcome="held", or cause=...) lists the proposals — page it with offset until a page comes back empty, never assume one call saw them all. Each kind of open item has its door: - a held proposal: accept_autopost_decision ONLY where agent_acceptable is true (the owner decides which), and a refusal stands. The rest are for a person in the app: tell the user. Booking the held document or movement yourself (code_gl_item, manual_code_entry) is held to the same rule and refused likewise — except past a duplicate guard you have checked: a document the AI holds as a bank booking's receipt books with confirm_different_spend, and a movement whose coding is held with confirm_not_open_item_payment. Confirm only what you checked. The bank-journal export (bank_journal_post, bank_journal_render) can refuse you over a document whose AI proposal is held or was rejected, whatever agent_acceptable says and with no confirmation to pass, even where journal_exportable reads true; the 403 fails your whole request and names the movement to leave out, and a retry with it is refused again while that proposal stays held or rejected. - a decision with suggestion_only=true (a bank movement with no counterparty IBAN) is for a person whatever agent_acceptable says: while it is held, manual_code_entry refuses you on that movement too. A held bank coding whose coding_proposal has no lines proposed nothing: an unmatched movement. - a held expense receipt (cause expense_receipt) is yours to accept even where agent_acceptable is false: with body employee_id + category_id it becomes a DRAFT expense claim, booked only when the claim is approved; receipt_route=card attaches it to its card transaction instead. - an unmatched bank movement: entry_candidates, then link_item, link_invoice or link_gl_open_item, then settle_entry. No document behind it: ask the user for it (upload_intake); only without one, manual_code_entry. When a movement is matched to the wrong document, unlink_item frees it. - a document read wrongly: reanalyze_item, or ask for a better file. Never make an item disappear instead of booking it: delete_item, set_item_triage(irrelevant), ignore_entry and reanalyze_item are not ways to empty a queue — use them only when the user says the item is not real or not theirs, and pass the user's reason (get_item shows the reason a document was set aside with as set_aside_reason). A company is only done when process_status says done. Never reach for companies_create_company to set a company up: it makes a bare tenant with no chart of accounts, no fiscal year and no opening balances, and for an administrator it SUCCEEDS, so nothing refuses you and nothing warns you. 3. A booking with genuinely no document behind it — a reclassification, provision, accrual or year-end adjustment — is made with create_gl_journal_entry, then post_gl_journal_entry. Read the warning each answer carries, warning.rawJournalEntryFromApiKey: the entry has no source document unless one is attached. When something needs booking by hand and evidence DOES exist, there is a door that keeps them together: an ingested document is coded with code_gl_item, a bank movement with manual_code_entry, opening balances with generate_opening_entries then post_opening_entries. A movement that pays a booked bill or invoice (same party; its amount, or the foreign amount the movement's text states) is never coded: link_gl_open_item links it and settle_entry settles it. For an established company whose prior years closed outside Zeno and whose closing balance sheet exists ONLY as figures in the predecessor system (no document to upload), create_balance_sheet takes those closing balances as structured lines and is the sanctioned prerequisite for generate_opening_entries — that, never a hand-built create_gl_journal_entry, is the door for opening balances. When an entry was ALREADY booked by hand and its document turns up afterwards, the retrofit is create_gl_document then attach_gl_journal_entry_document (it works on a posted entry, in a closed period, and makes the VAT close stop reporting the entry as undocumented). That is a repair, not a shortcut past point 1. 4. Closing is a process, and Zeno derives it for you. get_close_overview lists every closable scope — VAT windows, GL periods, fiscal years (their close AND their opening), payroll runs and payroll years — oldest first, and names the one to start with. get_close_todo gives that scope's remaining work as coded items, each carrying what it means, why it matters and the operations that move it. Work the loop: read the list, run the operations the first item names, read it again. An item is not ticked off — it DISAPPEARS when the data is right, so the list re-read is the proof the repair landed. closing_guide spells the loop out. Close oldest first: a correction booked into a month you already closed has nowhere to go. Closing itself is consequential. A closed period refuses every posting dated inside it — including documents ingested afterwards — and the only way back is reopen_gl_period: an explicit accountant action that demands a written reason and goes on the permanent close ledger. Never reopen on your own judgement — only when the user asks for THAT correction — and re-close with gl_period_close_run when it is booked. Close only when the user asks to close THAT period, never to signal that you have finished. When the list's next_action IS the close, it says so (is_close_action), and gl_period_close_checks and get_work_list remain the lower-level reads behind it (close_gl_period is the same close under another name). new_status="soft_closed" still accepts postings; leftover drafts refuse a soft close too. Sealing a year is heavier still. 5. A whole company's history does not go through this connection. These tools carry files as base64, through your context, one at a time — fine for a handful, hopeless for a year of documents. For a backlog, connect a source once (search "storage ingest source" or "email account") or ask the user to drop the folder into Documents → Upload in the app, and then work the queue in point 2. Reconcile a bank by ingesting its CAMT.053 (or a PDF/CSV/Excel export) and settling the entries — never by writing the entries yourself. 6. Your work is recorded as yours. Everything you book or accept here is stamped MCP, not as the account owner acting in person, and the app shows it that way. Act accordingly: a decision the user has not actually made is not one to make on their behalf just because the tool will let you. MOST OF THIS SERVER'S OPERATIONS ARE NOT IN THE TOOL LIST. The listed tools are the common ones; several hundred more exist behind three meta-tools: find_operations(query|tag) - search every available operation (page with offset) describe_operations(names) - get an operation's arguments call_operation(name, args) - run it No result schemas are published in the tool list at all; when you need one in advance, ask for it with describe_operations(names, include_output_schema=True). Before telling the user that something is unsupported, search for it with find_operations. Payroll, VAT returns, expenses, fixed assets, year-end close, settings and integrations are all reachable that way. ## If you have no API key yet Do not stop and ask the user to go and find one. Ask them two things in one message — **the email address on their Zeno account, and whether they already have one** — and pass your own name as `client_name`, because that is the only place the consent screen can identify you; omit it and the person is asked to approve "an unnamed client". **Ask; do not guess.** The server cannot tell you whether an address is registered (that would be an account-enumeration oracle), and the person you are talking to knows. Guessing wrong is not an error you will see — it is a request that never resolves and expires. - They **have an account** (most people do — every current user was created by an administrator): call `request_api_key`. Tell them to open the plain URL it returns, sign in, and approve the request waiting there — we also email them a notice. `collect_api_key` is the only poll, and every answer carries `poll_interval_seconds` — wait that long between calls rather than spinning. **Do not ask the user to tell you when they are done**: you cannot detect it any other way, and a session that hands the wait back to the user is a session that never finishes. When it answers `ready`, follow the `note` on it first: the key is not in use until the client's configuration holds it and the client has restarted, and collecting again issues nothing. With `scope: onboarding` the user has no company yet and the key exists to make one: call `onboarding_guide` next — it needs no key, so read it during that wait. It is the only place that says which documents to ask them for, and asking for them together is the difference between one conversation and seven. There is no code to read out and none to type. If you find yourself about to say "tell me the code", you have misread this. - The user has **no Zeno account at all**: call `start_signup` with their email address. We email them a link; they open it, see who asked, choose a password, and decide whether to connect you. Then poll `collect_api_key` exactly as above. You never see the link and never learn whether that address was already registered — both are deliberate. Somebody signing up this way has no company either, so expect `scope: onboarding` and the setup that follows it.

Tools

51 advertised

find_operations
Advertised by the server during the last successful anonymous check.

Search EVERY operation this server offers, including the ones not in your tool list. The tool list you can see holds only the common operations. Several hundred more — payroll, VAT returns, year-end close, fixed assets, expenses, cash book, settings, integrations, onboarding — are available but unlisted, and this is how you find them. **Search here before concluding that Zeno cannot do something.** Call with no arguments to browse the catalogue of areas (tags) with their operation counts; with ``tag`` to list one area; with ``query`` to search by keyword. **Every word contributes and matching all of them doubles the score**, so extra words widen the search rather than narrowing it — the AND-then-fall-back- to-OR behaviour this said before was removed in `ef47aa9ab`. A word matching an operation's *name* counts for far more than one found in its description, so prefer the noun you are looking for over a sentence. ``limit`` is capped at 100 per call; when more matched, ``next_offset`` gives the ``offset`` that returns the following page, so an area of any size can be read in full. Paging is stable — the ranking is deterministic and the registry is fixed at startup, so no operation is dropped or repeated between pages. Pass a promising ``name`` to ``describe_operations`` for its arguments, then run it with ``call_operation``.

find_operations input schema
{
  "type": "object",
  "properties": {
    "tag": {
      "type": "string",
      "default": ""
    },
    "limit": {
      "type": "integer",
      "default": 25
    },
    "query": {
      "type": "string",
      "default": ""
    },
    "offset": {
      "type": "integer",
      "default": 0
    }
  },
  "additionalProperties": false
}
describe_operations
Advertised by the server during the last successful anonymous check.

Get the full argument schema for operations found via ``find_operations``. Returns each operation's description and JSON-Schema arguments — everything a listed tool would have shown you. ``include_output_schema`` is the ONLY way to obtain an operation's result shape: ``tools/list`` publishes no output schema for any operation, listed or not (they are 67 % of the payload, and a schema describing a *result* is not what you need to *choose* a tool). Ask for it when you must know the shape in advance; the result itself comes back as JSON either way, so usually you do not. Up to 10 operations per call; anything beyond that is reported in ``omitted`` rather than dropped.

describe_operations input schema
{
  "type": "object",
  "required": [
    "names"
  ],
  "properties": {
    "names": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "include_output_schema": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}
call_operation
Advertised by the server during the last successful anonymous check.

Run any operation by name — the ones in your tool list and the unlisted ones alike. ``name`` is an operation name from ``find_operations``; ``arguments`` is the object described by ``describe_operations`` (omit it for an operation that takes none). The result, and any error, are exactly what calling the operation directly would give you.

call_operation input schema
{
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "arguments": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "additionalProperties": false
}
request_api_key
Advertised by the server during the last successful anonymous check.

Ask the user to hand this session a Zeno API key. **Use this first** — every current Zeno user already has an account. `email` is the address on their Zeno account. **Ask them for it**; you cannot guess it, and the request is aimed by it — Zeno will only show it to somebody signed in as the owner of that address. Pass `client_name` too: it is the only thing identifying you on the approval page, and without it the person is asked to trust "an unnamed client". Returns a plain `verification_uri`. Tell the user to open it, sign in, and approve the request waiting there; we also email them a notice. **There is no code**, in either direction: nothing to read out, nothing to type, and nothing for you to put in a link. Then call `collect_api_key` with the `claim_token` returned here, waiting `poll_interval_seconds` between calls, until its `status` stops being `pending`. The user chooses on the page what the key may reach — usually a single company — so expect the key to be scoped, and read a 403 elsewhere as that scope rather than as a failure. The answer is the same whether or not that address has a Zeno account. If nothing ever arrives, the likeliest cause is a mistyped address — ask, do not assume.

request_api_key input schema
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string"
    },
    "client_name": {
      "type": "string",
      "default": ""
    }
  },
  "additionalProperties": false
}
start_signup
Advertised by the server during the last successful anonymous check.

Create a Zeno account for somebody who does not have one yet. Use `request_api_key` first if they might already have an account — this tool cannot tell you, and deliberately never will. We email `email` a verification link. The user opens it, sees that you asked (by the name in `client_name`, shown as an unverified claim), chooses their own password, and decides separately whether to connect you. **You never see the link**, and you must not ask for it: it is what proves they own the mailbox, and a link you could repeat is a link anyone could. Then poll `collect_api_key` with the `claim_token` returned here. `denied` is terminal and means the person chose to create the account without connecting you, or refused outright — tell them plainly and stop; do not start another.

start_signup input schema
{
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string"
    },
    "client_name": {
      "type": "string",
      "default": ""
    }
  },
  "additionalProperties": false
}
collect_api_key
Advertised by the server during the last successful anonymous check.

Collect the key once the user has approved. `status` is one of: - `pending` — nobody has approved yet, or (with `throttled: true`) we were rate-limited and learned nothing. **Wait `poll_interval_seconds`, then call again** — every answer carries it. Do not ask the user to tell you when they are done: you cannot detect it any other way, and handing the wait back to the user is how these sessions die. - `ready` — `api_key` is the credential. **Follow the `note` that comes with it before anything else**: the key does nothing until the client's configuration holds it, and calling again issues nothing. `scope` says what it can reach (`onboarding`, `company` or `full`) and `company_id` which company, if any. **When `scope` is `onboarding` the user has no company yet and this key exists to make one: call `onboarding_guide` next** — it needs no key, so read it while the user installs this one. It is the only place that says which documents to ask them for, and asking for them all at once is the difference between one conversation and seven. - `collected` — this request already issued its key and nothing new was issued. Follow the `note`. - `denied` — **stop.** Do not start another request; a human refused it ("that was not me"). Raising a second one is how a refusal turns into a prompt the user has to refuse repeatedly. - `expired` — the request timed out. **Do not simply open another one**, and what to do depends on which door you opened, which only you know. `request_api_key`: ask whether they saw the approval page, and call it again if they want to retry. `start_signup`: they may have finished registering in the browser meanwhile, in which case they now HAVE an account and `request_api_key` is the path — ask. If they did not, tell them plainly that it timed out; starting another signup without asking is how a refusal turns into a prompt they have to refuse repeatedly. A `pending` answer is a success, not an error; it is deliberately not an error status, because an error would be read as "do not retry" and retrying is the entire protocol. A rate limit mid-wait is reported the same way, with `throttled: true` and a longer `poll_interval_seconds` — slow down, do not stop.

collect_api_key input schema
{
  "type": "object",
  "required": [
    "claim_token"
  ],
  "properties": {
    "claim_token": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
whoami
Advertised by the server during the last successful anonymous check.

Which user this request acts as, and which company's books it is bound to (jwt or API key). Zeno serves every tenant from one host, and an API key is opaque — nothing else tells a connected agent whose books it is about to write. Call this FIRST when working over MCP: ``company_scoped: true`` means this connection's data access is confined to ``company_id`` — ``company_name`` names it (null here means the bound company no longer exists), no other tenant is reachable, and the admin endpoints are refused however privileged the owner is. ``is_admin`` is that owner's bit: worth nothing outside this company, still full authority inside it, so a scoped key with ``is_admin: true`` may write these books even when ``company_role`` is null. ``company_scoped: false`` means the credentials carry the owner's full principal and ``memberships`` lists the companies it can act in. Read-only and cheap — at most one lookup. ZET-171, ZET-176. ``credential_purpose`` says which kind of credential this is, and is what the withholding rule keys on (SP-08): anything that is neither ``full`` nor ``session`` is confined, and gets ``memberships`` **withheld — null, not empty**. Working over MCP, what you book or accept is recorded as MCP — not as this user acting in person — and the app displays it that way. ``capabilities`` says what this caller may do, each verdict computed from the predicate the gate itself evaluates (SP-12) — so an agent learns what it cannot do before it collides rather than after. A credential confined **to a company** gets the entries whose verdict is a fact about the *credential*; the one that would read the owner's estate (``create_company``) is omitted, because its verdict would disclose a sibling tenant. A credential confined to **no** company — an onboarding key — has no sibling to disclose and does get it, which is the one operation such a key exists to call. ``pending_admin_actions`` is present and empty until PRE-03/PRE-04 fill it.

whoami input schema
{
  "type": "object",
  "required": [],
  "properties": {}
}
list_companies
Advertised by the server during the last successful anonymous check.

List companies (jwt, scoped). Non-admins see only their member companies.

list_companies input schema
{
  "type": "object",
  "required": [],
  "properties": {}
}
get_company
Advertised by the server during the last successful anonymous check.

Get one company (jwt, scoped). 403 for a non-member non-admin, 404 if absent.

get_company input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "company_id": {
      "type": "string"
    }
  }
}
global_search
Advertised by the server during the last successful anonymous check.

Full-text search across emails + items, ranked by ``ts_rank_cd``, scoped (A1). ``archive_status`` constrains item results only (the Documents → Archive page passes ``archived`` so its search box never surfaces pending/triage-parked items).

global_search input schema
{
  "type": "object",
  "required": [
    "q"
  ],
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1
    },
    "type": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(email|item)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "default": 20,
      "maximum": 200,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "source": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(email|epost|upload|bexio|abacus)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "direction": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(payable|receivable)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "archive_status": {
      "anyOf": [
        {
          "enum": [
            "pending",
            "archiving",
            "archived",
            "failed"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
process_status
Advertised by the server during the last successful anonymous check.

Is this company done, and what next (ZEN-2). Start and end here. ``done``: no held AI proposal, no unmatched or partly matched bank movement, Suspense explained, no unreadable, waiting, unreviewed or rejected-unbooked document (``null`` when it cannot be checked). Lists every open item; work them through ``book_documents_act`` or ``reconcile_bank_act`` as each row's ``process`` says. Read-only.

process_status input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "company_id": {
      "type": "string"
    }
  }
}
book_documents_act
Advertised by the server during the last successful anonymous check.

One action on one open document (ZEN-2): an action its row offers, with its ``version``. ``accept`` posts the held proposal; ``reject`` closes it unposted (a person books the document); ``keep``, ``reanalyze``, ``mark_irrelevant``, ``delete``; ``skip`` / ``unskip`` leave it to a person. All but accept and unskip need a ``reason``. Recorded with your user; an agent decides a hold only where the owner allowed it (a hold for autonomy off or the amount cap: ``warnings`` says so). Returns the new status. On this MCP surface a `null` argument means "not provided": it is dropped before the request is sent, exactly as if the field were omitted.

book_documents_act input schema
{
  "type": "object",
  "required": [
    "company_id",
    "decision_id",
    "action",
    "version"
  ],
  "properties": {
    "action": {
      "enum": [
        "accept",
        "reject",
        "keep",
        "reanalyze",
        "mark_irrelevant",
        "delete",
        "ignore",
        "skip",
        "unskip"
      ],
      "type": "string"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "version": {
      "type": "string",
      "maxLength": 32
    },
    "company_id": {
      "type": "string"
    },
    "decision_id": {
      "type": "string",
      "maxLength": 200
    }
  }
}
reconcile_bank_act
Advertised by the server during the last successful anonymous check.

One action on one open bank movement (ZEN-2), with its row's ``version``: ``accept`` its held proposal, ``ignore`` it, ``skip`` / ``unskip``. Ignore and skip need a ``reason``; recorded with your user. Link and settle through the row's ``operations``. Returns the new status. On this MCP surface a `null` argument means "not provided": it is dropped before the request is sent, exactly as if the field were omitted.

reconcile_bank_act input schema
{
  "type": "object",
  "required": [
    "company_id",
    "decision_id",
    "action",
    "version"
  ],
  "properties": {
    "action": {
      "enum": [
        "accept",
        "reject",
        "keep",
        "reanalyze",
        "mark_irrelevant",
        "delete",
        "ignore",
        "skip",
        "unskip"
      ],
      "type": "string"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ]
    },
    "version": {
      "type": "string",
      "maxLength": 32
    },
    "company_id": {
      "type": "string"
    },
    "decision_id": {
      "type": "string",
      "maxLength": 200
    }
  }
}
accept_autopost_decision
Advertised by the server during the last successful anonymous check.

One-click accept of a **held** decision (accountant) — posts the AI's proposal. A person's accept overrides the soft guardrails. An agent's is refused (403) unless the row is ``agent_acceptable`` or an expense receipt. Closed period, sealed year, unknown account: 409/422. The row flips ``held → posted`` (again: 409); ``accepted_by_kind`` records the channel (``mcp`` over MCP). An agent's accept of a hold for autonomy off or the amount cap answers ``warning.personOnlyActByAgent``. Optional ``body``: ``expense:receipt:item:`` needs ``employee_id`` + ``category_id``; ``autopost:capitalize:`` needs ``fixed_asset_category_id`` when the hold has none, and ``needs_split_source`` a ``reclassify_from_account_code``.

accept_autopost_decision input schema
{
  "type": "object",
  "required": [
    "company_id",
    "decision_id"
  ],
  "properties": {
    "body": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "category_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "employee_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "useful_life_months": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": 1
                },
                {
                  "type": "null"
                }
              ]
            },
            "fixed_asset_category_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "reclassify_from_account_code": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "description": "Optional ``POST /autopost-decisions/{id}/accept`` body; omit it for other kinds."
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "type": "string"
    },
    "decision_id": {
      "type": "string"
    }
  }
}
upload_intake
Advertised by the server during the last successful anonymous check.

Upload ANY file; the system decides what it is (the unified intake queue, the web app's Documents > Upload). ``file_base64``: raw bytes, base64. Prefer this unless plainly an invoice; always for bank statements (CAMT.053 XML, PDF, CSV or .xlsx; not legacy .xls), matched to the registered bank account by IBAN; journal/accounting exports; balance sheets, P&L and VAT filings. A mixed .zip is routed per file. Returns 202 and the queue row; poll ``get_intake`` for the outcome and targets. An unroutable file fails with its reason, never dropped.

upload_intake input schema
{
  "type": "object",
  "required": [
    "company_id",
    "filename",
    "file_base64"
  ],
  "properties": {
    "filename": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
upload_document
Advertised by the server during the last successful anonymous check.

Upload an INVOICE or RECEIPT (PDF, image, or .zip of them) for analysis. ``file_base64`` is the file's raw bytes, base64-encoded. ``direction`` is ``payable`` (incoming supplier invoice) or ``receivable`` (outgoing). Creates Item(s) and queues extraction. This door is invoices-only: it never routes a file onward by type, so a bank statement, a journal export or a balance sheet sent here is analysed and then just sits as a document. For anything that is not an invoice — or when you are not sure what the file is — use ``upload_intake``.

upload_document input schema
{
  "type": "object",
  "required": [
    "company_id",
    "filename",
    "file_base64"
  ],
  "properties": {
    "filename": {
      "type": "string"
    },
    "direction": {
      "type": "string",
      "default": "payable"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
get_intake
Advertised by the server during the last successful anonymous check.

Get one intake row by id (scoped to its company: 404/403 split).

get_intake input schema
{
  "type": "object",
  "required": [
    "intake_id"
  ],
  "properties": {
    "intake_id": {
      "type": "string"
    }
  }
}
list_items
Advertised by the server during the last successful anonymous check.

List/filter items, scoped to the caller's member companies (A1). Optional ``period`` (``YYYY-MM``) filters by the item's effective date (invoice date, falling back to the Europe/Zurich-local ingestion date); a malformed value returns 422 ``{"msg": "period must be YYYY-MM"}``. ``exclude_triage_status`` drops items carrying that triage verdict (NULL-safe; for ``unrelated`` not a booked one, ZCT-954). Optional ``q``: a case-insensitive substring match over the filename and both counterparty names (linked, and extracted ``data.company``). ``duplicate`` filters on the row's ``is_duplicate`` flag (ZET-413); ``credit_note`` on its ``is_credit_note`` flag (ZET-429) — both server-side, so ``total`` stays exact. ``posted`` filters on the posting badge (ZCT-811): ``true`` = posted, ``false`` = held, reversed or not booked; a copy filed with the booking of the same invoice ("Already booked", ``posting.filed_with``) is in neither (ZEN-1). ``overdue`` (D08-G14): due before today (Zurich), still owing, not a credit note. Owing is the open item's rest; a document with no open item is owing until a bank movement is linked to it (R2-2).

list_items input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "q": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "paid": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "default": 20,
      "maximum": 200,
      "minimum": 1
    },
    "order": {
      "enum": [
        "date_desc",
        "due_asc"
      ],
      "type": "string",
      "default": "date_desc"
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "period": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "posted": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "anyOf": [
        {
          "enum": [
            "email",
            "epost",
            "upload",
            "bexio",
            "abacus",
            "filesystem",
            "clouddrive"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "overdue": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "direction": {
      "anyOf": [
        {
          "enum": [
            "payable",
            "receivable",
            "unknown"
          ],
          "type": "string",
          "description": "Query-filter vocabulary for ``Item.direction`` — NEVER a column type.\n\n``Item.direction`` is tri-state (``payable``/``receivable``/NULL = unknown);\nthe PG ``direction`` enum stays binary. This enum exists so list endpoints\ncan accept ``direction=unknown`` (→ ``direction IS NULL``) alongside the two\nreal values without widening the DB enum."
        },
        {
          "type": "null"
        }
      ]
    },
    "duplicate": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "credit_note": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "triage_status": {
      "anyOf": [
        {
          "enum": [
            "irrelevant",
            "needs_review",
            "unrelated"
          ],
          "type": "string",
          "description": "AI ingest-gate verdict parking an item in the Inbox (pipeline §\"Ingest triage\",\n§\"Relevance gate\").\n\nNULL = not triaged / normal flow. ``irrelevant``/``needs_review`` are the\nmetadata-triage verdicts on a held-unusable item (a human override flips\nbetween them; re-analysis resets the columns to NULL). ``unrelated`` is the\nrelevance-gate verdict on a *cleanly extracted* invoice that doculyse's\nentity resolver matched to neither party of the owning company — the item is\nheld ``pending`` (never archived, no counterparty, never coded) until a human\nrestores it (clears the verdict) or deletes it."
        },
        {
          "type": "null"
        }
      ]
    },
    "archive_status": {
      "anyOf": [
        {
          "enum": [
            "pending",
            "archiving",
            "archived",
            "failed"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "analysis_failed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "counterparty_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "exclude_triage_status": {
      "anyOf": [
        {
          "enum": [
            "irrelevant",
            "needs_review",
            "unrelated"
          ],
          "type": "string",
          "description": "AI ingest-gate verdict parking an item in the Inbox (pipeline §\"Ingest triage\",\n§\"Relevance gate\").\n\nNULL = not triaged / normal flow. ``irrelevant``/``needs_review`` are the\nmetadata-triage verdicts on a held-unusable item (a human override flips\nbetween them; re-analysis resets the columns to NULL). ``unrelated`` is the\nrelevance-gate verdict on a *cleanly extracted* invoice that doculyse's\nentity resolver matched to neither party of the owning company — the item is\nheld ``pending`` (never archived, no counterparty, never coded) until a human\nrestores it (clears the verdict) or deletes it."
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
get_item
Advertised by the server during the last successful anonymous check.

Item metadata (any source).

get_item input schema
{
  "type": "object",
  "required": [
    "item_id"
  ],
  "properties": {
    "item_id": {
      "type": "string"
    }
  }
}
upload_bank_statement
Advertised by the server during the last successful anonymous check.

Import a BANK STATEMENT. CAMT.053 XML books at once; PDF, CSV, .xlsx queue (``list_bank_statement_imports``); .zip splits; legacy .xls, UTF-16 CSV refused. CSV/.xlsx imports only if opening + lines = closing, else nothing; with no printed opening/closing balance it fails until the person's balances per ``balances_needed`` (and the account if no IBAN) come via ``assign_bank_statement_import_accounts``. ``file_base64``: raw bytes, base64.

upload_bank_statement input schema
{
  "type": "object",
  "required": [
    "company_id",
    "filename",
    "file_base64"
  ],
  "properties": {
    "filename": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
upload_accounting_import
Advertised by the server during the last successful anonymous check.

Import a JOURNAL EXPORT (CSV/Excel) from another accounting system (``source_system``, e.g. bexio, abacus) and match it against the bank entries. ``file_base64`` is the file's raw bytes, base64.

upload_accounting_import input schema
{
  "type": "object",
  "required": [
    "company_id",
    "filename",
    "file_base64",
    "source_system"
  ],
  "properties": {
    "filename": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "type": "string"
    },
    "source_format": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "source_system": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
upload_accounting_document
Advertised by the server during the last successful anonymous check.

Upload a company's BALANCE SHEET, P&L or VAT return (PDF, PNG, JPEG, XLSX) to be read; queued, follow ``get_accounting_document``. ``fiscal_year`` when the file does not say; ``force`` re-reads a file already read. ``file_base64`` is the file's raw bytes, base64.

upload_accounting_document input schema
{
  "type": "object",
  "required": [
    "company_id",
    "filename",
    "file_base64"
  ],
  "properties": {
    "force": {
      "type": "boolean",
      "default": false
    },
    "filename": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "type": "string"
    },
    "fiscal_year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "additionalProperties": false
}
attach_cash_entry_receipt
Advertised by the server during the last successful anonymous check.

Attach a receipt to a posted cash-book entry: a new file (``file_base64``, the raw bytes, base64) OR an existing document's ``item_id``, exactly one. ``override_duplicate`` only after a duplicate refusal you checked.

attach_cash_entry_receipt input schema
{
  "type": "object",
  "required": [
    "company_id",
    "register_id",
    "entry_id"
  ],
  "properties": {
    "item_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "entry_id": {
      "type": "string"
    },
    "filename": {
      "type": "string",
      "default": "receipt.pdf"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "register_id": {
      "type": "string"
    },
    "override_duplicate": {
      "type": "boolean",
      "default": false
    }
  },
  "additionalProperties": false
}
attach_claim_receipt
Advertised by the server during the last successful anonymous check.

Attach a receipt to an expense-claim line: a new file (``file_base64``, the raw bytes, base64) OR an existing document's ``item_id``, exactly one; repeat that ``item_id`` as ``receipt_from_upload`` when ``ingest_expense_receipt`` returned it. ``override_duplicate`` only after a duplicate refusal you checked.

attach_claim_receipt input schema
{
  "type": "object",
  "required": [
    "company_id",
    "claim_id",
    "line_no"
  ],
  "properties": {
    "item_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "line_no": {
      "type": "integer"
    },
    "claim_id": {
      "type": "string"
    },
    "filename": {
      "type": "string",
      "default": "receipt.pdf"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "override_duplicate": {
      "type": "boolean",
      "default": false
    },
    "receipt_from_upload": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    }
  },
  "additionalProperties": false
}
ingest_expense_receipt
Advertised by the server during the last successful anonymous check.

Upload ONE expense receipt to put on a claim: it is held from automatic booking; poll ``get_expense_receipt``, then attach its ``item_id`` with ``attach_claim_receipt``. ``file_base64`` is the file's raw bytes, base64.

ingest_expense_receipt input schema
{
  "type": "object",
  "required": [
    "company_id",
    "filename",
    "file_base64"
  ],
  "properties": {
    "filename": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
import_payroll_employees
Advertised by the server during the last successful anonymous check.

Import employees from the filled-in template (``get_payroll_employee_import_template``, .xlsx/.csv). All or nothing; existing ``employee_no`` rows are skipped. ``dry_run`` only reports. ``file_base64`` is the file's raw bytes, base64.

import_payroll_employees input schema
{
  "type": "object",
  "required": [
    "company_id",
    "filename",
    "file_base64"
  ],
  "properties": {
    "dry_run": {
      "type": "boolean",
      "default": false
    },
    "filename": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "file_base64": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
gl_trial_balance
Advertised by the server during the last successful anonymous check.

Per-account debit/credit columns for one fiscal year, with totals. ``fiscal_year`` (year label) defaults to the latest year posted in; ``period_id`` narrows to one period of it. No all-years mode — account identity is ``(company, fiscal year, code)``, so aggregating double-counts silently (ZET-155). Unknown year/period → 404; period outside the year → 422. Cut by the line's stamped ``fiscal_year_id``, not its posting date; ``…/financial-statements`` cuts by posting date inside the same year's stored window, so the two differ only on a line dated outside the year it is stamped to. ``fiscal_year_cut`` names the cut (ZET-166).

gl_trial_balance input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "period_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "type": "string"
    },
    "fiscal_year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
list_gl_accounts
Advertised by the server during the last successful anonymous check.

List the postable chart (CompanyMember). ``fiscal_year`` filters to one year's chart (the chart is FY-scoped, so codes repeat across years).

list_gl_accounts input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "default": 50,
      "maximum": 200,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "company_id": {
      "type": "string"
    },
    "fiscal_year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
get_gl_account_ledger
Advertised by the server during the last successful anonymous check.

One account's ledger (Kontoauszug) — every booking that touched it, in date order, with Soll/Haben and the running balance after each line (CompanyMember). No fiscal-year parameter: the chart is FY-owned, so ``account_id`` already fixes the year. Posted **and** reversed entries are included (a reversal is a second posted entry, so both legs must show or the balance is wrong); drafts are not. The running balance is carried across pages by the server — ``page_opening_balance`` enters this page's first row, while ``closing_balance``/``total_debit``/``total_credit`` describe the whole window. 404 when the account is not this company's; 422 when ``date_from`` is later than ``date_to``.

get_gl_account_ledger input schema
{
  "type": "object",
  "required": [
    "company_id",
    "account_id"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "default": 100,
      "maximum": 200,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "date_to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "date_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "account_id": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "dimension_value_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 21
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
list_gl_periods
Advertised by the server during the last successful anonymous check.

The company's **accounting periods** — the months a journal entry may post into (CompanyMember read). A period belongs to one fiscal year and carries ``period_no`` (1..12 within the year), ``date_from``/``date_to`` and a ``status``: ``open`` accepts postings, ``soft_closed`` still accepts them, and ``closed``/``year_closed`` refuse them — a posting date inside a closed period fails until an accountant explicitly reopens the period (``POST …/gl/periods/{period_id}/reopen``, reason required, recorded in the close-run ledger — ZET-161). ``fiscal_year_id`` narrows to one year; omitted, every year's periods come back. This is **not** the VAT filing calendar — those are the ``gl_vat_period`` rows of ``GET …/gl/vat/periods``, which have their own quarterly/monthly cadence and their own ``filed``/``paid`` sealing. Use this list to find the ``period_id`` a manual journal entry needs, and to check *why* a posting date was refused.

list_gl_periods input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "company_id": {
      "type": "string"
    },
    "fiscal_year_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
list_gl_open_items
Advertised by the server during the last successful anonymous check.

One page of the AR/AP subledger (member read). ``direction`` filters server-side (ZCT-577); omit it for both. ``commercial_document_id`` narrows to one document's item (D09-G13); not with ``as_of``. ``as_of`` (ZCT-577) reconstructs each item's open amount from posted journal lines dated on or before that date, instead of reading today's cached amount. Items are considered **regardless of their current status** (one settled since that date was open on it), so ``status`` is refused alongside it rather than silently ignored. ``original_amount`` and ``status`` on each row remain the item's own, current facts.

list_gl_open_items input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "as_of": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "default": 50,
      "maximum": 200,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "status": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "enum": [
              "open",
              "partial",
              "settled",
              "overdue",
              "written_off",
              "cancelled"
            ],
            "type": "string"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "direction": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(receivable|payable)$"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "type": "string"
    },
    "counterparty_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 21
        },
        {
          "type": "null"
        }
      ]
    },
    "commercial_document_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 21
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
list_gl_journal_entries
Advertised by the server during the last successful anonymous check.

List journal entries. ``period_ids`` narrows to specific fiscal periods, and is how a caller asks for **one fiscal year**: the year's period ids (ZET-285). Without it the route lists every fiscal year. ``total`` is the filtered total. ``untagged_subledger_control=true`` narrows to the entries that posted to an AR/AP control account **without** touching the subledger, under ``allow_untagged_control`` (ZET-150) — the postings a subledger-vs-control divergence traces back to. ``origin``: one entry origin (ZEN-42). ``account_id``: entries with a line on it; ``date_from``/``date_to``: posting date; ``amount_min``/``amount_max``: the entry total.

list_gl_journal_entries input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "q": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "sort": {
      "enum": [
        "entry_no",
        "posting_date",
        "total"
      ],
      "type": "string",
      "default": "posting_date"
    },
    "limit": {
      "type": "integer",
      "default": 50,
      "maximum": 200,
      "minimum": 1
    },
    "order": {
      "enum": [
        "asc",
        "desc"
      ],
      "type": "string",
      "default": "desc"
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "origin": {
      "anyOf": [
        {
          "enum": [
            "human",
            "system",
            "ai",
            "api",
            "mcp",
            "chat"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "date_to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "date_from": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "account_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64
        },
        {
          "type": "null"
        }
      ]
    },
    "amount_max": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
        },
        {
          "type": "null"
        }
      ]
    },
    "amount_min": {
      "anyOf": [
        {
          "type": "number",
          "minimum": 0
        },
        {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "type": "string"
    },
    "period_ids": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          },
          "maxItems": 200
        },
        {
          "type": "null"
        }
      ]
    },
    "coding_guessed": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    },
    "untagged_subledger_control": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
get_gl_journal_entry
Advertised by the server during the last successful anonymous check.

One entry + lines, plus the subledger rows it produced/touched (Gap B detail surfacing): its ``gl_vat_posting`` rows, its ``gl_vat_zero_posting`` turnover-only declarations (zero-rated/exempt output — R2-13b: these have no VAT line to pair, so without them a correctly coded 0 % line is indistinguishable from an untagged one) and referenced ``gl_open_item`` rows. A declared base line also carries the resolved code on ``lines[].vat_code``. Drafts carry empty lists. ``documents`` carries the accounting documents explicitly attached to the entry (``POST …/documents``) — the evidence for a hand-booked entry; a pipeline-created entry carries its document through ``source_ref_*`` instead and lists nothing here. Member read, like the rest of the detail.

get_gl_journal_entry input schema
{
  "type": "object",
  "required": [
    "company_id",
    "entry_id"
  ],
  "properties": {
    "entry_id": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    }
  }
}
create_gl_journal_entry
Advertised by the server during the last successful anonymous check.

Create a **draft** journal entry by hand — accountant. It carries NO source document unless you name one. ``document_id`` attaches an existing ``gl_document`` (``POST …/gl/documents``) as its source document; ``POST …/gl/journal-entries/{id}/documents`` does it later, also on a posted entry. It is for a booking with no document behind it (a reclassification, provision, accrual or year-end adjustment); over an API key the answer carries the warning ``warning.rawJournalEntryFromApiKey``. **Never transcribe a document into it.** Each of these has a door that keeps the evidence attached: - an invoice, receipt or statement → ingest the file (``POST …/uploads/`` or ``…/intake``), then accept what the coder proposes (``…/autopost-decisions``); - an already-ingested item → ``POST …/gl/items/{item_id}/coding``; - a bank movement with no document → ``POST /bank-entries/{entry_id}/manual-coding``; - opening balances → ``POST …/opening-entries`` and post the proposal. ``auto_reverse_date`` arms the entry as a one-shot accrual: once posted, the auto-reversal executor reverses it in full on/after that date. It must be after ``posting_date`` (422 otherwise), and it can only be set while the entry is a draft — on the create here or on the ``PUT`` replace. Drafts do not touch the books until ``…/post``. See ``doc/pipeline.md §"Accounting"``. On this MCP surface a `null` argument means "not provided": it is dropped before the request is sent, exactly as if the field were omitted.

create_gl_journal_entry input schema
{
  "type": "object",
  "required": [
    "company_id",
    "period_id",
    "posting_date",
    "lines"
  ],
  "properties": {
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "account_id",
          "line_role"
        ],
        "properties": {
          "vat": {
            "anyOf": [
              {
                "type": "object",
                "required": [
                  "code"
                ],
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "amount": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "string",
                        "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "description": "VAT tag for a manual journal line (Gap B — manual-booking metadata completeness).\n\nTag **both** legs of a taxable movement with the same ``code`` (a company\n``gl_vat_code``): the taxable **base** line *and* its paired **VAT-control** line —\nposting groups the entry's lines by this tag to pair base with VAT line, and the\ncomposition guard refuses (409) any VAT-control line left untagged (ZET-158: a\nbase-line-only tag has no working path). One tagged control line per code.\n``amount`` (the tax, a magnitude) is read from the **base** line's tag and falls\nback to the paired VAT line's amount — when several base lines share one VAT line,\ngive each base line its own ``amount``, or every pair books the full VAT-line\namount. Exception: a catalog-linked **zero-rated output** code (0 % rate) books no\nVAT-control line at all — tag only the base line(s); each line tagged with such a\ncode declares its turnover once. On post the entry gains ``gl_vat_posting`` rows so\nthe lines reach the MWST-Abrechnung (``doc/pipeline.md §\"VAT\"``)."
              },
              {
                "type": "null"
              }
            ]
          },
          "chf_only": {
            "type": "boolean",
            "default": false
          },
          "currency": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 3
              },
              {
                "type": "null"
              }
            ]
          },
          "line_role": {
            "enum": [
              "bank",
              "ar",
              "ap",
              "revenue",
              "expense",
              "vat",
              "payroll_liability",
              "salary_expense",
              "fixed_asset",
              "depreciation",
              "inventory",
              "cogs",
              "clearing",
              "rounding",
              "fx_gain_loss",
              "suspense",
              "inventory_count",
              "inventory_reserve"
            ],
            "type": "string"
          },
          "open_item": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "create": {
                    "type": "boolean",
                    "default": false
                  },
                  "due_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "description": "Open a new AR/AP subledger item from a manual control line (Gap B).\n\nSet ``create=true`` on the line posting to the AR/AP control account; ``due_date`` seeds\naging. Direction is derived from the account's ``control_type``. To settle/adjust an\n*existing* item instead, pass ``open_item_id`` on the line (its balance is rebuilt on post)."
              },
              {
                "type": "null"
              }
            ]
          },
          "account_id": {
            "type": "string"
          },
          "amount_base": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "open_item_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 21
              },
              {
                "type": "null"
              }
            ]
          },
          "amount_currency": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "string",
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
              },
              {
                "type": "null"
              }
            ]
          },
          "counterparty_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "dimension_value_id": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 21
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "minItems": 1
    },
    "currency": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 3
        },
        {
          "type": "null"
        }
      ]
    },
    "period_id": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    },
    "entry_type": {
      "enum": [
        "manual",
        "invoice",
        "payment",
        "bank",
        "vat",
        "payroll",
        "accrual",
        "deferral",
        "depreciation",
        "inventory",
        "closing",
        "adjustment",
        "reversal"
      ],
      "type": "string",
      "default": "manual"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "document_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "posting_date": {
      "type": "string",
      "format": "date"
    },
    "rebooks_entry_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "auto_reverse_date": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "customs_assessment": {
      "anyOf": [
        {
          "type": "object",
          "required": [
            "assessment_no",
            "assessed_on",
            "assessed_vat_chf"
          ],
          "properties": {
            "kind": {
              "enum": [
                "assessment",
                "additional"
              ],
              "type": "string",
              "default": "assessment",
              "description": "'additional': an additional assessment carrying only its increment. A replacement is refused: reverse the replaced booking first."
            },
            "assessed_on": {
              "type": "string",
              "format": "date",
              "description": "Assessment date: the input VAT is deducted in its VAT period (Art. 40(4) MWSTG), on the collected basis too."
            },
            "assessment_no": {
              "type": "string",
              "maxLength": 100,
              "minLength": 1,
              "description": "The BAZG assessment (Veranlagungsverfügung) number."
            },
            "assessed_vat_chf": {
              "anyOf": [
                {
                  "type": "number",
                  "minimum": 0
                },
                {
                  "type": "string",
                  "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                }
              ],
              "description": "Import VAT assessed, base currency ('additional': the increment). The VAT lines must sum to it, else 422."
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
post_gl_journal_entry
Advertised by the server during the last successful anonymous check.

Post a draft entry into the books — accountant. One-way. A posted entry can no longer be replaced or discarded (both refuse with 409); the only general correction is ``…/reverse``, which leaves both the original and the reversal visible. The one exception is ``PUT …/guessed-account``, which re-points a ``coding_guessed`` entry's expense account in place — and it works *only* on a posted entry. Check the draft before posting rather than after. Over an API key the answer carries the ``warning.rawJournalEntryFromApiKey`` warning.

post_gl_journal_entry input schema
{
  "type": "object",
  "required": [
    "company_id",
    "entry_id"
  ],
  "properties": {
    "body": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "not_vat": {
              "type": "boolean",
              "default": false,
              "description": "Acknowledge that code-less lines on VAT accounts (1170/2200...) are not VAT: a reclass within one side, undoing a netting, a payment with a fee line, a payment or settlement on an account used for both directions, or opening balances in a hand-built opening entry (ZET-159). Recorded on the audit row. A VAT payment or settlement on one-direction VAT accounts (only cleared: debit output, credit input; against bank/cash, the settlement account or each other) needs no flag. Off by default: an untagged VAT movement must fail, not miss the MWST-Abrechnung."
            },
            "bank_entry_ids": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "maxItems": 50
                },
                {
                  "type": "null"
                }
              ]
            },
            "confirm_chf_only": {
              "type": "boolean",
              "default": false
            },
            "suspense_no_movement": {
              "type": "boolean",
              "default": false
            },
            "allow_untagged_control": {
              "type": "boolean",
              "default": false,
              "description": "Post an AR/AP control line with no open item (recorded on the entry). Not for VAT-account lines: see not_vat."
            },
            "confirm_bank_duplicate": {
              "type": "boolean",
              "default": false
            },
            "suspense_no_movement_reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 500
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "description": "Optional body for posting a manual entry.\n\n``allow_untagged_control``: an AR/AP control line with no open item (ZET-150).\n``not_vat``: code-less lines on VAT accounts that are not VAT (F2431). Both are\nrecorded; both off by default so the common mistake fails loudly."
        },
        {
          "type": "null"
        }
      ]
    },
    "entry_id": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    }
  }
}
reverse_gl_journal_entry
Advertised by the server during the last successful anonymous check.

**Storno** a posted journal entry: post its mirror image (accountant role). Nothing is deleted; the original stays, linked, and the **reversal** entry is returned. The only VAT-correct storno door — VAT postings, open items and what the document spawned are all unwound. ``body.posting_date`` dates the reversal and decides its period; omitted, it reuses the original's. A closed-period entry needs one in an open period: the reversal is booked there; the entry stays unchanged. That correction is a person's act: an API key may make it, and ``warnings`` then carries ``warning.personOnlyActByAgent``. **409** when: the entry is a reversal or already corrected; a payroll run holds it; the date falls in a filed VAT period; an open item still carries a live settlement; the target period is closed or sealed; or a closed-period entry cannot be corrected (the reason is named). A closed-period entry armed to reverse itself is left to the auto-reversal run (nightly, or ``POST …/gl/auto-reversals/run`` by a person): ``conflict.closedPeriodEntryAutoReverses``.

reverse_gl_journal_entry input schema
{
  "type": "object",
  "required": [
    "company_id",
    "entry_id"
  ],
  "properties": {
    "body": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "posting_date": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "entry_id": {
      "type": "string"
    },
    "company_id": {
      "type": "string"
    }
  }
}
list_bank_accounts
Advertised by the server during the last successful anonymous check.

The company's bank accounts — the ``bank_account_id`` every statement import, bank-entry list and reconciliation call needs (CompanyMember read). Oldest first, no filter and no paging. Each row carries the ``iban``, ``currency``, ``label``/``bank_name`` and ``ledger_account_number`` — the chart code this account posts through; **without one a bank movement cannot be coded**, and it is set with ``PUT /bank-accounts/{account_id}``. ``auto_created`` marks an account inferred from an imported statement rather than declared by a human; it starts ``ownership_status`` unconfirmed with ``needs_ownership_review: true`` — confirm it before trusting its balances, since an unconfirmed IBAN may not be the company's at all. ``statement_count`` / ``entry_count`` are ``null`` here (filled by the single-account ``GET /bank-accounts/{account_id}``), which is not the same as zero.

list_bank_accounts input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "company_id": {
      "type": "string"
    }
  }
}
list_bank_entries
Advertised by the server during the last successful anonymous check.

Bank movements (statement lines), latest first.

list_bank_entries input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "q": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "to": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "flag": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "from": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "default": 20,
      "maximum": 200,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "company_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "credit_debit": {
      "anyOf": [
        {
          "enum": [
            "credit",
            "debit"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "match_quality": {
      "anyOf": [
        {
          "enum": [
            "full",
            "strong",
            "partial",
            "weak",
            "manual",
            "imported"
          ],
          "type": "string",
          "description": "Graded bank-entry ↔ invoice match quality (match-quality feature, 2026-06-09).\n\nAuto bands (from how many matchable fields line up, see ``services.reconciliation``):\n``full`` > ``strong`` > ``partial`` > ``weak``. ``manual`` (user-created/confirmed)\nand ``imported`` (asserted by a source export) are provenance values that win over\nany auto band."
        },
        {
          "type": "null"
        }
      ]
    },
    "bank_account_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "counterparty_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "bank_statement_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "settlement_status": {
      "anyOf": [
        {
          "enum": [
            "unsettled",
            "settled",
            "partially_settled",
            "suspense"
          ],
          "type": "string",
          "description": "Clean-bank settlement state of a bank entry (distinct from ``reconciliation_status``,\nwhich the matcher owns). Set by ``settle_bank_entry``."
        },
        {
          "type": "null"
        }
      ]
    },
    "reconciliation_status": {
      "anyOf": [
        {
          "enum": [
            "unmatched",
            "partially_matched",
            "matched",
            "ignored"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
get_bank_entry
Advertised by the server during the last successful anonymous check.

One bank movement with its reconciliation state and links.

get_bank_entry input schema
{
  "type": "object",
  "required": [
    "entry_id"
  ],
  "properties": {
    "entry_id": {
      "type": "string"
    }
  }
}
entry_candidates
Advertised by the server during the last successful anonymous check.

Documents, booked invoices, open items one movement may pay; link one, then settle_entry.

entry_candidates input schema
{
  "type": "object",
  "required": [
    "entry_id"
  ],
  "properties": {
    "entry_id": {
      "type": "string"
    }
  }
}
settle_entry
Advertised by the server during the last successful anonymous check.

Post this reconciled bank entry into the GL (clean-bank settlement). Matched → Dr Bank / Cr AR; unmatched → Dr Bank / Cr Suspense; a previously-suspensed entry now fully matched → Dr Suspense / Cr AR. Idempotent; ``skipped`` when the GL chart is not configured for native settlement. **Skonto (ZEN-526).** ``cash_discounts`` names, per open item this movement pays, the cash discount the counterparty took, booked as ``POST …/gl/payments`` books ``cash_discount_amount``. On an item a live payment of this movement already paid, it must be exactly what is left open (item currency); it follows that payment and is reversed with it. 422 when no Skonto account is configured, the movement pays nothing of the item (a link is not enough), cash + discount exceeds what is open, its VAT does not fit, or the settle books nothing for the item; 409 when a bill paid earlier is on an exported payment file. Nothing is booked on an error. Never proposed or applied without a person naming it.

settle_entry input schema
{
  "type": "object",
  "required": [
    "entry_id"
  ],
  "properties": {
    "body": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "cash_discounts": {
              "type": "array",
              "items": {
                "type": "object",
                "required": [
                  "open_item_id",
                  "amount"
                ],
                "properties": {
                  "amount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "string",
                        "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
                      }
                    ]
                  },
                  "open_item_id": {
                    "type": "string"
                  }
                },
                "description": "A Skonto the person confirms on a short match (ZEN-526, decision D8): the counterparty\ntook ``amount`` (the open item's own currency) as a cash discount, so the item is released\nby the movement's cash plus this, the discount booked on the direction's Skonto account\nwith its recognised VAT taken back — the payment door's leg, never a write-off."
              },
              "maxItems": 50
            }
          },
          "description": "Optional body of ``POST /bank-entries/{id}/settle``. Empty (or no body) is the ordinary\nsettle; nothing is ever discounted unless a person names it here."
        },
        {
          "type": "null"
        }
      ]
    },
    "entry_id": {
      "type": "string"
    }
  }
}
list_ar_invoices
Advertised by the server during the last successful anonymous check.

List authored AR invoices, newest first. Optional ``status`` / ``doc_type`` filter by lifecycle + document kind. Optional ``period`` (``YYYY-MM``) filters by the invoice's issue date (its month); a malformed value returns 422 ``{"msg": "period must be YYYY-MM"}``.

list_ar_invoices input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "default": 50,
      "maximum": 200,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "period": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "anyOf": [
        {
          "enum": [
            "draft",
            "issued",
            "cancelled"
          ],
          "type": "string",
          "description": "Editorial lifecycle owned by ``ar_invoice`` (paid/overdue are derived on\nread from the linked ``gl_open_item``, not stored here)."
        },
        {
          "type": "null"
        }
      ]
    },
    "doc_type": {
      "anyOf": [
        {
          "enum": [
            "invoice",
            "credit_note",
            "down_payment"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "type": "string"
    }
  }
}
get_ar_invoice
Advertised by the server during the last successful anonymous check.

One authored outgoing invoice with its lines (CompanyMember read). Carries the header (customer, dates, currency, discounts), every line with its computed ``net_amount``/``vat_amount``/``gross_amount``, the document totals, and the lifecycle: ``status`` (``draft`` → ``issued`` → ``cancelled``), ``document_no`` (assigned at issue — ``null`` on a draft), ``commercial_document_id`` / ``snapshot_document_id`` (the booked document and the frozen PDF), plus the derived ``payment_status`` and ``open_amount`` read from the linked open item. This is the **authored** arm only. A receivable that arrived as an ingested document is an ``item``, not an ``ar_invoice``; the two arms are listed together by ``GET …/ar/receivables``. Use ``GET …/ar/invoices/{invoice_id}/related`` for the journal entry, the settling bank transactions and the credit-note chain.

get_ar_invoice input schema
{
  "type": "object",
  "required": [
    "company_id",
    "invoice_id"
  ],
  "properties": {
    "company_id": {
      "type": "string"
    },
    "invoice_id": {
      "type": "string"
    }
  }
}
list_counterparties
Advertised by the server during the last successful anonymous check.

List a company's counterparties (filter by ``kind``/``q``, paginated). ``kind`` repeats to filter on a set (``?kind=customer&kind=both``) — a role-shaped picker asks for every kind that plays the role. A single ``?kind=supplier`` keeps its original meaning.

list_counterparties input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "q": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "enum": [
              "supplier",
              "customer",
              "both",
              "employee"
            ],
            "type": "string",
            "description": "Master-data axis of a counterparty (what the party primarily is).\n\n``employee`` (payroll SP1, brief frozen decision 6) is set **only** on\ncounterparties auto-created by ``payroll.master_data\n.ensure_employee_counterparty`` and is terminal — matching/merge flows never\nwiden it to ``both``. Who is an employee is ``gl_employee.counterparty_id``\n(ZEN-958 L4 retired the ``gl_counterparty_role`` projection); payroll logic\nnever branches on ``kind``."
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "limit": {
      "type": "integer",
      "default": 20,
      "maximum": 200,
      "minimum": 1
    },
    "offset": {
      "type": "integer",
      "default": 0,
      "minimum": 0
    },
    "company_id": {
      "type": "string"
    }
  }
}
list_gl_vat_periods
Advertised by the server during the last successful anonymous check.

VAT return periods with status, filing and payment state, and the due windows.

list_gl_vat_periods input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "company_id": {
      "type": "string"
    }
  }
}
get_financial_statements
Advertised by the server during the last successful anonymous check.

Computed balance sheet + P&L for a fiscal year, from the journal (CompanyMember). Aggregates every posted GL journal line whose **posting date** falls in the fiscal year's window, classifies each account against the chart of accounts, and reports problems (unbalanced trial balance, unclassified accounts, year-not-opened, mixed currency). **Read-only and distinct** from the uploaded balance-sheet snapshots (``GET .../balance-sheets``): nothing here reads a snapshot. ``fiscal_year`` optional → the latest FY with journal data. ``month`` (``YYYY-MM``, inside the FY — **422** otherwise) narrows the statement to one month: the balance sheet stays cumulative (as of month end, YTD equity fold) while the P&L + cash flow cover that month's flows. Explicit non-member ``company_id`` → 403. **The cut**: ``posting_date`` inside the fiscal year's own window (``fiscal_year_cut``; ``period_start``..``period_end`` is what was aggregated, ZET-166). ``/gl/reports/*`` cuts by the line's stamped ``fiscal_year_id``, so the two can differ on a line dated outside the year it is stamped to.

get_financial_statements input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "month": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^\\d{4}-(0[1-9]|1[0-2])$"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "type": "string"
    },
    "with_prior": {
      "type": "boolean",
      "default": false
    },
    "fiscal_year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  }
}
customer_statement
Advertised by the server during the last successful anonymous check.

One customer's open items + totals (the aging row's drill-down). ``as_of`` mirrors ``GET …/ar/aging`` — set, it reconstructs the items open at that date so the statement agrees with a historical aging report.

customer_statement input schema
{
  "type": "object",
  "required": [
    "company_id",
    "counterparty_id"
  ],
  "properties": {
    "as_of": {
      "anyOf": [
        {
          "type": "string",
          "format": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "company_id": {
      "type": "string"
    },
    "counterparty_id": {
      "type": "string"
    }
  }
}
get_bank_status
Advertised by the server during the last successful anonymous check.

Composed bank snapshot — "is my banking up to date?" (CompanyMember). "Reconciled" means entries matched, NOT ledger = statement balance (the close check ``BANK_BALANCE_DOES_NOT_TIE_OUT`` compares that). Per-account entry-status and ``in_suspense`` counts, each account's latest closing balance, and the **company-level cumulative GL Suspense balance**. Non-zero suspense blocks a clean VAT close. Read-only. Gaps come from the account's **full** history: coverage windows are merged and every internal hole reported (ZCT-509), so a run of missing statements is ONE gap. Not period-scoped; use ``…/reconciliation/completeness`` per month. ``period_gaps`` caps at 10/account, ``period_gap_count`` stays exact — HOLES, not missing months. Explicit non-member ``company_id`` → 403.

get_bank_status input schema
{
  "type": "object",
  "required": [
    "company_id"
  ],
  "properties": {
    "company_id": {
      "type": "string"
    }
  }
}
zeno_info
Advertised by the server during the last successful anonymous check.

What this server is, which MCP revision it speaks, and how to get a credential. **Needs no credential.** Call it first if a tool has just refused you: the `authentication` block names the tools that can get this session connected.

zeno_info input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
zeno_overview
Advertised by the server during the last successful anonymous check.

What Zeno does, in one page — the platform's capabilities and its limits. **Needs no credential.** Read this before telling a user that Zeno cannot do something; it covers VAT, payroll, reconciliation and the AI accountant.

zeno_overview input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
onboarding_guide
Advertised by the server during the last successful anonymous check.

How to onboard and create a NEW company: what to ask the user for, which documents to request, and the order to run the setup in. Discovery does not depend on search: this tool is in the tier, so it is listed for every caller, and `BASE_INSTRUCTIONS` names it. `find_operations` does reach it ("new company setup" ranks it first), but a query made only of common words is still decided by whichever tool happens to contain them. **Read this before you start a company setup**, and before you tell a user that something cannot be done here. It answers the questions the create's own schema cannot: which of fifteen sections actually matter, which documents produce them, and what it costs to skip one. If your API key's purpose is `onboarding`, this is the only job it has.

onboarding_guide input schema
{
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (33 of 33 checks answered)

  1. 2026-11-18: 5 of 5 checks answered
  2. 2026-11-19: 4 of 4 checks answered
  3. 2026-11-20: 3 of 3 checks answered
  4. 2026-11-21: 4 of 4 checks answered
  5. 2026-11-22: 4 of 4 checks answered
  6. 2026-11-23: 3 of 3 checks answered
  7. 2026-11-24: 4 of 4 checks answered
  8. 2026-11-25: 4 of 4 checks answered
  9. 2026-11-26: 2 of 2 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
2 of 2 (100%)
Average latency
1624 ms
95th percentile latency
2023 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 2067 ms · metadata changed · 51 tool(s)
  • · probe · passed · 1181 ms · metadata changed · 50 tool(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http zeno-mcp https://app.zeno-works.ch/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add zeno-mcp --url https://app.zeno-works.ch/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable zeno-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "zeno-mcp": {
      "url": "https://app.zeno-works.ch/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "zeno-mcp": {
      "type": "streamableHttp",
      "url": "https://app.zeno-works.ch/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start zeno-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "zeno-mcp": {
      "type": "http",
      "url": "https://app.zeno-works.ch/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http zeno-mcp https://app.zeno-works.ch/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://app.zeno-works.ch/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "zeno-mcp": {
      "serverUrl": "https://app.zeno-works.ch/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Zeno MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run Zeno MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing