Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Write to any Dolibarr API endpoint

dolibarr_api_write
Destructive

Applies Dolibarr REST API changes via POST, PUT, or DELETE routes when no dedicated tool exists. Shows a preview by default; set confirm=true to execute.

Instructions

Calls any POST, PUT or DELETE route of the Dolibarr REST API. A last resort for changes that no dedicated dolibarr_* tool covers: find the route and its body fields with dolibarr_api_find_endpoint first, and prefer a dedicated tool whenever one exists. This step cannot simply be undone: without confirm=true it only returns a preview.

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": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "dolibarr_api_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST and PUT.
pathYesRoute path, e.g. /thirdparties or /orders/12/contact/5/SHIPPING.
methodYes
reasonNoOne line on why, kept in the audit log. Required when confirm is true.
confirmNofalse (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and non-idempotent, so the safety profile is known; the description still adds real context by disclosing the two-phase confirm mechanic (default returns a preview and changes nothing) and the audit-log consequence of 'reason'. It stops short of describing what the preview actually returns or how failures on arbitrary routes surface.

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 sentences, zero filler. The capability statement comes first, the routing guidance second, the irreversibility/preview warning last — exactly the order an agent needs to decide whether to proceed.

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 destructive generic escape hatch with no output schema, the definition covers the decision-relevant facts: when not to use it, how to resolve the route, and that the default call is a no-op preview. Only the preview's return shape and error behavior on invalid routes are left unstated, which is a minor gap.

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 80%, so the schema already documents body, path, method, reason and confirm. The description adds workflow meaning on top: body fields are to be discovered via dolibarr_api_find_endpoint, and confirm=true is gated on the user having explicitly agreed to this exact step. It does not explain the path template syntax beyond the schema's example.

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?

States a specific verb class and resource: it calls POST, PUT or DELETE routes of the Dolibarr REST API. The scope restriction (write methods only) plus the explicit 'last resort' framing separates it cleanly from dolibarr_api_get and the dedicated dolibarr_* write tools without needing to open any schema.

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

Usage Guidelines5/5

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

Gives explicit ordering: use dolibarr_api_find_endpoint first to resolve the route and body fields, and prefer a dedicated tool whenever one exists. That is a when-to-use plus a named alternative and a prerequisite in one sentence, leaving nothing to inference.

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