Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Update a commercial proposal's head

dolibarr_proposal_update

Update only specified header fields of a Dolibarr proposal, such as dates, customer reference, notes, or custom fields, without altering its line items.

Instructions

Changes head fields of a proposal (not its lines). Only the fields given are changed.

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>"
    },
    "name": "dolibarr_proposal_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
note_publicNoNote visible to the third party (printed on documents).
proposal_idYes
note_privateNoInternal note.
ref_customerNo
custom_fieldsNoCustom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list.
delivery_dateNoDate as YYYY-MM-DD.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false, idempotent=false and closed-world scope, so the safety profile is covered. The description adds genuinely new behavior with "Only the fields given are changed" (partial/PATCH semantics, consistent with idempotentHint=false), but says nothing about permission requirements, locked/validated proposals, or error behavior.

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?

Two short sentences, front-loaded with the core action, with the line exclusion and partial-update rule stated immediately. Nothing is wasted or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and a nested custom_fields object, the definition is adequate but thin: it omits state constraints (validated/closed proposals), what the response contains, and how custom_fields interact with dolibarr_custom_field_list. An agent could call it, but not confidently in edge cases.

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%, with note_public, note_private, delivery_date and custom_fields already documented inline, while proposal_id and ref_customer carry no description. The description adds no field-level meaning beyond "head fields" and the partial-update rule, so it neither compensates for the gap nor duplicates 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?

Specific verb plus resource: "Changes head fields of a proposal" scopes the operation to header data and explicitly excludes lines, which separates it from dolibarr_proposal_line. It does not, however, distinguish itself from dolibarr_proposal_action, whose name suggests overlapping mutation of a proposal.

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 parenthetical "(not its lines)" gives one useful when-not rule, routing line edits elsewhere. There is no guidance on prerequisites (e.g. whether the proposal must be in draft), on when to prefer dolibarr_proposal_action, or on what happens if a field cannot be changed.

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