Skip to main content
Glama
Dolibarr MCP Server

Dolibarr MCP Server

Search stock movements

dolibarr_stock_movement_search
Read-only

Search the stock movement journal, newest first, and filter by product, warehouse, lot, or label words to find specific inventory movements.

Instructions

The stock movement journal, newest first. Filter by product, warehouse, lot or words in the movement label.

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_stock_movement_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotNoExact lot number.
pageNoPage number, starting at 0.
limitNoRows per page (max 50).
queryNoWords in the movement label or inventory code.
product_idNo
warehouse_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 the meaningful behavioral fact that results are returned newest-first, but says nothing about the default page size of 20 / cap of 50 in prose, whether an empty result means no movements versus wrong filters, or what a movement record contains.

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, both load-bearing, with the resource and ordering front-loaded before the filter list. Nothing is redundant or padded.

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 read-only search with no output schema, the definition leaves the return shape entirely unspecified — the agent cannot tell which fields identify a movement or how to interpret results. Combined with the absent pagination note, this is adequate but with clear gaps for a 6-parameter search tool.

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

Parameters4/5

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

Schema coverage is 67%, with product_id and warehouse_id carrying no descriptions in the schema; the description compensates by naming product, warehouse, lot, and label words as the filter dimensions, effectively mapping to those parameters. It does not clarify whether filters combine with AND semantics or what "words in the movement label" matching behavior is (substring, token), so it stops short of full compensation.

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 ("the stock movement journal") and its ordering ("newest first"), plus the filterable dimensions. It does not explicitly contrast with siblings like dolibarr_product_stock (current stock levels) or dolibarr_stock_correct, so an agent must infer that this is the historical/audit view rather than the current-balance view.

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?

Usage is implied by the listed filters: reach for this tool when you want movement history scoped to a product, warehouse, lot, or label text. There is no explicit when-to-use statement, no exclusion, and no pointer to an alternative such as the stock-level tool for current quantities.

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