Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Update a customer invoice's head

dolibarr_invoice_update

Update draft invoice head fields such as date, payment terms, payment mode, public or private notes, and custom fields. Only the fields you provide are changed; invoice lines stay untouched.

Instructions

Changes head fields of a draft invoice (not its lines). Only the fields given are changed.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "dolibarr_invoice_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate as YYYY-MM-DD.
invoice_idYes
note_publicNoNote visible to the third party (printed on documents).
note_privateNoInternal note.
ref_customerNo
custom_fieldsNoCustom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list.
payment_mode_idNo
payment_terms_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, so the safety profile is covered. The description adds two genuinely behavioral facts beyond that: the operation is limited to draft invoices, and it is a partial update ('only the fields given are changed'). It omits permissions needed and what happens if the invoice is already validated.

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?

Two short sentences, with the head-vs-lines scope stated first, followed by the partial-update rule. Nothing is redundant or buried.

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

Completeness3/5

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

For an eight-parameter mutation with no output schema, the definition covers the two most important constraints (draft-only, patch semantics) but says nothing about return values, permission requirements, or failure modes such as updating a validated invoice.

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 only 50%, and the description explains none of the eight parameters individually. It does clarify partial-update semantics, which explains why all fields but invoice_id are optional, but undocumented params like ref_customer, payment_mode_id and payment_terms_id get no added meaning.

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?

States a specific verb and resource ('changes head fields of a draft invoice') and explicitly bounds the scope with '(not its lines)', which separates it from dolibarr_invoice_line and the related action/create siblings.

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

Usage Guidelines3/5

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

The description implies when this tool applies by restricting it to draft invoices and by excluding line edits, which hints that line changes belong elsewhere. However, no alternative tool is named and there is no explicit guidance on prerequisites such as validating the invoice or when to use dolibarr_invoice_action instead.

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