Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a product or service

dolibarr_product_create

Create a product or service in Dolibarr with a unique reference and label; search existing products first to avoid duplicate references.

Instructions

Creates a product or service. Search first with dolibarr_product_search: the ref must be unique.

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": {
      "ref": "<ref>",
      "label": "<label>"
    },
    "name": "dolibarr_product_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesProduct reference (code). Must be unique.
kindNoproduct
labelYes
priceNoSelling price before tax.
weightNo
barcodeNo
for_saleNo
vat_rateNoDefault VAT rate in percent.
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

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 and idempotentHint=false, so the write/safety profile is covered by structured data. The description adds the meaningful failure mode (duplicate ref), but does not say what happens on a duplicate (error vs. upsert), whether lots/VAT modules must be enabled, or what permissions are required.

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 precondition. Nothing is padded 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 a 14-parameter create tool with a nested custom_fields object and no output schema, the description leaves the agent guessing about return values (e.g., the created product id) and about the several bare parameters. The uniqueness rule and search-first advice are helpful but not sufficient on their own.

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 14 parameters and only 50% schema description coverage, roughly half the inputs (kind, label, weight, barcode, for_sale, for_purchase, custom_fields) have no documented meaning in either place. The description names no parameters at all, and its uniqueness point merely restates the schema text 'Product reference (code). Must be unique.'

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 ('Creates') and resource ('a product or service'), and the 'product or service' phrasing maps directly to the kind enum. It is clearly distinguishable from the search/get/update siblings, though it never names them 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 actionable pre-call guidance: search first with dolibarr_product_search because ref must be unique. It provides no when-not-to-use guidance (e.g., use dolibarr_product_update to change an existing record), but the creation context is clear.

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