Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Validate, close or delete a shipment

dolibarr_shipment_action
Destructive

Validate, close, or delete a Dolibarr shipment with a safe preview by default. Set confirm=true only after approval to apply the irreversible status change.

Instructions

Moves a shipment to another status. Actions: validate (the draft gets its final ref; depending on the stock setup this takes the goods out of stock); close (classifies the shipment as delivered); delete (deletes the shipment 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": {
      "shipment_id": "<shipment_id>",
      "action": "<action>"
    },
    "name": "dolibarr_shipment_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
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.
shipment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false; the description goes well beyond them by spelling out what each action does downstream (validate assigns the final reference and may remove goods from stock, close marks delivered, delete is permanent) and by declaring the confirm-gated preview behavior. It also warns the step "cannot simply be undone," which is exactly the kind of consequence an agent needs before a destructive call.

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 front-loaded sentences that each carry a distinct payload: the action effects, then the irreversibility/confirm rule. Slight density in the validate clause (ref assignment plus stock side effect) but nothing is filler.

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 four-parameter destructive mutation with no output schema, the definition covers consequence, reversibility, and the safety gate. The only minor gap is what the preview response actually contains, which matters less here since the agent's decision hinges on confirm semantics.

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 50% with no description on shipment_id and none on the action enum, but the prose supplies the missing semantics for all three action values and clarifies the default of confirm as a no-op preview. The reason parameter's audit-log purpose is already in the schema, so no credit is taken for restating it.

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?

Specific verb-plus-resource ("Moves a shipment to another status") immediately followed by an enumeration of the three allowed actions and what each one does to the record. An agent can separate this from dolibarr_shipment_get/search/create without needing another definition.

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?

It states the trigger for the risky path clearly ("Set true only after the user has explicitly agreed to this exact step") and explains the default dry-run behavior. There is no explicit statement of when to reach for this tool versus a sibling such as dolibarr_shipment_create, but for a status-transition tool the action-level guidance is largely sufficient.

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