Skip to main content
Glama
ztemerbekov

A1 Yandex KIT MCP

Create promocode

create_promocode

Create a new promo code with discount value, validity dates, and type. Use uppercase letters and digits for the code, since the API rejects lowercase.

Instructions

Create a new promocode. Required: code, title, discount_value ({value, type: PERCENT|VALUE}), promocode_dates ({start_date, optional end_date}) and type (ORDER|PRODUCTS). Optional: binding_mode, minimum_order_amount, max_usage, max_discount_amount, one_time_use, first_order_only, show_in_pdp. The live API rejects codes containing lowercase letters even though the spec documents no format constraint — use uppercase Latin letters and digits (e.g. WELCOME5). Call get_operation_schema("CreatePromocode") for the exact request shape.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promocodeYesPromocode record matching the CreatePromocodeRequest schema (see get_operation_schema("CreatePromocode")). Required: code, title, discount_value, promocode_dates, type.
Behavior5/5

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

With no annotations, the description carries full responsibility for behavioral disclosure. It reveals a critical non-obvious behavior: 'The live API rejects codes containing lowercase letters even though the spec documents no format constraint'. This goes beyond basic expectations and is genuinely useful for avoiding API errors.

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 four sentences, each earning its place: purpose, required/optional fields, the lowercase warning, and the schema pointer. It is front-loaded with the verb and resource, and contains no redundant information.

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?

Given the complexity of a nested promocode object and the absence of an output schema, the description covers required and optional fields, enum types, a gotcha, and a pointer to the exact request schema. It does not describe return values or error behavior, but for a create tool with an external schema reference, it is reasonably 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?

The schema only describes the single parameter as matching a schema and points to get_operation_schema. The description adds essential semantics by enumerating required fields (code, title, discount_value, promocode_dates, type) and their sub-structure (e.g., discount_value with type PERCENT|VALUE), plus optional fields. This enriches the sparse schema description.

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 'Create a new promocode', clearly stating the verb and resource. It distinguishes itself from siblings like update_promocode and create_discount by explicitly naming the entity type and listing its specific fields.

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 clear context for when to use this tool (creating a new promocode) and includes a practical tip ('Call get_operation_schema("CreatePromocode") for the exact request shape'). It does not explicitly exclude alternatives, but the sibling naming makes the intended use obvious.

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/ztemerbekov/a1-yandex-kit-skills'

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