Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Post consumption and production on a manufacturing order

dolibarr_mo_produce
Destructive

Record materials consumed and products produced on a manufacturing order, move stock between warehouses, and optionally close the MO after confirmation.

Instructions

Records what was used and made on a validated or in-progress MO: each row names a toconsume or toproduce line of the MO, the quantity and the warehouse. Material leaves stock and finished product enters stock. Lot-tracked products cannot be posted through the standard API. With close_when_done the MO becomes Produced. 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": {
      "mo_id": "<mo_id>"
    },
    "name": "dolibarr_mo_produce"
  }
}

Input Schema

NameRequiredDescriptionDefault
mo_idYes
reasonNoOne line on why, kept in the audit log. Required when confirm is true.
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.
consumeNo
produceNo
movement_labelNo
close_when_doneNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (destructive, non-idempotent, closed-world), the description discloses the actual side effects: stock depletion and receipt, the close_when_done state transition to Produced, and the warning that the step 'cannot simply be undone'. It also explains the safe preview path via confirm=false, which is precisely the context an agent needs before invoking a destructive tool.

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?

Five short sentences, each carrying distinct information: scope, row semantics, stock effect, the lot-tracked caveat, the close_when_done consequence, and the irreversibility/preview warning. Nothing is repeated from the schema and no sentence is wasted.

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 7-parameter tool with no output schema, the description covers the critical decision points: preconditions, preview vs commit, and irreversibility. The remaining gap is that a few lesser parameters (movement_label, unit_cost, the reason requirement) are left to the schema, which is only partly documented.

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

Parameters3/5

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

Schema description coverage is only 29%, so the description needs to carry weight. It does explain the row shape for consume/produce (line of the MO, quantity, warehouse) and the confirm preview semantics, but reason (audit log, required when confirm is true), movement_label, and unit_cost are not addressed. Partial compensation, so a 3.

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 names a specific verb and resource ('Records what was used and made on a validated or in-progress MO') and explains the stock consequence — materials leave stock, finished product enters stock. That is enough for an agent to distinguish this from generic write tools such as dolibarr_api_write or the MO create/get siblings 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 Guidelines4/5

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

It gives real preconditions (MO must be validated or in-progress) and a clear exclusion (lot-tracked products cannot be posted through the standard API), plus a staged confirm workflow. It does not name a fallback tool for the excluded lot-tracked case, so it falls short of a full when/when-not/alternative statement.

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