Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Update a sales order's head

dolibarr_order_update

Update selected header fields of a Dolibarr sales order, including customer reference, delivery date, notes, and custom fields, without modifying its order lines.

Instructions

Changes head fields of a sales order (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": {
      "order_id": "<order_id>"
    },
    "name": "dolibarr_order_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_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.
delivery_dateNoDate as YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety posture is covered. The description adds genuinely useful PATCH semantics ('Only the fields given are changed'), but says nothing about required permissions, what happens on a validated/closed order, or failure behavior. Non-idempotent partial updates in particular deserve a note on repeated-call behavior.

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, roughly twenty words, with the scope exclusion front-loaded immediately after the verb-and-resource statement. Nothing is redundant with the schema or annotations, and there is no filler.

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?

With six parameters, a nested custom_fields object and no output schema, the definition plus schema covers most of what an agent needs to construct a call. Gaps remain on mutation-specific behavior: whether updates are allowed on non-draft orders, how custom_fields merge with existing values, and what the response contains. These are meaningful omissions for a write tool even with annotations present.

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 67%, with note_public, note_private, delivery_date and custom_fields already carrying field-level descriptions, so the baseline applies. The description only clarifies the category ('head fields') and that unspecified fields are left untouched; it adds no format, constraint, or nested-object guidance beyond the schema.

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 ('Changes head fields of a sales order') and draws an explicit scope boundary against line operations ('not its lines'), which separates it from dolibarr_order_line/supplier_order_line without opening a schema. It does not distinguish itself from dolibarr_order_action, which plausibly also mutates an order but via a different mechanism.

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 'not its lines' parenthetical is effectively a when-not-to-use hint that routes line edits elsewhere, and 'Only the fields given are changed' implies partial-update intent. However there is no explicit statement of prerequisites (e.g. order must be in draft) or a named alternative for header vs. status changes, so guidance is only implied.

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