Skip to main content
Glama

Tendrils — live commerce tools for AI agents

check_variant_availability

Verify whether a specific variant option combination (Color, Size, Layout) is currently in stock with live quantities.

Input Schema

NameRequiredDescriptionDefault
product_idYesThe Shopify Product ID to check variants for
selected_optionsNoKey-value dictionary of desired variant options (e.g., { 'Color': 'Gray', 'Mattress': 'Memory Foam', 'Size': 'Queen' })

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It does add one valuable trait, that quantities are 'live', but omits whether this is a read-only call, how it behaves with rate limits, whether it matches partial option sets, and what the response contains despite there being no output schema.

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?

A single front-loaded sentence that states the check, the inputs, and the key behavioral trait ('live quantities') with no wasted wording.

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?

For a two-parameter tool with a nested object and no output schema, the definition leaves real gaps: it never says what happens when selected_options is omitted, whether option matching is exact or partial, or what form the returned stock data takes.

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%, so both parameters are already documented, including the nested selected_options dictionary with its own example. The description's option examples (Color, Size, Layout) add nothing beyond the schema, so baseline 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?

States a specific verb ('Verify') and a specific resource ('variant option combination ... in stock') with the added detail of 'live quantities'. The purpose is unambiguous, though no sibling tool is named to differentiate it from adjacent product-inspection tools like get_product_details.

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 only implied: the stock-check framing suggests it belongs before purchase or checkout flows (e.g., ahead of create_checkout_handoff), but the description never states when to use this versus alternatives or any prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.