Skip to main content
Glama
mcp-dolibarr

mcp-dolibarr

List Sales Documents

list_sales_documents
Read-only

Retrieve proposals, orders, or invoices newest first, with optional status, third-party, pagination, and SQL filter options to review and manage sales documents.

Instructions

Sales documents (proposals, orders or invoices), newest first.

The status codes are in the instructions.

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": {
      "kind": "<kind>"
    },
    "name": "list_sales_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
pageNo
limitNo
statusNo
sqlfiltersNo
thirdparty_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds one useful behavioral fact, 'newest first' ordering, but omits pagination semantics and the meaning of sqlfilters or thirdparty_id filtering. It also offloads status-code meaning to external instructions without saying where.

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 lines with the resource and ordering front-loaded and no wasted wording. The second sentence, however, is a dangling pointer to a document the agent cannot see, which is efficient but unhelpful.

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?

An output schema exists so return values needn't be described, but for a six-parameter list tool with zero schema descriptions the definition is too thin. The sqlfilters parameter in particular is opaque without any explanation, leaving the agent unable to use most of the filtering surface.

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% across six parameters, so the description carries the burden and largely fails: sqlfilters syntax, thirdparty_id, page, and limit are unaddressed, and status is only gestured at via 'codes are in the instructions'. Only the kind enum is reflected, and that is already in the schema.

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 ('Sales documents') and enumerates the three kinds it covers (proposals, orders, invoices) plus the default ordering. The verb 'list' is only implied by the name/title rather than stated, but an agent can still identify the operation. It does not distinguish itself from siblings like get_object or search_products, though the domain is clear.

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 when-to-use guidance, no statement of when to prefer this over get_object or search_thirdparties, and no prerequisites. The only guidance sentence ('The status codes are in the instructions') directs the agent to external documentation rather than explaining usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.