Skip to main content
Glama

Update stock

update_stock

Update the stock quantity for a product or specific variant on supported marketplaces. Requires explicit seller confirmation before executing.

Instructions

Set the stock quantity for one product or a specific variant.

[ROUTINE] This action changes live shop data and requires the seller's explicit confirmation before it executes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stockYes
platformNoMarketplace to target. Defaults to shopee.
product_idYes
variant_idNo
confirmation_tokenNoEcho back the token from a prior 'confirmation required' response to approve and execute this action. Only needed when the client cannot prompt directly.
Behavior4/5

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

Annotations only indicate non-readOnly and non-destructive. The description adds important behavioral context: it alters live shop data and requires explicit seller confirmation before execution, which goes beyond the annotations.

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, concise and front-loaded. The first sentence states the core functionality, the second adds important routine context. No fluff.

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

Completeness3/5

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

No output schema exists, and the description does not explain what the tool returns or how it behaves (e.g., overwrites existing stock, validation). The confirmation requirement is noted, but overall completeness is moderate.

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 description coverage is only 40%, with meaningful descriptions for only platform and confirmation_token. The description adds minimal parameter details, only hinting that product_id and variant_id differentiate product vs variant. It does not explain stock meaning or other parameters adequately.

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 clearly states the verb 'Set' and the resource 'stock quantity for one product or a specific variant', making the purpose unambiguous and distinct from sibling tools like get_stock or bulk_update_price.

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

Usage Guidelines3/5

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

The description mentions that it changes live data and requires confirmation, but does not provide explicit guidance on when to use this tool versus alternatives (e.g., bulk updates), leaving some ambiguity.

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/RextonWong/sellabot-mcp'

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