Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Validate, sign, refuse, bill, reopen or delete a proposal

dolibarr_proposal_action
Destructive

Moves a proposal through validate, draft, sign, refuse, billed, or delete statuses, and previews the change unless confirm=true is set.

Instructions

Moves a proposal to another status. Actions: validate (the draft gets its final ref and can be sent to the customer); set_draft (a validated proposal goes back to draft for editing); sign (records that the customer accepted the proposal); refuse (records that the customer declined the proposal); set_billed (classifies a signed proposal as billed); delete (deletes the proposal 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": {
      "proposal_id": "<proposal_id>",
      "action": "<action>"
    },
    "name": "dolibarr_proposal_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNoWith sign or refuse: an internal note on the outcome.
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.
proposal_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and write access, and the description reinforces that with "This step cannot simply be undone" plus the preview-gated confirm behaviour, which is exactly the context an agent needs before mutating. It does not disclose what happens on an invalid transition, permission requirements, or the response content, leaving some behavioral ground uncovered.

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?

Purpose sentence is front-loaded, followed by a tight parenthetical enumeration of actions, then the irreversibility warning last. Every sentence carries information; the action list is long but each entry is needed for an agent choosing among six statuses.

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 six-way destructive state machine with no output schema, the description covers the state transitions and the safety gate (preview until confirm=true) that an agent must understand. Missing are error/transition validity behaviour and any indication of what the preview or success response contains, which a caller would want.

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 60%, and the description fills the largest gap by explaining the semantics of each value of the `action` enum, which the schema lists without meaning. The preview/dry-run semantics of `confirm` and the role of `reason` are already documented in the schema, so the description adds value chiefly on the enum.

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+resource ("moves a proposal to another status") and then enumerates each of the six actions with a one-clause explanation of the resulting state (validate assigns final ref, set_draft reverts, sign records acceptance, refuse records decline, set_billed classifies, delete removes permanently). An agent can distinguish this from dolibarr_proposal_update (field editing) purely from the action list.

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?

Gives per-action preconditions that function as when-to-use guidance: validate applies to a draft, set_draft to a validated proposal, set_billed to a signed one. It also advises calling without confirm=true first to preview. It stops short of explicit when-not guidance or exclusion of edge cases, so a 4 rather than 5.

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