Skip to main content
Glama

Seller update stock

seller_update_stock

Update a listing's stock count. Pass stock for an absolute value or delta for a relative change. Resulting stock must remain >= reserved.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deltaNoSigned adjustment applied to current stock (e.g. -2). Result cannot go below reserved stock.
stockNoAbsolute new stock level in units. Provide either stock or delta, not both.
product_idYesUUID of the listing whose stock to change.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only mark it as non-read-only; the description adds meaningful behavior: stock is either set absolutely or adjusted relatively, and the resulting stock must remain >= reserved. This is the key invariant the agent needs, though error behavior is not described.

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 with no filler. The primary action is first, the parameter-selection guidance is second, and the invariant is stated last. Every sentence earns its place.

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

Completeness4/5

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

For a 3-parameter, no-output-schema mutation, the description plus 100% schema coverage cover required inputs and the main constraint. It is slightly incomplete because it does not indicate what a successful response contains or how a violation of the reserved-stock invariant is reported.

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%, so the schema already defines product_id, stock as absolute, and delta as a signed adjustment. The description repeats 'absolute value'/'relative change' and the reserved constraint, adding little beyond what the schema provides. Baseline 3 is appropriate.

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 and resource: 'Update a listing's stock count'. It also states the two update modes (absolute stock vs delta), which distinguishes it from the broad seller_update_listing sibling. The purpose is unmistakable.

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?

It clearly explains when to pass stock vs delta, and the reserved-stock constraint gives context for valid calls. However, it never mentions seller_update_listing or states when to prefer this tool over the general listing-update alternative, so tool-selection guidance is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.