Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Get a supplier invoice

dolibarr_supplier_invoice_get
Read-only

Retrieve a single supplier invoice by numeric ID or exact Dolibarr reference, including line items and recorded payments for review or reconciliation.

Instructions

One supplier invoice by id or ref, with its lines and the payments made.

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": {
      "supplier_invoice": "<supplier_invoice>"
    },
    "name": "dolibarr_supplier_invoice_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
supplier_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 beyond that by disclosing the payload shape — the invoice plus its lines and recorded payments — which tells the agent this is an aggregate read rather than a bare header fetch.

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?

One short sentence with the resource and lookup key front-loaded and the return contents appended; nothing is padded or redundant.

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?

No output schema exists, so the description's note about lines and payments is important and mostly discharges that burden. A minor gap remains around error/not-found behavior and whether the returned lines are paginated or truncated, but for a one-parameter read tool this is close to sufficient.

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 parameter is fully documented, including that the ref must match Dolibarr exactly. The description only restates 'id or ref' without adding format or lookup-order semantics, so the schema is doing the work.

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?

Specific verb+resource: fetches one supplier invoice identified by id or ref, and states what comes back (lines and payments). It reads clearly as a single-record read, distinct from a search or an action tool, though it doesn't explicitly contrast itself with the sibling supplier_invoice_search.

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?

The 'by id or ref' phrasing implies the single-record lookup case versus a list/search, but there is no explicit when-to-use statement, no mention of alternatives, and no guidance on what to do if the id is unknown (e.g. search first).

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