Skip to main content
Glama
A1-x-Tech

Yango Tech Retail MCP

Update stock quantities

update_stocks

Update or initialize stock quantities for a single store. Specify store ID and stock lines (max 1000) to write new quantities.

Instructions

Writes stock quantities for one store. mode=modify (default) POSTs /b2b/v1/stocks/update with update_mode "modify" (at most 1000 items per request); mode=initialize POSTs /b2b/v1/stocks/initialize for the first-time stock load of a store. The response body is not documented upstream (2xx = success) and is returned verbatim. Verify the result with query_stocks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNomodify (default) — regular stock update; initialize — first-time stock load of a store.
stocksYesStock lines to write (at most 1000 per request).
store_idYesWMS store id from get_stores.
Behavior4/5

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

Annotations already flag write/non-idempotent behavior, and the description adds concrete details not present in annotations: exact POST endpoints, per-request item cap of 1000, undocumented response body returned verbatim with 2xx meaning success, and a recommendation to verify via query_stocks. No contradictions with 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?

The description is three sentences with the main action front-loaded. Every sentence adds essential operational detail—mode behavior, endpoints, limits, response handling, and verification—without any filler or redundancy.

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 write tool with no output schema, the description covers the essential operational facets: two modes, per-store scope, response passthrough, success condition, and follow-up verification. It could also address error handling or auth, but given annotations and sibling context, it is sufficiently complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds value by explaining the default for 'mode' and mapping each mode to its endpoint and intended use case. It also reinforces the 1000-item limit already in the schema, providing marginal additional meaning.

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 'Writes stock quantities for one store,' a specific verb+resource that clearly differentiates it from read tools like query_stocks. It further distinguishes the two modes (modify vs initialize) with distinct endpoints, making the tool's purpose unambiguous.

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

Usage Guidelines4/5

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

The description provides explicit mode selection guidance: modify (default) for regular updates and initialize for first-time stock load. It also directs the agent to verify results with query_stocks, indicating the appropriate companion tool. However, it does not explicitly state when not to use this tool versus other alternatives.

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/A1-x-Tech/mcp-yango-retail'

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