Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Get a customer invoice

dolibarr_invoice_get
Read-only

Retrieve one Dolibarr customer invoice by ID or reference, including its line items and recorded payments, to review billing details or verify payment status.

Instructions

One customer invoice by id or ref, with its lines and the payments received.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "invoice": "<invoice>"
    },
    "name": "dolibarr_invoice_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYesThe record's numeric id, or its ref exactly as shown in Dolibarr.

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, so the safety profile is covered. The description adds genuine value by disclosing the response scope: the invoice comes with its lines and the payments received, which is not derivable from the annotations or schema. It omits error behavior on a missing id/ref and whether lines are truncated.

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?

A single front-loaded sentence with no filler; the resource, the lookup key, and the returned contents all appear immediately.

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 one parameter, no output schema, and read-only annotations, the description covers what the tool does and roughly what it returns. It would be complete with a note on not-found behavior and the extent of the embedded lines and payments.

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 100% and the single 'invoice' parameter already documents that it accepts a numeric id or the exact Dolibarr ref. The description restates 'by id or ref' without adding format rules or fallback behavior, so the schema does the heavy lifting.

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 ('One customer invoice by id or ref') and the qualifier 'customer' separates it from the supplier-invoice siblings. It stops short of explicitly naming the alternative, but an agent can identify the operation unambiguously.

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?

Single-record retrieval by id or ref implies its own use case versus dolibarr_invoice_search, but the description never says when to prefer this over search or what to do if the invoice is not found. Usage is only implied.

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