Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Search products and services

dolibarr_product_search
Read-only

Search products and services by reference, label, or barcode to retrieve selling price, weighted average cost, and physical stock for Dolibarr ERP decisions.

Instructions

Finds products and services by ref, label or barcode. Rows include the selling price, weighted average cost (pmp) and physical stock, when the user may see them.

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

Input Schema

NameRequiredDescriptionDefault
kindNo
pageNoPage number, starting at 0.
limitNoRows per page (max 50).
queryNoPart of the ref, label or barcode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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, and the description adds real context beyond them: the returned rows carry selling price, weighted average cost (pmp) and physical stock, and those fields are conditional on the calling user's permissions. That permission-gating note is the kind of disclosure the agent cannot get from structured fields. It stops short of describing ordering or result-volume 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 front-loaded sentences with no filler; the search keys come first and the returned-field caveat second, so nothing needs re-reading.

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?

With no output schema, the description usefully names the fields returned, and the permission qualifier pre-empts confusion about missing values. What remains thin is filter semantics for 'kind' and any hint about how many results to expect relative to limit.

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 75% and the schema itself documents page, limit and query (partial match on ref/label/barcode). The description's mention of searchable fields largely restates the query description, and the 'kind' enum parameter (product vs service) is never explained in either place, leaving a filter gap.

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 verb ('Finds') and resource ('products and services') and names the lookup keys (ref, label, barcode), which distinguishes it from the get/create/update siblings without naming them explicitly. A 5 would require explicitly routing against a named sibling, but the intent is unambiguous.

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 this is a lookup-by-text tool versus a fetch-by-identifier tool. There is no statement of when to prefer this over dolibarr_product_get or the other *_search siblings, and no guidance on paging through results.

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