Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Receive goods on a supplier order into stock

dolibarr_supplier_order_receive
Destructive

Books received goods against a supplier order directly into a warehouse, row by row with quantities and lots, without a reception document. Returns a preview unless confirmed.

Instructions

Books goods received against an ordered supplier order straight into a warehouse (the 'dispatch' of the Suppliers module), without a reception document. Each row names the order line, the quantity and the warehouse; lot-tracked products also need the lot. If the Receptions module is enabled, prefer dolibarr_reception_create. This step cannot simply be undone: without confirm=true it only returns a preview.

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>",
      "rows": "<rows>"
    },
    "name": "dolibarr_supplier_order_receive"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsYes
reasonNoOne line on why, kept in the audit log. Required when confirm is true.
commentNo
confirmNofalse (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step.
supplier_order_idYes
close_when_completeNoMark the order received when everything has arrived.

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?

Annotations already flag destructiveHint=true and non-idempotence, but the description adds real behavior: the booking is not simply reversible, confirm=true is the committing switch, and the operation is a stock dispatch rather than a document creation. It also discloses the lot requirement for lot-tracked products, which the annotations cannot express.

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 tightly packed sentences, front-loaded with the core action and followed by the routing rule and the irreversibility warning. No filler and no repetition of the schema's field definitions.

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 destructive, non-idempotent mutation with no output schema, the definition covers irreversibility, the preview gate and the sibling alternative, which is the essential safety envelope. It stops short of warning that re-invoking would double-book stock (relevant given idempotentHint=false) or describing partial-receipt behavior across multiple calls.

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?

With 50% schema coverage, the description compensates well for the nested rows structure by naming what each row needs (order line, quantity, warehouse, plus lot for tracked products). It leaves reason, comment, eatby/sellby and close_when_complete unmentioned, relying on the schema's own field descriptions for those.

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?

States a specific verb and resource (book goods received against an ordered supplier order into a warehouse) and explicitly scopes it as the Suppliers module 'dispatch' path with no reception document. This makes it distinguishable from dolibarr_reception_create and the stock-movement siblings without opening any 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?

Gives an explicit routing rule: if the Receptions module is enabled, prefer dolibarr_reception_create. It also states the confirm=false/confirm=true workflow condition, so the agent knows both which sibling to choose and when this tool should merely preview versus commit.

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