Skip to main content
Glama
mcp-eboekhouden

mcp-eboekhouden

by Sironite

Create mutation

create_mutation
Idempotent

Creates 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

NameRequiredDescriptionDefault
dateYesBooking date (YYYY-MM-DD).
rowsYesMutation rows (at least one).
typeYesMutation type.
inExVatYesWhether row amounts include (IN) or exclude (EX) VAT.
ledgerIdYesLedger ID of the mutation itself, e.g. the bank account for money_received/money_sent or the debtors/creditors ledger for invoices.
relationIdNoRelation (customer/supplier) ID.
descriptionNoDescription. The server prefixes it with '[claude] '; the combined text must fit in 50 characters.
invoiceNumberNoInvoice number (max 50 chars).
termOfPaymentNoPayment term in days.
paymentReferenceNoPayment reference.
confirmNotDuplicateNoSet to true only after checking that a reported possible duplicate (same type, date, relation and amount) is really a different booking.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare non-readOnly, idempotent, non-destructive and open-world, and the description reinforces this with genuinely useful extra context: the automatic '[claude]' marker on every description, pre-send validation of ledgers/relations/VAT/amount/date, and the dedupe-return-versus-reject logic. That is real added value beyond the hints, though it never covers authorization needs, rate limits, or failure modes such as partial validation errors.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the type list, then behavior; almost every sentence carries load-bearing information (dedupe, marker, validation, immutability). The duplicate-handling sentence is long and clause-heavy, which slightly hurts scanability, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter mutation tool with no output schema, the description covers the risky parts an agent most needs: dedupe semantics, the confirmNotDuplicate escape hatch, validation before submission, and the description-prefix side effect. It leaves the success response shape and required entity setup (obtaining ledger/relation IDs) implicit, which keeps it short of complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description nevertheless adds meaning by explaining that the marker is injected into the description field (and that the combined text must fit 50 chars in the schema), and by clarifying what each type value represents and how confirmNotDuplicate is meant to be used after a rejection. It does not explain ledgerId vs row-level ledgerId beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource ("Create a bookkeeping mutation in e-Boekhouden") and then enumerates every supported mutation type with a plain-language gloss (invoice_received = purchase invoice). An agent can tell immediately this is the write path for mutations, distinct from get_mutation/list_mutations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete conditional workflow: if a match exists it is returned instead, if a near-match exists the call is rejected and must be retried with confirmNotDuplicate: true only after verifying. It also states the server is not for editing/deleting. It stops short of naming sibling alternatives for looking up ledgers, relations or VAT codes, so guidance is clear but not fully routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.