Skip to main content
Glama

update_product_stock

Update a product's stock quantity or availability status to maintain accurate inventory levels. Specify the product ID and new stock count, optionally setting the in-stock flag.

Instructions

Update inventory stock level or availability status for a merchant product.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stockYesNew stock quantity available
inStockNoExplicit flag indicating if product is in stock
productIdYesNumeric ID of the product
Behavior2/5

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

With no annotations provided, the description is the only source for behavioral disclosure. It implies mutation ('Update') but does not state side effects, permission requirements, whether stock changes automatically affect availability, or whether updates are partial or full replacements.

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 a single, front-loaded sentence that states the action and object with no wasted words. It is compact and directly to the point.

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?

For a mutation tool with no annotations and no output schema, the description is too sparse. It omits important context such as whether stock and inStock are independent, what happens on validation failure, or any return value. The schema covers parameters, but the behavioral operation is under-specified.

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 description coverage is 100%, so each parameter (stock, inStock, productId) is already documented. The description adds no extra meaning beyond mapping 'stock level' to stock and 'availability status' to inStock, which is already evident from the schema.

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 ('Update') and names the resource ('inventory stock level or availability status') for a merchant product, clearly distinguishing it from sibling tools that search/read or handle other merchant operations like orders/coupons.

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 is given on when to use this tool versus alternatives, nor any exclusions or prerequisites. The reader must infer from the tool name alone that it is for stock updates, as the description merely restates the function without contextual cues.

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/ashishprajapati14/mcp-server'

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