Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Validate, close, reopen or delete a sales order

dolibarr_order_action
Destructive

Move a Dolibarr order through lifecycle statuses such as validate, set draft, close, reopen, mark billed, or delete; preview changes by default and require confirmation to apply.

Instructions

Moves a order to another status. Actions: validate (the draft gets its final ref and is open for shipping and invoicing); set_draft (a validated order goes back to draft); close (classifies the order as delivered); reopen (a delivered or cancelled order becomes validated again); set_billed (classifies the order as billed); delete (deletes the order permanently). 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": {
      "order_id": "<order_id>",
      "action": "<action>"
    },
    "name": "dolibarr_order_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
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.
order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds substantive context beyond them: state-specific effects (validate assigns the final ref, close marks delivered, reopen reverses a delivered/cancelled order, delete removes permanently), a default dry-run mode, and the warning that the step cannot simply be undone. It stops short of describing required permissions or the shape of the preview response.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, followed by a compact action glossary and the irreversibility caveat in a single paragraph with no filler. Minor wording issues ("a order") and one dense sentence do not impede comprehension.

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, state-transition tool with no output schema, the description covers what each action does, what gets destroyed on delete, and the confirmation gate. It does not describe what the preview returns or any pagination/error behavior, a small gap given there is no output schema.

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 only 50%, and the description compensates by defining the semantics of every action enum value, which the schema does not do beyond listing the strings. The meaning of confirm and reason is already carried by the schema, and order_id remains undescribed in both places, so it is not exhaustive.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and effect ("Moves a order to another status") and then enumerates all six action values with a short gloss of each state transition, so an agent knows exactly what the tool does. It does not explicitly name siblings such as dolibarr_order_update or dolibarr_order_get, so the boundary is implied by "status" rather than stated.

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 confirm workflow is clearly spelled out: without confirm=true it only returns a preview, and confirm should be set true only after the user has explicitly agreed to this exact step. That is strong operational guidance, though there is no explicit routing statement telling the agent when to use this instead of order_update or order_get.

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