Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a sales order

dolibarr_order_create

Creates a draft customer order with its lines, ready for later editing or validation. Use it to start a new order for a customer before confirming it.

Instructions

Creates a draft customer order and adds its lines. A draft can be edited or deleted; validate it with dolibarr_order_action. To turn a signed proposal into an order use dolibarr_order_create_from_proposal instead.

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": {
      "thirdparty_id": "<thirdparty_id>"
    },
    "name": "dolibarr_order_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoOrder date; default today.
linesNoLines to add to the new draft.
note_publicNoNote visible to the third party (printed on documents).
note_privateNoInternal note.
ref_customerNoThe customer's own reference (their PO number).
custom_fieldsNoCustom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list.
delivery_dateNoDate as YYYY-MM-DD.
thirdparty_idYesCustomer id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover the safety profile (not read-only, not destructive, not idempotent), and the description adds genuinely useful context beyond them: the object is created in draft state, is editable and deletable, and requires a separate validation call. It does not mention permission requirements or what happens on invalid thirdparty_id or line data, so it stops short of full disclosure.

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?

Two sentences, zero filler, with the core action front-loaded and the lifecycle/alternative guidance following. Nothing is redundant with the title.

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?

Adequate for an 8-parameter nested create tool: the description covers what is created and how to progress it. It omits what the call returns (e.g., the new order id), which would help an agent chain into validation, and there is no output schema to compensate.

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 100%, so the schema already documents every field including nested line properties. The description only alludes to line-adding behavior without adding syntax, defaults, or constraints beyond the schema; baseline 3 applies.

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?

Specific verb and resource ("Creates a draft customer order"), plus scope detail that it also adds lines. It is clearly distinguishable from dolibarr_order_create_from_proposal, which it names explicitly.

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?

States the lifecycle position ("draft can be edited or deleted"), the next step ("validate it with dolibarr_order_action"), and the alternative path ("To turn a signed proposal into an order use dolibarr_order_create_from_proposal instead"). When-to-use and which sibling to pick are both resolved.

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