Skip to main content
Glama

RoboTrunk

Watch a sold-out listing for restock

watch_back_in_stock

Starts a poll-only watch on one listing the store itself currently shows as sold out, and returns a bearer token to poll or stop it. Refused not_sold_out on any listing that is not shown as sold out right now (unknown or not-published stock counts as available, never sold out), and listing_not_found for a store, product or variant RoboTrunk does not hold. Nothing is emailed or called back; poll get_back_in_stock_watch to learn when it flips. Use when a shopper wants to know when a sold-out listing comes back in stock. Keep the watch_token; stop with stop_back_in_stock_watch. Error recovery: invalid_request names the field to fix; listing_not_found means call search_catalog; not_sold_out means no watch is needed; rate_limited means wait a minute; watch_failed (or any other unexpected error): retry once, then call submit_feedback. Next: get_back_in_stock_watch to poll for the restock. Full guide: get_tool_guide or /agent/tools.json#watch_back_in_stock Example call: {"merchant":"anbbaby-com","product_id":"gid://shopify/Product/1234567890"}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
merchantYesThe store slug from the earlier search_catalog result.
product_idYesThe product_id from search_catalog or get_product, or its bare numeric Shopify id. Example: "gid://shopify/Product/1234567890" or "1234567890", never a page link.
variant_idNoOne sold-out variant to watch, or null/omitted to watch the whole product, which alerts as soon as any variant is available again.
shopping_session_idNoOptional server-issued shopping session correlation ID. It is not purchase authority.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover only safety hints (readOnly false, non-idempotent, non-destructive), so the description must and does carry the behavioral burden: poll-only, nothing emailed or called back, bearer token returned, refusal semantics for not-sold-out/unknown stock, and rate-limit/retry behavior. This is well beyond what annotations provide.

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?

Content is front-loaded with purpose, then conditions, then routing, then error recovery, so an agent can stop reading early. It is dense and longer than typical, but nearly every clause (refusal codes, keep-the-token, next step) is actionable rather than filler.

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?

No output schema exists, so the description must describe the return value, and it does ('returns a bearer token to poll or stop it'). Combined with the refusal conditions, token retention guidance, and next-step routing, an agent has everything needed to invoke and follow up correctly.

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 merchant, product_id, variant_id, and shopping_session_id are already documented. The description adds only a bare example call and no additional parameter-level meaning, so the baseline of 3 is correct.

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?

States a specific verb (starts a watch) on a specific resource (one sold-out listing) and names the token it returns. It is easily distinguished from siblings like get_back_in_stock_watch (polling) and stop_back_in_stock_watch (stopping), which the description explicitly references.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use ('Use when a shopper wants to know when a sold-out listing comes back in stock'), explicit preconditions (store itself shows sold out right now), and routes to the alternative states via get_back_in_stock_watch and stop_back_in_stock_watch. Error recovery even maps each failure to its next action.

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.

Resources