Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a reception

dolibarr_reception_create

Creates a draft reception for a sent supplier order, recording received quantities per order line and warehouse, including lot data for tracked products. Validate it to post the stock to inventory.

Instructions

Creates a draft reception for a supplier order that has been sent (status ordered or partially received). Each line names the supplier order line, the quantity received and the warehouse; lot-tracked products also need the lot. Several lines may point at the same order line (e.g. one per lot). Validate it with dolibarr_reception_action to post the stock.

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

Input Schema

NameRequiredDescriptionDefault
linesYes
note_publicNoNote visible to the third party (printed on documents).
note_privateNoInternal note.
ref_supplierNoThe supplier's delivery note number.
date_deliveryNoDate the goods arrived.
supplier_order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent, closed-world write. The description adds real value beyond them by disclosing that the result is a draft with no stock movement until dolibarr_reception_action runs, and that duplicate lines against one order line are legitimate. It does not address repeat-call behavior, permission requirements, or failure modes, which leaves a gap for a non-idempotent write.

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?

Three tight sentences, front-loaded with the action and its precondition, then the line composition rule, then the hand-off to the validation tool. No filler and no repetition of schema-level detail.

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 mutating create tool with annotations and no output schema, the description covers the essential lifecycle: draft creation, line/lot structure, and the validation step that produces stock movement. It falls short only on what the call returns (presumably a reception identifier) and on error or duplicate-call behavior.

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 description compensates for the undocumented parts of the nested line object by explaining that each line carries an order line, a received quantity, a warehouse, and a lot for lot-tracked products. It adds the non-obvious rule that several lines may reference the same order line (one per lot). The terminology drifts, though: the description says 'lot' where the schema field is named 'batch'.

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?

Opens with a specific verb and resource ('Creates a draft reception') scoped to a supplier order, and immediately sets the precondition that the order must be 'sent (status ordered or partially received)'. It also implicitly contrasts with the sibling dolibarr_reception_action by noting that this tool only produces a draft until validated.

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?

Gives an explicit eligibility condition (order status ordered or partially received) and names the follow-up tool, dolibarr_reception_action, with the effect it has ('post the stock'). The split between creating a draft and validating it is stated plainly, so an agent knows exactly which of the two reception tools to call at each stage.

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