Skip to main content
Glama

get_stock

Check approximate product stock at a specific Migros store using product and store IDs from prior searches; stock updates once per day.

Instructions

Check product stock at a specific Migros store. Use search_products and search_stores first to get the IDs. Stock is approximate and updated once a day.

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": {
      "productId": "<productId>",
      "storeId": "<storeId>"
    },
    "name": "get_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
storeIdYesStore ID (costCenterId) to check stock at. Get this from search_stores.
productIdYesProduct UID to check stock for. Get this from search_products.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It usefully reveals data freshness — stock is approximate and refreshed once a day — which is the kind of trait an agent needs to qualify its answer, but it omits auth requirements, error behavior, and whether the result is a quantity or a boolean.

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?

Three short sentences, front-loaded with the action and followed by prerequisites and a caveat. No padding, though the freshness caveat could be tied more tightly to how the agent should present results.

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?

For a simple two-parameter read tool with fully documented schema fields, the definition covers purpose, ID sourcing, and data freshness. The main remaining gap is that there is no output schema and the description doesn't hint at the return shape.

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% and both parameter descriptions already state the ID source tools, so the description adds nothing new about parameters. Baseline 3 applies when the schema does the heavy lifting.

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 a specific verb and resource — checking product stock at a named store — plus the scope constraint ('specific Migros store'). It is clearly a stock-availability lookup rather than a catalog or detail lookup, though it never explicitly contrasts itself with siblings like get_product_details.

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?

It gives a concrete prerequisite path: call search_products and search_stores first to obtain the IDs, which is real routing guidance. It stops short of stating when not to use it (e.g., online vs in-store availability) or what to do if no IDs are found.

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