Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Update a supplier order's head

dolibarr_supplier_order_update

Update header fields on an existing supplier order—such as notes, supplier reference, delivery date, or custom fields—without changing order lines. Provide only the fields to modify.

Instructions

Changes head fields of a supplier 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": {
      "supplier_order_id": "<supplier_order_id>"
    },
    "name": "dolibarr_supplier_order_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
note_publicNoNote visible to the third party (printed on documents).
note_privateNoInternal note.
ref_supplierNo
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.
supplier_order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral context by declaring PATCH-style partial semantics ("Only the fields given are changed"). However, it is silent on side effects such as recalculated totals, validation/status restrictions, permission needs, and error behavior on unknown fields.

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 zero filler; the scope constraint is front-loaded before the partial-update rule. Nothing could be removed without losing information.

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?

It covers the two things an agent most needs for a mutation tool with no output schema: what is modified and that the update is partial. For a six-parameter write operation touching nested custom_fields, it should also say what happens to order totals or status, and whether the call returns the updated record or nothing.

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 67% and the schema already documents note_public, note_private, delivery_date and custom_fields. The description's key contribution is clarifying partial-update semantics — omitting a parameter leaves that field untouched rather than clearing it — which the schema alone does not convey. It adds no field-specific detail such as ref_supplier format or whether custom_fields values are validated.

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?

The description states a specific verb and resource ("Changes head fields of a supplier order") and explicitly excludes line-level edits, which is the most likely confusion for an agent. It stops short of naming the sibling that handles lines or the action tool, so differentiation is descriptive rather than explicit.

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?

Usage is implied: use this for header fields, not lines, and supply only what you want changed. There is no explicit when-not guidance, no prerequisite such as the order needing to be in draft/validated state, and no mention of dolibarr_supplier_order_action as the alternative for status transitions.

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