Skip to main content
Glama

Stock movements of an article

saga_stock_movements
Read-onlyIdempotent

Retrieve stock movements for one article, optionally filtered by warehouse, over a date range with running quantity to track inventory changes.

Instructions

Movements of one article (optionally one warehouse) in a period with running quantity.

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": {
      "article": "<article>",
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "saga_stock_movements"
  }
}

Input Schema

NameRequiredDescriptionDefault
firmNoFirm code (folder name such as "0001"). Optional when only one firm is configured.
limitNoMaximum rows to return.
articleYes
date_toYesEnd date, YYYY-MM-DD (inclusive).
date_fromYesStart date, YYYY-MM-DD (inclusive).
warehouseNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive, so the safety profile is covered. The description does add one genuinely useful behavioral detail — that each row carries a running quantity — but says nothing about ordering, what happens when the row limit is hit, or whether results are truncated silently.

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; every clause carries scope information. It is arguably too terse for a six-parameter reporting tool, but nothing is wasted.

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?

With no output schema and four undocumented behavioral questions (result ordering, row-limit behavior, firm defaulting, article identifier format), the one-line description leaves real gaps. It is adequate for a read-only reporting call but not complete.

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

Parameters3/5

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

Schema coverage is 67%, with article and warehouse left undocumented. The description compensates partly by framing article as a single required article and warehouse as an optional narrowing filter, but gives no hint about identifier format (code vs. internal id) or what the limit default means.

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+resource+scope: movements of one article, optionally restricted to one warehouse, over a period, including a running quantity. An agent can tell it is a per-article movement history rather than an aggregate stock view, though it does not explicitly name a sibling to contrast with.

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 phrase "Movements of one article (optionally one warehouse) in a period" implies the use case (auditing the flow behind a stock figure) but never states when to prefer this over related tools, nor any prerequisites such as needing the article code in advance. Usage is inferable, not spelled out.

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