Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Delete a manufacturing order

dolibarr_mo_delete
Destructive

Permanently deletes a manufacturing order after a preview step, without reversing posted stock movements. Requires confirm=true and a reason to execute.

Instructions

Deletes an MO permanently. Stock movements already posted on it are not reversed. 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": {
      "mo_id": "<mo_id>"
    },
    "name": "dolibarr_mo_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
mo_idYes
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.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the bar is lower, yet the description adds genuinely new behavior: posted stock movements are NOT reversed, the action is irreversible, and the default invocation is a no-op preview. These are exactly the consequences an agent needs before calling a destructive tool and are not derivable from the annotation flags.

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 short sentences, zero filler, and the highest-risk fact (permanent deletion) is front-loaded, followed by the secondary consequence and then the safety default. Nothing can be removed without losing information.

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, no-output-schema tool the description covers the critical gaps: irreversibility, stock side effects, and the dry-run default. It omits eligibility preconditions (whether an MO in progress can be deleted at all) and permission requirements, which would matter for an agent deciding whether to attempt the call.

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 67% and the schema already spells out confirm's preview/execute semantics and reason's audit-log requirement, so the description's confirm explanation largely restates structured data. It adds nothing about mo_id (the undocumented parameter) and does not mention reason at all, so it does not compensate for the coverage gap.

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 first sentence gives a specific verb and resource ("Deletes an MO permanently") and the scope word "permanently" distinguishes it from non-destructive siblings like dolibarr_mo_get or dolibarr_mo_produce. It stops short of naming an explicit alternative (e.g., closing or cancelling an MO instead of deleting), so the differentiation is inferred rather than stated.

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 description establishes clear usage context by explaining the two-mode gate: default call previews, confirm=true executes, and the schema-backed note that confirm should only be set after the user explicitly agreed. There are no explicit exclusions (e.g., 'do not use if the MO has posted stock movements' or 'use X to cancel instead'), so it falls just short of full when/when-not guidance.

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