Skip to main content
Glama

get_stock

Read-only

Retrieve product details and informational stock levels for an exact SKU, so you can check availability and catalog information before preparing an order.

Instructions

Return product details and informational stock for an exact SKU.

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

Input Schema

NameRequiredDescriptionDefault
skuYes

Output Schema

NameRequiredDescriptionDefault
skuYes
nameYes
aliasesYes
availableYes
price_minorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds one piece of real behavioral nuance: the stock figure is 'informational', implying it is not a reservation or a live commitment. It says nothing about lookup failure behavior for an unknown SKU or about the shape of the response.

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?

A single front-loaded sentence with no padding, well matched to a one-parameter read tool. The adjective 'informational' is slightly ambiguous in isolation but is the sentence's only arguable filler.

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 trivial one-param read with annotations covering safety and an output schema covering return values, the description is nearly sufficient. The remaining gap is the absence of any routing signal to get_catalog, which matters given an overlapping sibling.

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 schema alone provides only the name 'sku' and a regex pattern. The description compensates partially by establishing that the value must be an exact SKU match, but it does not explain case sensitivity, whether an unknown SKU errors or returns empty, or how the pattern relates to real SKUs.

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 gives a specific verb ('Return') and resource ('product details and informational stock') scoped to an 'exact SKU', which is concrete enough to act on. It does not distinguish itself from the sibling get_catalog, so an agent cannot tell from the text alone which one to prefer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'exact' implies the SKU must match precisely rather than partially, which is mildly useful context. There is no explicit when-to-use guidance, no statement of when-not-to-use, and no reference to the sibling tools get_catalog or preview_request.

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

Deploy Server

Other Tools