Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Validate or delete a project

dolibarr_project_action
Destructive

Change a Dolibarr project's status by validating it as open or permanently deleting it with its tasks. Preview changes first, then confirm to apply.

Instructions

Moves a project to another status. Actions: validate (the draft project becomes open); delete (deletes the project and its tasks 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": {
      "project_id": "<project_id>",
      "action": "<action>"
    },
    "name": "dolibarr_project_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.
project_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds real context beyond them: delete is permanent and cascades to tasks, and the operation is not undoable. It also explains the safe-call pattern (confirm absent means a no-op preview). What it does not cover is permission requirements or what the preview response contains, which is why it lands at 4 rather than 5.

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 clauses, each doing distinct work: the general operation, the per-action effects, and the permanence/preview caveat. The irreversible nature is front-loaded in the same sentence as the destructive action, giving the reader the risk before the mechanics.

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?

Given a 4-parameter tool with an enum action and no output schema, the definition covers the critical decision points: which action does what, that deletion cascades, and that a preview mode exists. Gaps are secondary — no indication of required permissions or the shape of a preview result — but nothing prevents a correct invocation.

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 description coverage is only 50% (action and project_id carry no descriptions), so the description must compensate, and it partly does by defining the meaning of each action value. It does not clarify the project_id parameter's expected source or whether it refers to an existing project identifier. The confirm and reason semantics are already fully documented in the schema, so the description adds little there.

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?

Names a concrete resource (project) and enumerates the two supported operations with their effects: validate makes a draft project open, delete removes the project plus its tasks. An agent can distinguish this from dolibarr_project_update or dolibarr_project_create by the state-transition framing. The opening sentence 'Moves a project to another status' is slightly imprecise for the delete branch, but the action list immediately corrects it.

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

Usage Guidelines3/5

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

The description implies usage through the two-step preview/confirm flow, and it explicitly warns that the step cannot be undone. However it gives no explicit routing guidance against sibling tools — nothing says to use dolibarr_project_update for ordinary field changes instead of this tool, or that this tool applies only to projects in draft state. Usage is inferable but not stated.

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