Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Record time spent on a task

dolibarr_task_add_time

Records time spent on a project task for the connected user or another user, capturing the work date, hours, and an optional note.

Instructions

Records time spent on a project task, for the connected user or another user.

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": {
      "task_id": "<task_id>",
      "date": "<date>",
      "hours": "<hours>"
    },
    "name": "dolibarr_task_add_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesDay the work was done.
noteNo
hoursYes
task_idYes
user_idNoWho did the work; default the connected user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, so the write/non-idempotent profile is covered structurally. The description adds one genuinely useful behavioral fact — the entry is attributed to the connected user unless another user is named — but says nothing about whether task progress/duration is incremented, whether duplicate same-day entries are allowed, or what permissions are required.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient but arguably too terse for a five-parameter mutation, so brevity here is as much a limitation as a virtue.

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?

Annotations cover the safety profile and there is no output schema to explain, which lowers the bar, and the description does correctly convey the attribution model. However, for a non-idempotent write with 40% parameter coverage it omits side effects (does logging time update task progress?), duplicate handling, and permission requirements.

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 40% (task_id, hours, and note carry no schema descriptions), so the description needs to compensate but does not. Its only parameter-relevant content — that the work can be recorded for the connected user or another user — restates what the user_id schema property already says ('default the connected user'), and it never addresses the 0<hours<=24 constraint or the free-text 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?

The description states a specific verb and resource ('Records time spent on a project task'), which is clearly distinct from task_create, task_update, or task_get by name and nature. It stops short of explicitly contrasting itself with those siblings, so it lands at a clear-but-undifferentiated 4.

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?

There is no guidance on when to use this tool versus dolibarr_task_update, nor any prerequisite such as the task needing to exist or the caller needing permission to log time for another user. The attribution clause hints at one decision point but is not framed as usage guidance.

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