Skip to main content
Glama

get_stock

Read-only

Retrieve current stock levels per article, including in-stock and available stock after reservations; omit article numbers to fetch every non-zero balance.

Instructions

Current stock per article on the server's stock point: inStock and availableStock (= in stock minus reservations, what a webshop should show). Articles missing from the answer have 0. Omit article_numbers for every non-zero balance.

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

Input Schema

NameRequiredDescriptionDefault
article_numbersNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds meaningful behavior beyond that: availableStock is net of reservations, and articles absent from the response have a balance of zero rather than being an error. It does not mention pagination or limits, but for a small read tool the added context is substantive.

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?

Three tight sentences, front-loaded with what the tool returns, followed by the zero-fill rule and the parameter hint. No filler wording and nothing redundant.

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

Completeness5/5

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

With no output schema, the description must explain return values, and it does by naming both stock fields and their meaning, plus the zero-for-missing rule. For a one-parameter read tool with annotations covering safety, an agent has everything needed to call it correctly.

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 description coverage is 0%, so the description must carry the single parameter, and it does: omitting article_numbers returns every non-zero balance, which tells the agent the default filtering behavior and the null semantics. It does not clarify the expected string format of the article numbers themselves.

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 and resource: 'Current stock per article on the server's stock point,' and even defines the two returned fields (inStock, availableStock). It does not explicitly differentiate itself from nearby siblings like stock_warnings or article_movements, so it falls just short of a 5.

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 line 'Omit article_numbers for every non-zero balance' is genuine usage guidance for the parameter, but there is no guidance on when to pick this tool over stock_warnings or article_movements, and no stated prerequisites. Usage is implied rather than contrasted with alternatives.

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