Skip to main content
Glama
digitalfactorysn

MCP Dolibarr Expert

create_invoice

Create a new draft invoice for a customer in Dolibarr. Specify invoice type, date, customer reference, notes, and payment terms.

Instructions

Créer une nouvelle facture brouillon pour un tiers

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate de facturation ISO 8601 (ex: '2025-01-31'). Si vide: aujourd'hui
typeNo0=Standard, 1=Remplacement, 2=Avoir, 3=Situation, 5=Proforma. Défaut: 0
socidYesID du tiers (client)
ref_clientNoRéférence client (votre N° de commande client)
note_publicNoNote visible sur le PDF de la facture
note_privateNoNote interne (non visible sur le PDF)
cond_reglement_idNoID condition de paiement (délai)
mode_reglement_idNoID mode de paiement (virement, chèque...)
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It only reveals the 'draft' nature ('brouillon') but omits side effects, required permissions, the need for a third-party ID, or follow-up workflow. For a state-changing tool, this is insufficient.

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?

The description is a single, front-loaded sentence with no filler or redundant information. Every word contributes to understanding the tool's core purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 8 parameters, no output schema, and no annotations, the description is too sparse. It does not clarify that the invoice is only a draft header, that lines must be added separately, or what the response will contain, leaving significant gaps for an agent.

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 description coverage is 100%, so baseline 3 applies. The description adds no extra parameter meaning beyond what the input schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Créer') and resource ('facture brouillon pour un tiers'), clearly indicating the tool creates draft invoices for third parties. This distinguishes it from sibling tools like create_credit_note and create_supplier_invoice.

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?

No guidance is given on when to use this tool versus alternatives. It does not mention that this only creates a draft invoice header and that subsequent steps (adding lines, validation) require separate tools like add_invoice_line and validate_invoice.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/digitalfactorysn/mcp-dolibarr'

If you have feedback or need assistance with the MCP directory API, please join our Discord server