Skip to main content
Glama
askads

Yandex Direct MCP

Создать набор быстрых ссылок

create_sitelinks_set

Creates a set of 1–8 sitelinks with title, description, and URL for Yandex Direct ads; sets are immutable, so changes require creating a new set.

Instructions

Создаёт набор быстрых ссылок (1–8 штук). Лимиты API: текст ссылки до 30 символов, описание до 60, URL до 1024 (с протоколом и доменом); длиннее API отвечает «Превышена допустимая длина», поэтому сокращать заранее. Наборы неизменяемы — чтобы поменять ссылки, нужно создать новый набор и переназначить его объявлению.

Input Schema

NameRequiredDescriptionDefault
sitelinksYesОт 1 до 8 быстрых ссылок.
client_loginNoЛогин клиента агентства или кабинета в управлении (из list_clients). Если не указан — YANDEX_DIRECT_LOGIN из конфигурации, а без него собственный аккаунт токена.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.11.0
    • changedInput schema / properties / sitelinks / items / properties / description / description
      Previous value: -"Описание быстрой ссылки (для некоторых типов объявлений)."New value: +"Описание быстрой ссылки, до 60 символов (показывается в расширенном формате объявления)."
    • addedInput schema / properties / sitelinks / items / properties / description / maxLength
      Added value: +60
    • changedInput schema / properties / sitelinks / items / properties / href / description
      Previous value: -"URL быстрой ссылки."New value: +"URL быстрой ссылки с протоколом и доменом, до 1024 символов."
    • addedInput schema / properties / sitelinks / items / properties / href / maxLength
      Added value: +1024
    • changedInput schema / properties / sitelinks / items / properties / title / description
      Previous value: -"Текст быстрой ссылки."New value: +"Текст быстрой ссылки, до 30 символов."
    • addedInput schema / properties / sitelinks / items / properties / title / maxLength
      Added value: +30
  2. Changed1 schema field changedv1.6.0
    • addedInput schema / properties / client_login
      Added value: +{
      +  "description": "Логин клиента агентства или кабинета в управлении (из list_clients). Если не указан — YANDEX_DIRECT_LOGIN из конфигурации, а без него собственный аккаунт токена.",
      +  "pattern": "^[A-Za-z0-9][A-Za-z0-9._@-]{0,99}$",
      +  "type": "string"
      +}
  3. Changed4 schema fields changedv1.5.1
    • changedInput schema / properties / sitelinks / description
      Previous value: -"1–8 sitelinks."New value: +"От 1 до 8 быстрых ссылок."
    • changedInput schema / properties / sitelinks / items / properties / description / description
      Previous value: -"Sitelink description (for some ad types)."New value: +"Описание быстрой ссылки (для некоторых типов объявлений)."
    • changedInput schema / properties / sitelinks / items / properties / href / description
      Previous value: -"Sitelink URL."New value: +"URL быстрой ссылки."
    • changedInput schema / properties / sitelinks / items / properties / title / description
      Previous value: -"Sitelink title."New value: +"Текст быстрой ссылки."
  4. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) by disclosing the actual API limits (30/60/1024 chars), the exact error returned when exceeded ('Превышена допустимая длина'), the advice to truncate beforehand, and the immutability of created sets. That is precisely the behavioral context an agent needs before a write call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the operation, then constraints, then the immutability consequence. Dense and purposeful, with only minor redundancy against the schema's maxLength fields.

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 mutation tool with no output schema, annotations covering safety, and fully documented parameters, the description is nearly complete — limits, error behavior, and immutability are all covered. The gap is the return value: since the new set must be 'переназначен объявлению', the agent needs to know an identifier comes back, which is neither in the description nor in an output schema.

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% and the schema already documents each field's maxLength, so the baseline is 3. The description adds value by explaining the consequence of exceeding those lengths (API error) and by reinforcing the 1–8 item range, though it repeats the character limits already in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope: 'Создаёт набор быстрых ссылок (1–8 штук)'. It is clearly distinguishable from the sibling read/delete tools (get_sitelinks, delete_sitelinks) by the create verb, but it never names those siblings explicitly.

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?

Gives clear usage context for the key decision: sets are immutable, so changing links requires creating a new set and reassigning it to an ad — which effectively routes the agent here for updates. It does not explicitly name alternatives (delete_sitelinks, get_sitelinks) or state when not to use it.

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