Skip to main content
Glama
Pavelsiba

yandex-direct-mcp-plus

by Pavelsiba

Цели стратегии

set_priority_goals
Destructive

Set Yandex.Direct campaign PriorityGoals and their ruble values so autostrategy optimizes bids. Choose add, remove, or replace to manage goals; changing goals restarts strategy learning.

Instructions

Задать цели стратегии кампании (PriorityGoals) и их ценность в рублях — по ним автостратегия оптимизирует ставки, в том числе «максимум конверсий» со служебным GoalId 13. Режим mode обязателен: add добавляет цели или меняет ценность уже заданных, remove убирает названные, replace заменяет список целиком (пустой массив очищает). Текущий список сервер читает сам. Чтобы добавить цель к существующим, нужен add: replace с одной целью сотрёт остальные. ⚠️ Смена целей перезапускает обучение стратегии. Поддерживаются текстово-графические, динамические, смарт и единые перфоманс-кампании; ID целей — из Метрики.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesОбязателен. replace — заменить список целиком (прежние цели теряются), add — добавить цели или поменять ценность уже заданных, remove — убрать перечисленные. Текущий список сервер читает сам, это дополнительный вызов API
goalsYesЦели: при mode=replace — полный новый список взамен прежнего (пустой массив очищает), при add — что добавить или чью ценность поменять, при remove — что убрать
campaign_idYesID кампании: текстово-графической, динамической, смарт или единой перфоманс-кампании

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true. The description adds valuable non-obvious context: that changing goals restarts strategy training (a destructive side effect) and that the server reads the current list itself (an extra API call). It doesn't detail auth requirements or rate limits, but adds meaningful behavioral 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.

Conciseness4/5

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

Front-loads the core purpose, then mode explanation, then warnings. Every sentence carries information, though slightly dense. Uses a warning symbol to draw attention to the training restart.

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 3-parameter mutation tool with no output schema and rich annotations, the description covers purpose, modes, supported campaigns, goal ID source, destructive side effect, and the server reading current list. It doesn't explain what happens to goals not mentioned in add vs remove modes beyond the mode descriptions, but is largely 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 description coverage is 100%, so baseline is 3. The description reinforces mode semantics and states value is in roubles and required for goals, plus mentions GoalId 13 for maximum conversions. The schema handles specific parameter details; description adds the 'why' and edge cases like empty array clearing.

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?

States a specific verb+resource (set strategy PriorityGoals) with their rouble value, and explains the optimization purpose including the auto-strategy context. Distinguishes itself from sibling set_strategy by focusing specifically on campaign goals, not general strategy settings.

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?

Explicitly explains when to use each mode: add to add/change value of existing goals, remove to remove named goals, replace to replace the entire list. Includes a critical warning that replace with one goal erases the rest, guiding correct usage. Names which campaigns are supported.

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