Skip to main content
Glama

get_product_variants

Fetch all variants for a product by its ID to manage options and pricing.

Instructions

Get all variants for a given product ID. Args: product_id: The ID of the product to fetch variants for

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes
Behavior2/5

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

No annotations provided, so the description carries the full burden. It only states that variants are fetched, without disclosing whether it is read-only, requires auth, returns paginated results, or defines what 'variants' entails. Minimal behavioral insight.

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?

Exceptionally concise with a single sentence stating the purpose and a brief args section. No wasted words, front-loaded with the core verb and resource.

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

Completeness2/5

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

Given the simplicity of the tool (single parameter, no output schema), the description is still incomplete: it does not describe the return format (e.g., list of variant objects) or any potential limits/pagination. An agent would lack critical output context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, and the description merely repeats the parameter name and a tautological explanation ('The ID of the product to fetch variants for'). It adds no semantic detail beyond what the schema title already implies.

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 clearly states the verb 'Get' and the resource 'variants for a given product ID', distinguishing it from sibling tools like get_product (which gets the product itself) and list_products (which lists all products). However, it does not mention any scope or filtering capabilities beyond the product ID.

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?

No guidance on when to use this tool versus alternatives like 'get_product' or 'list_products'. The description does not provide when-not or alternative contexts, leaving the agent to infer usage from context signals.

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/atharvagupta2003/mcp-lemonsqueezy'

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