Skip to main content
Glama

list_variants_for_product

Retrieve all variants for a product: SKUs, prices in VND, and inventory quantities. Paginate through results using a since_id cursor for complete data.

Instructions

List all variants for a product (SKUs, prices in VND, inventory quantities). Returns paginated results via since_id cursor.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results per page (default 50, max 250).
since_idNoReturn variants with ID greater than this value (cursor pagination).
product_idYesProduct ID whose variants to list. Required.
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses pagination via since_id cursor and hints at the response contents (SKUs, prices, inventory quantities), adding useful behavioral context beyond the 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?

Two sentences with no fluff. The first sentence states the core purpose, and the second adds a key behavioral detail. The description is front-loaded and every word earns its place.

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 simple list tool with 3 parameters and full schema coverage, the description provides enough context: what it returns and pagination behavior. It lacks explicit mention of response structure, but no output schema exists, so description is adequate.

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 baseline is 3. The description does not add additional parameter semantics; all parameters are already described in the schema. It references since_id but only in the context of pagination, not adding new meaning.

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 uses a specific verb ('List') and resource ('variants for a product'), clearly stating what it returns (SKUs, prices in VND, inventory quantities). This distinguishes it from sibling tools like get_variant or list_products.

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?

The context is clear: use when you need to list all variants for a given product. It does not explicitly name alternatives or state when not to use it, but the scope is well understood from the description.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nguyennguyenit/Sapo-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server