Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

List the custom fields of a record type

dolibarr_custom_field_list
Read-only

Lists the custom fields (extrafields) available for a record type, including codes, labels, types, and allowed values. Check it before creating or updating records with custom_fields so codes and values are correct.

Instructions

The custom fields (extrafields) a record type has on this Dolibarr instance: code, label, type, whether it is required, and the allowed values of choice fields. Call it before creating or updating a record with custom_fields, so the codes and values are right.

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

Input Schema

NameRequiredDescriptionDefault
recordYesThe kind of record.

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 readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds value beyond them by flagging instance-specificity ('on this Dolibarr instance'), warning the agent that field codes are not universal, and by disclosing the returned attributes including choice-field allowed values.

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 sentences, no filler: the first states what is returned, the second states when to call it. Front-loaded and free of repetition of the title.

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

Completeness5/5

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

There is no output schema, so the description must convey return content, and it does: code, label, type, required flag, and allowed values for choice fields. Combined with the pre-call usage rule, an agent has everything needed to invoke it correctly for a one-parameter read tool.

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 100% and the single parameter is an enum with a description, so the schema already carries the meaning. The description's phrase 'record type' mirrors the parameter but adds no extra guidance on the enum values or their mapping.

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?

The description names the resource precisely (custom fields / extrafields of a record type on this Dolibarr instance) and enumerates what each entry contains. The verb is implicit, carried by the name and the 'Call it before...' sentence, and no sibling tool offers comparable functionality, so there is little to disambiguate.

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 gives an explicit trigger: call this before creating or updating a record that carries custom_fields, so the codes and values are right. That is a concrete when-to-use rule tied to a specific failure mode (wrong codes/values), with no competing alternative to name.

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