Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Update a contact

dolibarr_contact_update

Updates fields on an existing Dolibarr contact; only supplied values are changed, so other contact data stays unchanged.

Instructions

Changes fields of a contact. 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": {
      "contact_id": "<contact_id>"
    },
    "name": "dolibarr_contact_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
zipNo
townNo
emailNo
addressNo
lastnameNo
firstnameNo
job_titleNo
phone_proNo
contact_idYes
country_codeNo
note_privateNoInternal note.
phone_mobileNo
custom_fieldsNoCustom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list.
thirdparty_idNoThird party the contact belongs to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare this is a non-read-only, non-destructive, non-idempotent mutation. The description adds one meaningful behavioral fact not in the annotations: unspecified fields are left untouched (patch semantics). It says nothing about what happens if contact_id does not exist, whether changes are validated/rejected atomically, or what the response contains.

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?

Two short sentences, front-loaded with the action and immediately followed by the key scoping rule; no filler. It is lean to the point of under-specification, but nothing is wasted.

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

Completeness2/5

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

For a 14-parameter mutation tool with low schema coverage and no output schema, the description should cover return behavior, permission/validation requirements, and at least group the updatable fields. None of that is present, so an agent must open the schema and guess at edge-case behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 14 parameters and only 21% schema description coverage, the description needs to compensate and does not. It names no fields, does not explain that all fields except contact_id are optional, and gives no hints about formats for email, country_code, thirdparty_id reassignment, or the custom_fields object beyond what the schema itself states.

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?

"Changes fields of a contact" gives a clear verb and resource, and the second sentence clarifies that it is a partial mutation. It does not explicitly distinguish itself from siblings like dolibarr_contact_create or dolibarr_thirdparty_update, but the verb+resource pairing is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus dolibarr_contact_create (for new contacts) or dolibarr_contact_get (for reads), nor any prerequisites such as required permissions or whether the contact must already exist. The only usage-adjacent information is the partial-update rule, which is behavioral rather than routing 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