Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Get a sales order

dolibarr_order_get
Read-only

Retrieve a single customer order by numeric ID or exact reference, returning its header, custom fields, order lines, and related shipment details.

Instructions

One customer order by id or ref: head, custom fields, lines and its shipments.

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": "<order>"
    },
    "name": "dolibarr_order_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYesThe record's numeric id, or its ref exactly as shown in Dolibarr.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description contributes real value by disclosing that the response is an aggregate (head + custom fields + lines + shipments) rather than a flat record, but says nothing about behavior when the order is absent or how deep the shipment expansion goes.

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?

A single front-loaded sentence with the resource, both identifiers, and the returned sections; nothing is redundant. It is slightly telegraphic ('its shipments' has an unclear antecedent) but wastes no words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity read with one fully documented parameter and no output schema, the description usefully enumerates the returned components. It still leaves out retrieval failure behavior and whether the nested lines/shipments are always populated, which matters given there is no output schema to fall back on.

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?

With 100% schema description coverage, the schema already defines the single 'order' parameter as numeric id or ref exactly as shown in Dolibarr. The description's 'by id or ref' restates the same contract without adding format, ref-prefix, or fallback behavior, so baseline 3 applies.

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?

States a specific resource and scope: a single customer order retrieved by id or ref, plus what the payload contains (head, custom fields, lines, shipments). That singles it out from the search/update/action siblings in the same family, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: 'One ... by id or ref' points at fetching a single full record, and enumerating lines/shipments implies a detail fetch rather than a listing. There is no explicit when-to-use, when-not-to-use, or routing to dolibarr_order_search versus this tool.

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