Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Validate, approve, send or delete a supplier order

dolibarr_supplier_order_action
Destructive

Move a supplier order through validate, approve, mark ordered, or delete actions, returning a preview first unless confirm=true is set.

Instructions

Moves a supplier order to another status. Actions: validate (the draft gets its final ref and waits for approval); approve (approves the validated order so it can be sent to the supplier); mark_ordered (records that the approved order was sent to the supplier); delete (deletes the supplier order permanently). 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": {
      "supplier_order_id": "<supplier_order_id>",
      "action": "<action>"
    },
    "name": "dolibarr_supplier_order_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
reasonNoOne line on why, kept in the audit log. Required when confirm is true.
commentNoWith mark_ordered: a comment for the event log.
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.
order_dateNoWith mark_ordered: the date the order was sent; default today.
order_method_idNoWith mark_ordered: how it was sent, from dolibarr_dictionary ordering_methods.
supplier_order_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the risk profile is known. The description adds genuine value beyond that: validate locks in the final reference, delete is permanent, and without confirm=true the call is a dry-run preview. It does not clarify whether a dry run returns the same payload shape or what happens if the order is in the wrong state, but with annotations carrying the safety signal this is solid.

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?

Front-loaded with the core verb, followed by a compact action breakdown and the irreversibility/preview warning last. Every clause carries information; the semicolon-and-parenthesis structure is dense but readable.

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 7-parameter state-transition tool with no output schema, the definition covers the action semantics, the prerequisite ordering, permanence, and the preview/commit gate. The remaining gap is return behavior (what the preview shows, how errors on invalid state transitions manifest), which an agent would want before committing.

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 coverage is 71%, so most parameters (reason, comment, order_date, order_method_id, confirm) are already documented inline. The description contributes the crucial preview/commit semantics of confirm and the per-value meaning of the action enum, but adds nothing about reason, comment, order_date or order_method_id beyond 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?

States a specific verb ('Moves a supplier order to another status') plus the exact resource, and enumerates all four action values with their distinct meaning (validate/approve/mark_ordered/delete). It clearly separates itself from read/update siblings by being a lifecycle-state tool, though it never names a sibling explicitly.

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 parenthetical for each action encodes the prerequisite state chain (draft -> validate -> approve -> mark_ordered), which tells an agent which step to pick in a given situation. The confirm caveat ('Set true only after the user has explicitly agreed') also sets a usage condition. It stops short of naming alternatives or when not to use it, e.g. versus dolibarr_supplier_order_receive or dolibarr_supplier_order_update.

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