Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Search sales orders

dolibarr_order_search
Read-only

Find customer orders by order reference or customer reference, ranked newest first. Filter by status or third-party ID and page through results to locate specific orders.

Instructions

Finds customer orders by ref or the customer's reference. Newest first.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dolibarr_order_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 0.
limitNoRows per page (max 50).
queryNoPart of the order ref or customer reference.
statusNo
thirdparty_idNoOnly records of this third party (id from dolibarr_thirdparty_search).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 the safety profile is covered. The description adds one genuinely useful behavioral fact, the result ordering (newest first), but says nothing about result volume, truncation, or whether an empty list versus an error indicates no match.

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 waste, with the search keys front-loaded before the result-ordering note. Nothing could be removed without losing content.

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?

With five parameters, no output schema, and no required arguments, the definition should at least characterize the returned list (order records, paginated by page/limit, default 20, max 50). Sorting is covered and the schema handles the rest, so it is adequate but leaves gaps for a result-consuming agent.

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 80%, so the baseline is 3. The description's 'ref or the customer's reference' merely restates the query parameter's own documentation and adds no meaning for status or thirdparty_id, which are the parameters an agent is most likely to misuse.

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?

Names a specific verb (finds) and resource (customer orders), which implicitly separates it from dolibarr_supplier_order_search. The searchable keys are stated. It stops short of naming a sibling explicitly, so it lands just below the top band.

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: the agent can infer it should use this when it has a reference fragment rather than an id (which would point to dolibarr_order_get). There is no explicit when/when-not statement and no mention of when to prefer status or thirdparty_id filtering over a text query.

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