Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a shipment

dolibarr_shipment_create

Creates a draft shipment for a validated sales order, assigning each line to a warehouse; no stock moves until the draft is validated.

Instructions

Creates a draft shipment for a validated sales order. Read the order with dolibarr_order_get for its line ids and quantities, and dolibarr_product_stock for where the goods are. Each line ships from one warehouse. Products tracked by lot or serial number cannot be shipped through the standard API; ship those in the Dolibarr web interface. A draft moves no stock; validate it with dolibarr_shipment_action.

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>",
      "lines": "<lines>"
    },
    "name": "dolibarr_shipment_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYes
order_idYes
note_publicNoNote visible to the third party (printed on documents).
note_privateNoInternal note.
date_deliveryNoPlanned delivery date.
tracking_numberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses the critical behavioral fact that a draft moves no stock until validated, so the write is staged rather than immediately impactful. It also exposes the one-warehouse-per-line constraint and the API limitation for serialized/lot products, both of which materially affect how an agent should call it.

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?

Four short sentences, front-loaded with the action and prerequisite, then constraints, then the next step. No redundant restatement of the schema or annotations; every sentence carries operational information.

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

Completeness4/5

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

For a mutation tool with no output schema and six parameters, it covers preconditions, constraints, and the validation follow-up well. The remaining gap is that it never says what is returned (e.g., shipment id) or how to handle partial shipments, so an agent must inspect the response to discover the created record's identifier.

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 description coverage is only 50%, but the description compensates by explaining that order_line_id and qty come from dolibarr_order_get and that each line's warehouse_id selects a single source warehouse. It adds no guidance on tracking_number, note fields, or whether qty may be less than the ordered quantity, leaving part of the nested line object underspecified.

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?

The description gives a specific verb and resource ('Creates a draft shipment') plus the key scope qualifier ('for a validated sales order'), which immediately distinguishes it from dolibarr_shipment_action (which validates) and dolibarr_reception_create (inbound goods). An agent can route correctly without opening the schema.

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

Usage Guidelines5/5

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

It names the prerequisite read tools (dolibarr_order_get for line ids/quantities, dolibarr_product_stock for warehouse availability) and the follow-up tool (dolibarr_shipment_action for validation). It also states an explicit exclusion: lot/serial-tracked products cannot go through this API and must be shipped in the web interface.

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