Skip to main content
Glama

Stock by warehouse

saga_stock
Read-onlyIdempotent

Retrieve stock quantities and estimated cost value per warehouse and article as of a given date to check inventory balances.

Instructions

Stock quantities (and an estimated value at cost) per warehouse (gestiune) and article at a date.

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

Input Schema

NameRequiredDescriptionDefault
firmNoFirm code (folder name such as "0001"). Optional when only one firm is configured.
as_ofNo
limitNoMaximum rows to return.
searchNo
articleNo
warehouseNo
include_zeroNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already cover safety (readOnly, non-destructive, idempotent, closed-world). Description adds the estimated-value caveat ('at cost') which is mild added context, but says nothing about ordering, pagination, how as_of behaves when omitted, or whether quantities include zero-stock warehouses by default. No annotation contradiction.

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?

One tight sentence with no waste, front-loaded with the returned resource. It is short to the point of leaving gaps, but nothing in it is redundant.

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 query with 7 params at 29% coverage and no output schema, the description should cover as_of default semantics, zero-stock inclusion, and search scope. It covers only the returned content, leaving several behavioral questions open.

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 coverage is 29%, so the description must compensate, yet it only indirectly hints at warehouse, article and as_of. It does not explain 'search', 'include_zero', 'limit' defaults, or the 'firm' fallback behavior already partly covered by the schema. Meaning added beyond the schema is minimal.

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 specifically what it returns: stock quantities and estimated value at cost, per warehouse (gestiune) and article, as of a date. Clear verb+resource; distinguishes from sibling saga_stock_movements implicitly (point-in-time balances vs movements) but doesn't name it.

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?

No when-to-use guidance, no mention of alternatives such as saga_stock_movements for movement history, and no prerequisites. The agent must infer the use case purely from the purpose sentence.

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