Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Add, change or remove a BOM line

dolibarr_bom_line

Add, update, or delete component lines in a draft bill of materials by BOM ID, using product details and quantity for additions or line IDs for edits and removals.

Instructions

Edits the component lines of a draft BOM. add: product_id and qty. 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": {
      "bom_id": "<bom_id>",
      "action": "<action>"
    },
    "name": "dolibarr_bom_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNo
actionYes
bom_idYes
line_idNo
efficiencyNo
product_idNo
qty_frozenNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior1/5

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

Annotations declare destructiveHint=false, yet the description advertises a delete action that removes a component line, so the safety profile an agent reads from annotations is contradicted by the documented behavior. Beyond that, nothing is said about permissions, whether removal is reversible, idempotency for repeated add/update calls, or the effect of editing a finalized BOM.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three clipped, front-loaded clauses with no filler, and the action routing is easy to scan. The compression costs some clarity ("the fields to change" is vague), but nothing is wasted.

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 7 undocumented parameters, no output schema, and three distinct modes, the description should at minimum explain the remaining fields and mode-specific failure conditions. It documents only the parameter subset needed for add and delete, leaving update and the efficiency/qty_frozen options unexplained.

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 0% across 7 parameters, so the description must carry the load and it only partially does: it maps product_id, qty and line_id to actions but says nothing about the required bom_id, the optional efficiency and qty_frozen fields, or their units/ranges. Coverage is enough to start an add/delete call but not an update.

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 states a specific verb and resource ("Edits the component lines of a draft BOM") and scopes it to draft BOMs, which separates it from bom_create/bom_delete/bom_get by implication. It does not name any sibling explicitly, so an agent must infer the boundary rather than being routed.

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?

"draft BOM" is a real precondition, and the per-action parameter mapping (add -> product_id/qty, update -> line_id + fields, delete -> line_id) tells the agent how to use each mode. However, it never says when not to use it, what happens on a non-draft BOM, or how to recover a deleted line, leaving the exclusion cases implicit.

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