Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Search third parties

dolibarr_thirdparty_search
Read-only

Find Dolibarr customers, prospects, and suppliers by name, alias, code, email, or town; use the returned thirdparty_id in other tools.

Instructions

Finds third parties (customers, prospects, suppliers) by name, alias, customer or supplier code, email or town. Use the returned id as thirdparty_id in the other tools.

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_thirdparty_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 0.
roleNoOnly this kind of third party.
limitNoRows per page (max 50).
queryNoPart of the name, alias, code, email or town.

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 already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds real behavioral value by disclosing the contract that the tool returns an id intended for use as thirdparty_id elsewhere — a return-value detail no annotation or schema conveys (there is no output schema). It does not mention match semantics (partial vs exact), result cap, or empty-result behavior.

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, front-loaded with purpose and searchable fields, followed by the actionable follow-up instruction. No redundant restatement of the schema and nothing wasted.

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 four-parameter, paginated read-only search with full schema coverage and annotations, this is nearly complete: purpose, match fields, and the id-chaining contract are all present. Minor gaps — no note that results are paginated/limited (max 50) or how partial matching and empty results behave — keep it from a 5.

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 description coverage is 100%, so the baseline is 3. The description adds meaning by spelling out which fields the query matches against and which record kinds the role filter distinguishes (customers, prospects, suppliers), which is slightly more than the schema's terse 'Part of the name, alias, code, email or town' and enum labels.

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?

The description states a specific verb ('Finds') and resource ('third parties') and enumerates the exact match fields — name, alias, customer or supplier code, email, town — so it is immediately distinguishable from dolibarr_thirdparty_get (by id) or dolibarr_thirdparty_create. It also clarifies the resource scope as customers, prospects, and suppliers.

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?

It gives clear usage context: this is the entry point for locating a record when you only have partial identifying text, and the returned id must be fed as thirdparty_id into the other tools. It does not state any exclusions or prerequisites (e.g., when to prefer a direct get by id, or what happens with zero matches), so it stops short of a 5.

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