Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a contact

dolibarr_contact_create

Create a contact person in Dolibarr and attach it to a third party. Add names, email, phone, address, job title, and custom fields to build CRM contact records.

Instructions

Creates a contact person, usually attached to a third party.

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

Input Schema

NameRequiredDescriptionDefault
zipNo
townNo
emailNo
addressNo
lastnameYes
firstnameNo
job_titleNo
phone_proNo
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.6/5.0
Behavior2/5

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

Annotations already declare this as a non-read-only, non-destructive, non-idempotent, closed-world write, so the safety profile is covered. Beyond that the description says nothing: no duplicate-handling behavior, no permission requirements, no note that a second call with the same lastname creates a second contact.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, but at this size conciseness shades into under-specification for a 13-parameter mutation tool. Nothing is wasted, yet very little is delivered.

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?

A create tool with 13 params, a nested custom_fields object, no output schema and sparse schema coverage needs far more: required-field emphasis, duplicate behavior, and what identifier comes back. The definition supplies none of it.

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?

Schema description coverage is only 23% across 13 parameters, so the description must carry the load and does not. Its one parameter-relevant clause (attachment to a third party) merely restates what thirdparty_id's own schema description already says, leaving fields like country_code and custom_fields undocumented in the prose.

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?

States a specific verb and resource ("Creates a contact person"), which cleanly separates it from the read-side siblings dolibarr_contact_get, dolibarr_contact_search and dolibarr_contact_update. It stops short of explicitly naming which sibling to use instead when a contact already exists.

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?

The phrase "usually attached to a third party" hints at the common case but gives no when-to-use rules, no prerequisites (e.g. does the third party need to exist first?), and no guidance for creating a contact without a third party.

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