Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a bill of materials

dolibarr_bom_create

Creates a draft BOM for a product with component lines; validation is required in the Dolibarr web interface before the BOM can be used on a manufacturing order.

Instructions

Creates a draft BOM for a product, with its component lines. The standard API has no route to validate a BOM: the user validates it in the Dolibarr web interface before it can be used on a manufacturing order.

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": {
      "product_id": "<product_id>",
      "label": "<label>"
    },
    "name": "dolibarr_bom_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
qtyNoQuantity of the product one run of this BOM makes.
typeNomanufacture
labelYes
linesNo
product_idYesThe product the BOM makes.
note_privateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false, openWorld=false, so the safety profile is covered. The description adds genuinely new behavioral context by disclosing the resulting state (draft) and the hard limitation that no validation route exists, but says nothing about permissions, error behavior, or what is returned.

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?

Two sentences, tightly front-loaded: what it does first, the downstream constraint second. No filler, no restating of the title.

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

Completeness3/5

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

For a 6-parameter mutation tool with no output schema, the definition does the important thing of flagging draft status and the missing validation route, but it omits the return value (e.g., the new BOM id) and leaves most parameters unexplained. It is workable but leaves real gaps for an agent composing a call.

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

Parameters2/5

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

Schema description coverage is only 33%, so the description must compensate and does not. It alludes to the product and its component lines but never explains type (manufacture vs. disassemble), qty, efficiency, qty_frozen, or note_private, leaving most parameters without meaning beyond their names.

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 opens with a specific verb and resource ('Creates a draft BOM for a product') and adds scope ('with its component lines'), which implicitly separates it from the sibling dolibarr_bom_line that adds lines individually. It stops short of naming any sibling explicitly, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The second sentence gives a concrete workflow constraint: there is no API route to validate a BOM, so the user must validate it in the Dolibarr web interface before use on a manufacturing order. That tells the agent when this tool's job ends, though it offers no guidance on bom_line vs. embedding lines here, or when to prefer bom_get/bom_search afterwards.

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