Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Add a message to a ticket

dolibarr_ticket_add_message

Add a message to a Dolibarr ticket thread to record support replies or updates in the ERP; the message is saved in Dolibarr and not emailed by this tool.

Instructions

Adds a message to a ticket's thread. It is recorded in Dolibarr; it is not emailed by this tool.

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": {
      "ticket_id": "<ticket_id>",
      "message": "<message>"
    },
    "name": "dolibarr_ticket_add_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageYes
ticket_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare it as a non-read-only, non-destructive write, so the description's value is in what it adds: the message is persisted in Dolibarr and is NOT emailed by this tool. That notification caveat is exactly the kind of context an agent needs before promising a user that someone was notified. It stops short of 5 by not noting that retries will create duplicate messages (consistent with idempotentHint=false) or who is recorded as the author.

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 waste, and the core action is front-loaded ahead of the caveat. Nothing is repeated from the title or schema.

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 simple two-parameter mutation with no output schema, the definition covers the essentials of what happens and what does not (no email), which is adequate. It is still missing practical prerequisites such as whether the ticket must exist or be open, and whether any confirmation or message identifier is returned.

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 0%, so the description carries the full burden for the two required parameters, and it adds almost nothing: ticket_id and message are only obliquely implied by 'a ticket's thread.' The 50,000-character message limit, the positive-integer constraint on ticket_id, and any format expectations are left entirely undocumented.

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: 'Adds a message to a ticket's thread.' This clearly separates it from dolibarr_ticket_create and dolibarr_ticket_update, which act on the ticket itself rather than its message thread. No sibling is named explicitly, so it falls short of a 5.

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 use case is implied by 'message to a ticket's thread,' giving an agent enough to know it is for commenting rather than creating or modifying a ticket. There is no explicit when-to-use vs. when-not guidance, no statement that the ticket must already exist or be open, and no named alternative.

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