Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Who am I in Dolibarr

dolibarr_whoami
Read-only

Identifies the Dolibarr user, version and groups behind the current connection. Call it at session start, or with include_rights to find which permission blocks a refused action.

Instructions

Returns the Dolibarr user this connection acts as, the Dolibarr version, the user's groups and (optionally) permissions. Call it first in a session, and again with include_rights=true when Dolibarr refuses an action, to tell the user which right is missing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dolibarr_whoami"
  }
}

Input Schema

NameRequiredDescriptionDefault
include_rightsNoAlso list the user's permissions (long list).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/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 by warning that include_rights produces a 'long list' and by framing the tool as a permission-diagnosis aid. It stops short of describing the return shape (e.g. whether groups are names or IDs), which keeps it off a 5.

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, zero filler, and the primary action is front-loaded before the diagnostic guidance. Every clause carries either output information or a call condition.

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?

No output schema exists, so the description must convey return content — it does, enumerating user, version, groups and optional permissions. For a single-boolean, read-only tool this is fully sufficient to call correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the schema already documents include_rights, yet the description still adds meaning: the flag yields a 'long list' (a cost signal) and is specifically for resolving a refused action by naming the missing right. That is genuine semantic value beyond the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — returns the acting Dolibarr user — plus the accompanying payload (version, groups, optional permissions). This is unmistakably distinct from the CRUD/search siblings, which operate on domain records rather than the session identity.

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?

Gives explicit when-to-use instructions on both ends: 'Call it first in a session' for baseline context, and 'again with include_rights=true when Dolibarr refuses an action' for diagnostics. The trigger condition and the alternative mode are both spelled out, leaving nothing to infer.

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