Skip to main content
Glama

Get product (offer) inventory by id

get_product_inventory
Read-onlyIdempotent

Retrieve product inventory by product ID to check available stock for a shop offer.

Instructions

Rate limit: 100 requests / 10 seconds per shop. See Rate limiting.

Returns product (offer) inventory by id

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNoExact private shop profile label; not a provider identity or authorization proof.
product_idYesNative productId

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.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, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description usefully adds a concrete rate limit (100 requests / 10 seconds per shop) that an agent cannot get from annotations, but it says nothing about what 'inventory' contains or whether the result can be stale/empty.

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?

The definition is two short sentences with the operational constraint front-loaded and zero filler. It is efficient, though the sparse phrasing borders on under-specification for a lookup tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description should explain what an inventory response looks like (availability, stock state, offer fields), which it does not. Combined with no usage guidance against siblings, the definition is minimally viable but leaves an agent guessing about the result payload.

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% with only two parameters, so the schema already documents 'account' (shop profile label, not a provider identity) and 'product_id' (native productId). The description adds no format, validation, or scoping detail beyond that, so the baseline of 3 applies.

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 pairs a specific verb and resource ('Returns product (offer) inventory by id') and matches the title, so the agent knows this is a by-id inventory read rather than a product-details read. It does not explicitly distinguish itself from the sibling get_product, which likely returns product metadata, leaving that separation to inference.

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?

There is no guidance on when to use this tool versus get_product, list_products, or update_product_state. The only contextual statement is a rate-limit warning, which is a constraint rather than a usage rule.

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