Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Create a ticket

dolibarr_ticket_create

Creates a Dolibarr helpdesk ticket with subject and message, plus optional type, category, severity, contact, project, and assignee details.

Instructions

Opens a helpdesk ticket. Type, category and severity codes come from dolibarr_dictionary (ticket_types, ticket_categories, ticket_severities).

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": {
      "subject": "<subject>",
      "message": "<message>"
    },
    "name": "dolibarr_ticket_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYes
subjectYes
type_codeNo
contact_idNo
project_idNo
origin_emailNoEmail address of the requester.
category_codeNo
custom_fieldsNoCustom fields by code, e.g. {"region": "north"}. Get codes and allowed values from dolibarr_custom_field_list.
severity_codeNo
thirdparty_idNo
assign_to_user_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the write semantics are covered. The description adds that ticket type/category/severity codes are dictionary-sourced, which is useful context, but it does not say what happens on duplicate submissions, whether notifications are sent, or what identifiers are returned.

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 core action, and the dictionary pointer is kept tight. There is no wasted wording, though the description is quite sparse for an 11-parameter tool.

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 create tool with 11 parameters, nested custom_fields, no output schema and only 18% schema description coverage, the definition is thin. It does not identify which parameters reference other entities (thirdparty, contact, project, user) or what a successful creation returns.

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 low at 18% across 11 params, so the description should compensate more. It does explain that type_code, category_code and severity_code are dictionary-driven values, but says nothing about thirdparty_id, contact_id, project_id, assign_to_user_id, or the nested custom_fields object beyond the schema's own note.

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 ("Opens a helpdesk ticket"), which distinguishes it from siblings like dolibarr_ticket_add_message or dolibarr_ticket_update. It does not explicitly contrast with creation-adjacent siblings such as dolibarr_event_create, but the verb+resource pair 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 Guidelines3/5

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

The description implies usage (create a new ticket) and helpfully routes enum-like code values to dolibarr_dictionary. It gives no explicit when-to-use/when-not guidance, e.g., whether to prefer add_message on an existing ticket instead of creating a new 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