Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Search supplier invoices

dolibarr_supplier_invoice_search
Read-only

Search supplier invoices by reference or supplier invoice number, filter by status or supplier, and return newest results first.

Instructions

Finds supplier invoices by ref or the supplier's invoice number. 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_supplier_invoice_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number, starting at 0.
limitNoRows per page (max 50).
queryNo
statusNo
thirdparty_idNoOnly records of this supplier (id from dolibarr_thirdparty_search).

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 the safety and scope profile is covered. The description adds a genuinely useful behavioral detail — results are returned newest first — but says nothing about ordering across filters, empty-result behavior, or pagination semantics beyond what the schema declares.

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?

Two tight sentences with the searchable fields front-loaded and the sort order as a trailing clause; no wasted words. It is not padded, though the terseness leaves little room for the guidance an agent needs.

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?

For a five-parameter, zero-required search tool with no output schema, the definition is minimally adequate: match fields and sort order are covered. It stops short of describing what a result row contains or how paging interacts with the default limit of 20, which would matter given the absence of an output schema.

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 60%; the undocumented gap is mainly `query`, and the description does explain that it matches against the ref or the supplier's invoice number, which the schema does not say. However, it does not clarify whether matching is exact or substring/prefix, and the effect of combining query with status and thirdparty_id (AND vs override) is unstated.

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 and resource ('Finds supplier invoices') and names the two searchable fields, plus the default sort ('Newest first'). It does not explicitly differentiate itself from dolibarr_invoice_search (customer invoices) or dolibarr_supplier_order_search, but the 'supplier invoice' scope is clear from the name and text.

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 when-to-use guidance: nothing tells the agent to prefer this over dolibarr_supplier_invoice_get (single lookup by id) or dolibarr_invoice_search, nor when the query field is appropriate versus filtering by status/thirdparty_id. Usage is only implied by the verb 'Finds'.

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