Skip to main content
Glama

Stock Movements

get_stock_movements
Read-only

An item's stock movement history at one warehouse, newest first — the Inventory page's movement log: receipts, sales, adjustments, moves, transfers and (with includeReservations) reservations, each with the document, location, quantity, cost, who did it and the running available total. Use it to explain why stock changed.

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": "get_stock_movements"
  }
}

Input Schema

NameRequiredDescriptionDefault
skuNoItem SKU (matched first, case-insensitive).
upcNoItem UPC/barcode, used when SKU is absent or unmatched.
pageNo1-based page number (default 1).
clientIdNoOptional client id (GUID) for operator (unpinned) credentials on 3PL tenants.
pageSizeNoPage size (default 50, max 200).
warehouseIdNoWarehouse id (GUID). May be omitted when the tenant has exactly one Internal warehouse.
includeReservationsNoInclude reservation and release events (default false).

Output Schema

NameRequiredDescriptionDefault
pageNo
totalNo
itemIdNo
itemSkuNo
itemNameNo
pageSizeNo
movementsNo
warehouseIdNo
warehouseNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and non-destructive, so the description adds the useful behavioral detail of result ordering, the event taxonomy covered, and that reservations only appear when includeReservations is true. It does not discuss pagination limits beyond the schema or any rate-limit/permission concerns, keeping it out of 5 territory.

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?

Front-loads the resource and scope in the first clause, then the event taxonomy, and closes with a one-line use case. It is dense and long-ish but every clause carries content; no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With annotations covering safety and an output schema covering return values, the description only needs to convey scope, ordering and event coverage — which it does. Minor gaps like pagination behavior are covered by the schema, so nothing essential is missing.

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 description coverage is 100%, so SKU/UPC precedence, paging, warehouseId fallback and includeReservations are already documented. The description reinforces the optional reservations behavior in prose but adds little parameter meaning beyond the schema, so baseline 3 applies.

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?

Names a specific verb+resource ('stock movement history'), scopes it to one item and one warehouse, states ordering ('newest first'), and enumerates the event types and fields returned. An agent can distinguish it from get_stock_locations or get_item_stock_outlook from the description alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Use it to explain why stock changed' gives a clear reconciliation/audit use case, which is meaningful context for selection. It stops short of naming when not to use it or pointing to an alternative sibling, so it does not reach the top of the scale.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources