Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Get a supplier order

dolibarr_supplier_order_get
Read-only

Fetches a single supplier purchase order by numeric ID or Dolibarr reference, returning header details, custom fields, and line items for review or processing.

Instructions

One purchase order by id or ref: head, custom fields and lines.

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": {
      "supplier_order": "<supplier_order>"
    },
    "name": "dolibarr_supplier_order_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
supplier_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.2/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 adds one genuinely useful behavioral fact — that the response bundles head, custom fields and lines — but says nothing about not-found behavior or payload size for orders with many lines.

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?

One short sentence with the resource and keys front-loaded, no filler. It reads as a telegraphic fragment ("head" is internal jargon), which costs a little clarity but wastes nothing.

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 one-parameter read tool with annotations and no output schema, the definition covers resource, key, and the shape of the return. Only the negative case (identifier not found) and any permission constraints are left unaddressed.

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 100% and the single parameter already documents "numeric id, or its ref exactly as shown in Dolibarr", including the anyOf types and length bounds. The description's "by id or ref" merely restates the schema, adding no format or matching nuance.

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?

"One purchase order by id or ref" names the resource, the cardinality, and the lookup keys, and the trailing clause states the payload composition (head, custom fields, lines). It is not confused with supplier_order_search or supplier_order_create, though it never names a sibling explicitly.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus dolibarr_supplier_order_search or the related list tool; the only guidance is implicit in "by id or ref", i.e. you already have an identifier. No prerequisites, no mention of what to do when the identifier is unknown.

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