Skip to main content
Glama

check_availability

Read-only

Check stock and shipping status for 1-20 parts before creating a cart. Returns available, partial, backorder, or unavailable per item so buyers know what ships now.

Instructions

Check whether specific quantities can ship now. Send one to twenty {id, quantity} items. For each item the answer is available (all on the shelf), partial (fewer on the shelf than requested), backorder (ships after restock_days), unavailable (out of stock, no date) or unknown_part. A part sent on several lines is added up first, as create_cart does. Call this before create_cart and tell the buyer about any item that is not available. Changes nothing.

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

Input Schema

NameRequiredDescriptionDefault
itemsYesOne to twenty parts with quantities.

Output Schema

NameRequiredDescriptionDefault
itemsYesOne entry per requested line, in request order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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=true and openWorldHint=false, and the closing "Changes nothing" reinforces the non-mutating profile. Beyond that, the description discloses genuinely behavioral detail the annotations cannot: the five possible outcome states and what each means, and the rule that duplicate part lines are summed before evaluation. It does not cover failure modes such as what happens for unknown ids beyond naming the unknown_part state.

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?

Front-loaded with the core question, then constraints, then the outcome vocabulary, then the call ordering — a sensible priority order. Every sentence carries information; the parenthetical glosses for each state are compressed rather than wasteful.

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?

An output schema exists, so return values need not be described in prose, yet the description still defines the outcome vocabulary an agent needs to act on the response. For a single-parameter, read-only check with known siblings, nothing material is missing.

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 coverage is 100%, so the schema already documents id, quantity bounds (1-99, default 1) and the 1-20 item array. The description adds little beyond restating those bounds, though the aggregation rule for a part appearing on multiple lines is semantics the schema does not express. Baseline 3 is appropriate.

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?

The description opens with a specific verb and scope: checking whether given quantities can ship now, for {id, quantity} line items. It is clearly a pre-purchase stock check, distinct from create_cart (mutation), search_products (discovery) and get_product (detail), and an agent can tell them apart without reading any 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?

It gives an explicit call sequence and downstream action: "Call this before create_cart and tell the buyer about any item that is not available." That is a clear when-to-use with a named sibling. It stops short of stating when not to call (e.g. for pricing or non-shippable items), so it is one step below fully exhaustive guidance.

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