Skip to main content
Glama
woraphol-j

LINE Shopping API MCP

by woraphol-j

Update_product_variant_detail

Modify specific variant details including price, stock, barcode, SKU, and image for a product. Works for products with or without variants.

Instructions

An API for update specific variant detail for both with and without variant product.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
id__pathYesProduct id (Path parameter)
barcodeNoProduct variant barcode.
idNoProduct variant id.
imageUrlNoProduct variant image URL.
onHandNumberNoQuantity in stock (Include ‘Reserved’ and ‘Ready to ship’ status).
priceNoProduct variant price.
skuNoProduct variant sku.
weightNoWeight must be greater than or equal to 0.01 Kg, lower than or equal to 999.99 Kg and allow with two decimal place only.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
brandNoProduct brand
categoryNoCategory Object
codeNoProduct code
descriptionNoProduct description with HTML formatting support
giftGroupsNoGift Groups of product
giftOptionNoProduct Gift Option
hasOnlyDefaultVariantNoIf product doesn't have any variant will be returned 'true'
idNoIdentifying number of product
imageUrlsNoProduct image urls
instantDiscountNoIf product doesn't have instant discount will be returned '0' otherwise returned with number
isDisplayNoIf product is displaying on storefront will be returned 'true'
licensesNoThe list of licenses for your product
nameNoProduct name
variantOptionsNoProduct options such as size or color
variantsNoProduct variants
Behavior2/5

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

With no annotations, the description must disclose behavior. It only says 'update' without clarifying if it's a partial or full update, permissions needed, or whether it affects products with/without variants consistently. No mention of side effects or idempotency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence, but it contains ambiguous phrasing ('both with and without variant product') that reduces clarity. It could be more concise and precise, but it's not overly long.

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 8 parameters, sibling tools, and an output schema (though not shown), the description lacks context about the update behavior, response structure, and how it handles different product types. Incomplete for a mutation tool of this 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 detailed parameter descriptions. The description adds no additional meaning beyond what's in the schema, so baseline 3 is appropriate. It doesn't explain relationships or constraints beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states it updates variant detail, but it's vague: 'specific variant detail' and 'both with and without variant product' is unclear. It doesn't specify which fields can be updated, relying on schema. Compared to sibling tools like Update_product_detail, it distinguishes by targeting variants, but purpose is not sharply defined.

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?

The description provides no guidance on when to use this tool versus alternatives like Update_product_detail, Create_product_variants, or Delete_product_variant. No context on prerequisites, limitations, or scenarios.

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/woraphol-j/lineshopping-api-mcp'

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