Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a third party

dolibarr_thirdparty_create

Creates a customer, prospect, or supplier record in Dolibarr. Search existing third parties first to avoid duplicates; customer and supplier codes are generated automatically.

Instructions

Creates a customer, prospect or supplier. Search first with dolibarr_thirdparty_search: duplicates are hard to clean up. Customer and supplier codes are generated by Dolibarr's numbering rule.

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

Input Schema

NameRequiredDescriptionDefault
urlNo
zipNo
nameYes
townNo
emailNo
phoneNo
rolesNoWhat the third party is to the company.
addressNo
name_aliasNoTrade name or short name.
vat_numberNoIntra-community VAT number.
note_publicNoNote visible to the third party (printed on documents).
country_codeNoISO 3166 country code, e.g. FR, US.
note_privateNoInternal note.
custom_fieldsNoCustom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list.

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 declare this is a non-read-only, non-idempotent, non-destructive write. The description adds two things annotations cannot: that duplicates are costly to remove and that customer and supplier codes are assigned by Dolibarr's numbering rule, which tells the agent not to attempt manual code assignment. It does not say what the call returns or what permissions are required, which keeps it below a 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?

Two short sentences with zero filler. The core action comes first and the duplicate-check warning follows immediately, so the most decision-relevant information is front-loaded.

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 14-parameter mutation tool with no output schema and nested custom_fields, the description covers the duplicate risk and code generation but says nothing about the return value (e.g. the new third-party ID) or the custom_fields workflow beyond the schema hint. Adequate to call safely, but not complete.

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% across 14 parameters, so the description would ideally clarify the undocumented ones (address, town, zip, phone, url, email). Instead it only addresses code generation, which is not even a schema parameter, and leaves most field semantics to the schema. The added meaning is real but thin relative to the coverage gap.

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?

The description opens with a specific verb and resource class: creates a customer, prospect or supplier. Combined with the tool name, an agent knows immediately that this is the write entry point for third-party records, and the roles enumerated in the schema confirm the scope.

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

Usage Guidelines5/5

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

It explicitly names the alternative tool (dolibarr_thirdparty_search) and the condition that selects it: check for duplicates first because they are hard to clean up. That is a concrete when-to-use instruction with a stated consequence, not an inferred one.

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