Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Add, change or remove a proposal line

dolibarr_proposal_line

Add, update, or delete lines on a draft proposal, supporting product lines and free-text lines with quantities, prices, VAT rates, and discounts.

Instructions

Edits the lines of a draft proposal. add: qty and product_id (or a description and unit_price for a free-text line). update: line_id and the fields to change. delete: line_id.

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": {
      "proposal_id": "<proposal_id>",
      "action": "<action>"
    },
    "name": "dolibarr_proposal_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoQuantity.
actionYes
line_idNoNeeded for update and delete.
vat_rateNoVAT rate in percent. Leave out for the product's default rate (0 on a free-text line).
product_idNoProduct or service id. Leave out for a free-text line.
unit_priceNoUnit price before tax. Leave out on a product line to use the product's price.
descriptionNoLine text. Required for a free-text line.
proposal_idYes
free_line_kindNoOnly for a free-text line (no product_id): whether it is a service or goods.service
discount_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, so the safety profile is already carried by structured data. The description adds real value with the draft-only precondition and the mutually exclusive parameter sets for product vs free-text lines. It does not disclose idempotency consequences (repeat 'add' calls create duplicate lines) or what happens to existing line data on 'update', which are the gaps keeping it at 3. Removing a line is a mild tension with destructiveHint=false, but for a draft line item this reads as removable, not a hard contradiction.

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?

Three short sentences, purpose front-loaded, then a compact per-action breakdown. Telegraphic phrasing ('delete: line_id.') is deliberate and wastes nothing.

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?

For a 10-parameter mutation tool with no output schema, the description covers the essentials: scope (draft lines), the three modes, and the required fields per mode. It could say more about the draft precondition's failure mode and the optional vat_rate/discount_percent behavior, but no critical calling information is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 70%, and the description adds meaning the schema cannot express: the conditional requirement structure (qty+product_id for a product line, description+unit_price for a free-text line, line_id for update/delete). That combination logic is genuinely useful. It says nothing about vat_rate, discount_percent, or free_line_kind, which are left entirely to the schema.

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 ('edits the lines of a draft proposal') and then enumerates the three action modes, so an agent can separate it from dolibarr_proposal_update (header-level) and from line tools on other document types. It stops short of explicitly contrasting with siblings like dolibarr_order_line, which is why it is not a 5.

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?

Per-action guidance is given at the parameter level ('add: qty and product_id...'), and the 'draft proposal' qualifier implicitly tells the agent this is not for validated/closed proposals. However, there is no explicit statement of when to use this versus dolibarr_proposal_update or dolibarr_proposal_action, and no stated failure behavior when the proposal is not a draft.

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