Skip to main content
Glama

check_availability

Read-only

Determine product stock status—in stock, low, out of stock, or no data—at nearby BILLA, SPAR, HOFER, or dm stores using a postcode, town, or store ID.

Instructions

Whether stores near a place (or one store) have a product: stock is "in stock", "low", "out of stock" or "no data" (HOFER's red light is "low or out of stock"); dm adds pieces.

BILLA, dm and HOFER give stock levels; SPAR only says whether a store "listed" the product. HOFER keeps stock data for promotion items only.

Args: product_id: A hit's id from the same chain. near: An Austrian postcode or town; defaults to RABATT_NEAR. store_id: One store's id from find_stores instead of the nearest. limit: Stores to check, at most 10. Default 5.

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": {
      "chain": "<chain>",
      "product_id": "<product_id>"
    },
    "name": "check_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
nearNo
chainYes
limitNo
store_idNo
product_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 description's real value is the data-quality disclosures: per-chain coverage differences and the HOFER promotion-items-only caveat, which explain why a call may return 'no data'. It also caps the check at 10 stores. It does not describe response shape or ordering, so not a 5.

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-loaded with the purpose and return vocabulary, then chain caveats, then a compact Args block. Every line carries information, though the reStructuredText parameter listing is slightly mechanical and 'near defaults to RABATT_NEAR' duplicates environment config that the schema cannot express.

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 read-only, five-parameter tool with no output schema, the description covers input sourcing, bounds, per-chain availability, and the meaning of each stock value, which is enough to call it correctly and interpret results. What's missing is the shape of the returned per-store list (fields like pieces for dm are mentioned only in passing).

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 coverage is 0%, so the description carries the full burden and largely does: product_id is sourced from a hit's id in the same chain, near is an Austrian postcode/town with a RABATT_NEAR fallback, store_id comes from find_stores and overrides nearest-store lookup, and limit is bounded at 10 with default 5. Only 'chain' is left to the schema enum, hence 4.

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?

States a specific verb+resource ('whether stores near a place (or one store) have a product') and enumerates the exact return vocabulary ('in stock', 'low', 'out of stock', 'no data'), plus per-chain variations. An agent can distinguish it from get_product or find_stores without opening the schema.

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?

Gives concrete usage context: pass a hit's id from the same chain, use 'near' for postcode/town or 'store_id' from find_stores for a single store. Also flags per-chain data limits (SPAR only reports 'listed', HOFER keeps stock for promotion items only), which tells the agent when results will be sparse. No explicit exclusion vs get_product, hence 4 rather than 5.

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