Skip to main content
Glama
digitalfactorysn

MCP Dolibarr Expert

add_order_line

Add a product or custom line item to an existing customer order in Dolibarr. Specify the order ID, unit price, quantity, and VAT rate, with optional description, product ID, and discount.

Instructions

Ajouter une ligne à une commande client

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesID de la commande
qtyYesQuantité commandée
descNoDescription de la ligne
tva_txYesTaux TVA %
subpriceYesPrix unitaire HT
fk_productNoID produit catalogue
remise_percentNoRemise %
Behavior2/5

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

No annotations exist, and the description only states the action without disclosing side effects, required order status, or consequences. It does not mention whether the line can be added only to draft orders or if totals are recalculated.

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 concise sentence with no redundant words, making it easy to parse.

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?

For a mutation tool with no annotations, output schema, or conditions, the sparse description leaves out important operational context such as preconditions, return value, or error behavior. While the schema covers parameters, the description fails to explain the operational context.

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?

All 7 parameters have schema descriptions covering 100% of semantics, so the description adds no additional parameter information. The baseline 3 applies.

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 'Ajouter' and resource 'ligne' targeting 'commande client', clearly distinguishing from sibling add_*_line tools for proposals, invoices, or supplier orders. The scope is explicit.

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 description implies usage for adding lines to customer orders, but does not explicitly state when to prefer it over alternatives like add_proposal_line or add_supplier_order_line. No when-not-to-use guidance is provided.

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