Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Record a payment made on a supplier invoice

dolibarr_supplier_invoice_record_payment
Destructive

Record that a supplier invoice was paid in Dolibarr without moving money, booking the whole amount due or a specified amount. Preview only unless confirm=true; then a reason is required.

Instructions

Records in Dolibarr that a supplier invoice was paid. Without amount it books the whole amount still due; it moves no money. This step cannot simply be undone: without confirm=true it only returns a preview.

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": {
      "supplier_invoice_id": "<supplier_invoice_id>",
      "date": "<date>",
      "payment_mode_id": "<payment_mode_id>",
      "bank_account_id": "<bank_account_id>"
    },
    "name": "dolibarr_supplier_invoice_record_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDate of the payment (YYYY-MM-DD).
amountNoAmount paid; default the whole amount still due.
reasonNoOne line on why, kept in the audit log. Required when confirm is true.
commentNo
confirmNofalse (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step.
close_invoiceNoMark the invoice as paid when the payment covers it.
bank_account_idYesBank account id, from dolibarr_api_get /bankaccounts. Needed when the Bank module is enabled.
payment_mode_idYesPayment type id, from dolibarr_dictionary payment_types.
payment_referenceNoCheque or transfer number.
supplier_invoice_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Adds genuinely useful context beyond the annotations: the operation 'moves no money' (bookkeeping only) and is not easily reversible, with confirm=false yielding a preview. However, the annotations already flag destructiveHint=true and idempotentHint=false, and the preview semantics are also spelled out in the confirm parameter description, so the marginal disclosure is moderate.

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

Conciseness5/5

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

Three short sentences, front-loaded with purpose, then effect, then the irreversibility/preview warning. No wasted wording.

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 a 10-parameter destructive mutation with no output schema, the description covers the essential risk profile and the preview workflow. It could say more about what the preview response contains or about the required reason field when confirming, but nothing critical is missing.

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

Parameters3/5

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

Schema coverage is 80%, so the schema already explains amount, confirm, close_invoice, reason and the id lookups. The description's only extra detail — omitting amount books the full amount due — duplicates the amount field's own description. Baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: 'Records ... that a supplier invoice was paid.' The 'supplier invoice' scoping implicitly separates it from the customer-side dolibarr_invoice_record_payment sibling, but no sibling is named explicitly.

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 concrete usage conditions: omit amount to book the full remaining balance, and set confirm=true only after the user agrees, otherwise you get a preview. It does not point to any alternative tool (e.g. dolibarr_supplier_invoice_action), so routing guidance is only partial.

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

Deploy Server

Other Tools