Create mutation
create_mutationCreates a validated e-Boekhouden bookkeeping mutation (invoice, payment, money, journal) with duplicate checks before sending.
Instructions
Create a bookkeeping mutation in e-Boekhouden. Types: invoice_received (purchase invoice), invoice_sent (sales invoice), invoice_payment_received, invoice_payment_sent, money_received, money_sent, general_journal (memoriaal). Every description (header and rows) gets the marker '[claude]' unless it already contains it. Ledgers, relations, VAT codes, amounts and the date are validated before anything is sent. If a matching mutation already exists (same type, date, relation, total amount and invoice number, or description when there is no invoice number) it is returned instead of creating a new one. If another mutation has the same type, date, relation and amount but a different invoice number or description (for example one entered by hand), the call is rejected as a possible duplicate; only after checking it, call again with confirmNotDuplicate: true. Existing mutations cannot be changed or deleted through this server.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"date": "<date>",
"ledgerId": "<ledgerId>",
"inExVat": "<inExVat>",
"rows": "<rows>"
},
"name": "create_mutation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Booking date (YYYY-MM-DD). | |
| rows | Yes | Mutation rows (at least one). | |
| type | Yes | Mutation type. | |
| inExVat | Yes | Whether row amounts include (IN) or exclude (EX) VAT. | |
| ledgerId | Yes | Ledger ID of the mutation itself, e.g. the bank account for money_received/money_sent or the debtors/creditors ledger for invoices. | |
| relationId | No | Relation (customer/supplier) ID. | |
| description | No | Description. The server prefixes it with '[claude] '; the combined text must fit in 50 characters. | |
| invoiceNumber | No | Invoice number (max 50 chars). | |
| termOfPayment | No | Payment term in days. | |
| paymentReference | No | Payment reference. | |
| confirmNotDuplicate | No | Set to true only after checking that a reported possible duplicate (same type, date, relation and amount) is really a different booking. |