Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a manufacturing order

dolibarr_mo_create

Creates a draft manufacturing order for a product, using a BOM to set consume and produce lines; validate the MO in Dolibarr's web interface before posting production.

Instructions

Creates a draft MO for a product. With a BOM, the lines to consume and produce are taken from it. The standard API has no route to validate an MO: the user validates it in the Dolibarr web interface before production can be posted with dolibarr_mo_produce.

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": {
      "product_id": "<product_id>",
      "qty": "<qty>"
    },
    "name": "dolibarr_mo_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyYes
labelNo
bom_idNoA validated BOM for this product.
product_idYes
project_idNo
note_privateNo
warehouse_idNoWarehouse the finished product goes to.
thirdparty_idNoCustomer the MO is made for.
date_end_plannedNoDate as YYYY-MM-DD.
date_start_plannedNoDate as YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), it discloses that the record is created in draft state, that BOM lines drive what is consumed and produced, and that no API route exists to validate the MO. That is real operational context an agent would otherwise have to discover by failure. It does not cover idempotency or what happens when bom_id is omitted for a product that has one.

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 short sentences, zero filler, with the draft-state constraint front-loaded and the workflow limitation stated before the pointer to dolibarr_mo_produce. Every sentence carries distinct 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 10-parameter mutation tool with no output schema, the description covers the important unknowns: result state (draft), BOM-driven behavior, and the validation gap that blocks production. What it lacks is any hint of the return value (e.g., the new MO id) that an agent would need to chain into dolibarr_mo_produce, which is a minor but real gap given no output schema exists.

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 coverage is 50%, so half the parameters (qty, label, product_id, project_id, note_private) rely on the schema alone. The description does add meaningful semantics for bom_id by explaining that consumption and production lines are derived from it, which is the most consequential parameter behavior and is not in the schema description. Baseline 3 is appropriate given the partial coverage.

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 ('Creates a draft MO for a product') and immediately qualifies the result as a draft rather than a validated order. This is enough to separate it from dolibarr_mo_produce, which posts production, and from the other *_create siblings by resource.

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?

The description establishes the workflow position: create the draft here, validate in the Dolibarr web UI, then post with dolibarr_mo_produce. It gives clear context for when this tool is the right entry point, though it does not state explicit exclusions (e.g., when to supply bom_id versus bare product lines).

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