Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Update a product or service

dolibarr_product_update

Update selected fields of an existing product, including price, reference, VAT, and notes; only provided fields change, and a new price becomes the default selling price.

Instructions

Changes fields of a product. Only the fields given are changed; a new price becomes the default selling price.

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": {
      "product_id": "<product_id>"
    },
    "name": "dolibarr_product_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoProduct reference (code). Must be unique.
kindNo
labelNo
priceNoSelling price before tax.
weightNo
barcodeNo
for_saleNo
vat_rateNoDefault VAT rate in percent.
product_idYes
descriptionNo
lot_trackedNoTrack lots / serial numbers (needs the Lots module).
note_publicNoNote visible to the third party (printed on documents).
for_purchaseNo
note_privateNoInternal note.
custom_fieldsNoCustom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=false and idempotentHint=false, and the description adds genuinely non-obvious behavioral facts beyond them: unspecified fields are preserved untouched, and a new price silently becomes the default selling price. That price side effect is exactly the kind of hidden consequence an agent needs. It omits permission/auth requirements and whether changes are reversible, keeping it short of a 5.

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, front-loaded with the action and then the two highest-value behavioral facts. Nothing is redundant or padded.

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 a 15-parameter mutation tool with no output schema, the definition covers patch semantics and the price side effect but leaves the remaining updatable fields, the product-vs-service distinction implied by the title, and return values undescribed. It is adequate to call the tool correctly in the common case but incomplete for the full parameter surface.

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

Parameters2/5

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

With 15 parameters and only 47% schema description coverage, the description carries a heavy compensation burden but explains only the price field. The required product_id, the kind enum, and the nested custom_fields object (whose schema note points at dolibarr_custom_field_list) are unaddressed in prose, leaving many parameters meaningful only through terse or absent schema text.

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+resource ('Changes fields of a product') and clarifies that it is a partial update rather than a full replacement. It does not explicitly distinguish itself from dolibarr_product_create or dolibarr_product_get, but the mutation framing makes the boundary reasonably inferable.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus dolibarr_product_create or dolibarr_product_get, and no prerequisites or exclusions are mentioned. The 'only the fields given are changed' line is patch-semantics guidance rather than usage routing, so an agent gets no help choosing among siblings.

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