Skip to main content
Glama
bssoft2b

marketplace-mcp

by bssoft2b

Yandex Market: get stocks

ym_stocks_get

Get Yandex Market stock levels with available and reserved quantities. Use campaign_id for Market warehouses or omit it for seller warehouses; call both to see all stock.

Instructions

Returns Yandex Market stock levels: available to order and reserved. Read-only. Market stock types (AVAILABLE/FIT/FREEZE/DEFECT/…) are normalized: sellable quantity is kept separate from reserved and defective stock. IMPORTANT: Yandex Market splits stocks across two methods and a single call does NOT cover both. Without campaign_id you get seller warehouses (FBS/DBS/Express). With campaign_id you get Market warehouses (FBY, i.e. the FBO model), which is also the only working path for accounts with warehouse groups. To see all stock, call it twice: without campaign_id and with it (shop ids come from ym_campaigns_list).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoPage size, max 100
cursorNo
seller_skuNoFilter by seller article (offerId)
business_idNoBusiness account id (businessId). If omitted, taken from the connection or resolved via ym_campaigns_list.
campaign_idNoShop id (campaignId). Required for stocks in Market warehouses (FBY/LaaS) and for accounts that use warehouse groups. Discover it via ym_campaigns_list.
connection_idNoYandex Market connection id. Required when more than one is configured.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
metaYes
successYes
marketplaceYes
connection_idYes
Behavior5/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the operation is read-only, explains how stock types are normalized, and prominently warns about the two-method split. This is exactly the kind of non-obvious behavior an agent needs to know.

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 front-loaded with the core purpose, then adds normalization details and a critical call-pattern warning in a logical order. Every sentence earns its place, and the IMPORTANT section prevents the most likely misuse without being bloated.

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

Completeness5/5

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

For a complex stock endpoint with no required parameters, the description covers all key decisions: warehouse type selection, campaign_id necessity for FBY/warehouse groups, and the need to call twice. It also references ym_campaigns_list for id discovery, leaving no critical gap for an agent to call it correctly.

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

Parameters5/5

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

The schema already documents most parameters, but the description adds meaning beyond it: campaign_id determines which warehouse model is queried (FBY/FBO vs FBS/DBS/Express), and business_id resolution is explained via connection or ym_campaigns_list. This materially improves correct parameter selection.

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 a specific verb and resource ('Returns Yandex Market stock levels') and immediately defines the scope ('available to order and reserved'). It also explains the normalization of stock types, which makes it clearly distinguishable from price, order, and non-Yandex stock tools.

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

Usage Guidelines5/5

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

The description gives explicit conditional guidance: without campaign_id the caller gets seller warehouses, with campaign_id it gets Market warehouses, and a single call does not cover both. It also tells the agent to call twice for full stock visibility and points to ym_campaigns_list for shop ids, which is strong routing context.

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/bssoft2b/marketplace-mcp'

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