Skip to main content
Glama

get_product_availability

Read-onlyIdempotent

Check availability for one product variant across Slovakia stores, optionally filter by city, and view stock status, pickup text, and checked_at freshness; quantities and branch prices not included.

Instructions

Get availability in Slovakia stores for one product variant. Optional city filters store name/address locally, ignoring accents. Stock status and pickup text are separate. No exact quantities or branch prices. Check checked_at for freshness.

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

Input Schema

NameRequiredDescriptionDefault
cityNo
product_idYes

Output Schema

NameRequiredDescriptionDefault
marketYes
sourceYes
storesYes
checked_atYes
product_idYes
city_filterYes
total_storesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "checked_at": {
      +      "format": "date-time",
      +      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
      +      "type": "string"
      +    },
      +    "city_filter": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "market": {
      +      "enum": [
      +        "SK",
      +        "CZ",
      +        "PL"
      +      ],
      +      "type": "string"
      +    },
      +    "product_id": {
      +      "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,99}$",
      +      "type": "string"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stores": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "address": {
      +            "type": "string"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "opening_hours_html": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "pickup_text": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "quantity": {
      +            "type": "null"
      +          },
      +          "status": {
      +            "type": "string"
      +          },
      +          "store_id": {
      +            "type": "string"
      +          },
      +          "url": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "store_id",
      +          "name",
      +          "address",
      +          "url",
      +          "opening_hours_html",
      +          "status",
      +          "pickup_text",
      +          "quantity"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "total_stores": {
      +      "maximum": 9007199254740991,
      +      "minimum": 0,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "source",
      +    "market",
      +    "checked_at",
      +    "product_id",
      +    "city_filter",
      +    "total_stores",
      +    "stores"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description's job is to add operational context — and it does: results omit exact quantities and branch prices, stock status and pickup text are mutually separate fields, and freshness must be read from checked_at. These are non-obvious data-shape caveats an agent could not infer from the schema.

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?

Five short sentences, all front-loaded with scope first and caveats after; no filler. Some sentences are telegraphic ('Stock status and pickup text are separate') but each still conveys distinct information.

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?

An output schema exists, so return values need not be described, and the definition still covers the important limitations plus the freshness pointer. The only gap is the ambiguous product_id semantics relative to a sibling like get_product.

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 0%, so the description must carry parameter meaning. It does well for 'city' (matches store name/address locally, accent-insensitive), which is genuinely useful behavior, but 'product_id' is only obliquely covered by 'one product variant' with no note that it must be a variant identifier rather than a parent product ID.

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 ('get availability') with explicit scope: Slovakia stores, one product variant. The scope constraint alone distinguishes it from a general product-detail or delivery-options tool, though it never names which sibling to use instead.

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?

Usage is implied by the scope ('availability in Slovakia stores') and by the stated data exclusions (no quantities, no branch prices), which steer an agent away when those are needed. However, there is no explicit when-to-use / when-not-to-use statement or named alternative such as get_delivery_options or get_product.

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