Skip to main content
Glama
A1-x-Tech

Yandex Merchants MCP

Установить скидку на товар

set_offer_discount
Idempotent

Update an offer's discount by setting the new price and the original price to show as struck through. Automatically validates that the discount is between 5% and 95% to prevent API rejection.

Instructions

Устанавливает скидку: price — цена со скидкой, discount_base — старая цена, которая покажется зачёркнутой (тот же POST /offer-prices/updates, но discount_base обязателен). Скидка должна быть не меньше 5% и не больше 95% — проверяется до запроса, иначе API вернёт 400 Bad Request. Валюта всегда RUR. Ответ API: { status: "OK" } либо { status: "ERROR", errors: [...] }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
priceYesЦена в рублях (валюта всегда RUR), больше 0.
feed_idYesИдентификатор фида (feedId из list_feeds).
offer_idYesИдентификатор предложения из фида (id в YML, до 50 символов).
discount_baseYesСтарая цена (зачёркнутая), обязательна и строго больше price.
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true), the description discloses critical behavioral details: client-side validation of the discount range (5–95%), fixed currency (RUR), and the exact API response shape. This adds significant context beyond 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 compact (3 sentences) and front-loaded with the primary action, followed by endpoint context, validation, currency, and response format. Every sentence contributes unique information with no redundancy.

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?

Given the absence of an output schema and the presence of four required parameters, the description is remarkably complete: it covers validation, currency, response format, and the distinction from sibling tools. An agent can confidently invoke this tool correctly based on the description alone.

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?

The input schema already provides comprehensive per-parameter descriptions (100% coverage). The description adds the relationship between price and discount_base (the 5–95% rule) and reinforces the required nature of discount_base, providing extra semantic value beyond 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 clearly states the tool's function ('Устанавливает скидку') and precisely defines the roles of price and discount_base. It further distinguishes itself from sibling tools by noting it uses the same POST endpoint but requires discount_base, making it the dedicated discount-setting tool.

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 implies usage for setting discounts with a mandatory discount_base, contrasting with sibling tools like set_offer_price and update_offer_prices. It also provides validation rules (5–95%) and currency constraints, giving clear context for when the tool is appropriate, though it does not explicitly name alternative tools for non-discount price updates.

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-yandex-merchants'

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