Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Search customer invoices

dolibarr_invoice_search
Read-only

Search customer invoices by invoice reference or customer reference and return newest first, showing totals and outstanding amounts due.

Instructions

Finds customer invoices by ref or the customer's reference. Newest first. Rows show totals and what is still to pay.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 0.
limitNoRows per page (max 50).
queryNoPart of the invoice ref or customer reference.
statusNo
thirdparty_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 goes further by disclosing the sort order (newest first) and the shape of returned rows (totals and outstanding balance), which an agent cannot infer from structured fields. Pagination behavior and result ceiling are left to the schema, so it is not fully exhaustive.

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?

Three short sentences, each carrying distinct information: what it finds, how results are ordered, and what a row contains. Nothing is padded and the core purpose is front-loaded.

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 no output schema, the sentence about row contents (totals and outstanding amount) usefully compensates, and the ordering note helps agents reason about recency. However, for a five-parameter search tool the unfiltered explainability of `status` and `thirdparty_id` is a real gap that the description does not close.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 60%: `status` (an enum with no value semantics) and `thirdparty_id` are undocumented in the schema, and the description says nothing about either. For the one parameter it touches, `query`, it merely restates the schema's own text about part of the ref or customer reference, adding no new meaning.

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?

The description names a specific verb and resource ("Finds customer invoices") and the search keys (invoice ref or customer reference), which cleanly separates it from the supplier-invoice sibling and from single-record getters like dolibarr_invoice_get. It stops short of explicitly contrasting itself with the other invoice tools, but the resource qualifier does most of the differentiation work.

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 phrase "by ref or the customer's reference" suggests a lookup-style search for when you don't have an ID, but the description never states when to prefer this over dolibarr_invoice_get or how to combine filters. No prerequisites, exclusions, or alternative routing are given.

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