Skip to main content
Glama
tzangms

shopline-mcp

by tzangms

get_product_variants

Retrieve all SKU variants for a product, including size×color inventory matrix and image URLs. Use when you have the product ID and need the full variant breakdown.

Instructions

取得特定商品的所有 SKU 變體明細,含尺寸×顏色的庫存矩陣與商品圖 URL。

使用時機:已經知道 product_id,且需要完整的變體矩陣(每個顏色×尺寸的庫存)。 只有 SKU 或商品名稱時請先用 get_product_by_sku / get_product_list 取得 id。

【呼叫的 Shopline API】

  • GET /v1/products/{product_id}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYes商品 ID(由 get_product_list / get_product_by_sku 回傳的 id 欄位取得)
Behavior4/5

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

With no annotations provided, the description carries the transparency burden. It discloses the output contents (inventory matrix and image URL) and even mentions the underlying Shopline API endpoint. However, it does not address error cases (e.g., invalid product_id) or response structure in detail, though for a read-only query this is a minor gap.

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?

The description is concise and well-structured: first sentence states the purpose, second provides usage guidance, third offers an alternative, and the final block gives the API endpoint. Every sentence is essential, and the key information is front-loaded.

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?

For a simple read tool with one parameter and no output schema, the description is complete: it specifies the use case, the required input, the return content, and even the underlying API call. It fully compensates for the lack of annotations and output schema given the tool's low complexity.

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% with the product_id parameter already described as coming from get_product_list / get_product_by_sku. The description reinforces this prerequisite, but adds no new semantic detail beyond the schema, so it stays at the baseline.

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 opens with a specific verb '取得' (get) and the resource '特定商品的所有 SKU 變體明細' (all SKU variant details for a specific product), further detailing the size×color inventory matrix and image URL. This clearly distinguishes it from sibling tools like get_product_list and get_product_by_sku by emphasizing the variant matrix scope.

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?

The description explicitly states when to use the tool: when the product_id is already known and a complete variant matrix is needed. It also explicitly directs users to get_product_by_sku / get_product_list first if only SKU or product name is known, providing clear alternatives and exclusions.

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/tzangms/shoplinemcp'

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