Skip to main content
Glama
Pavelsiba

yandex-direct-mcp-plus

by Pavelsiba

Минус-фразы группы

set_ad_group_negative_keywords
Destructive

Manage negative keywords for a Yandex.Direct ad group: replace the full list, add phrases to existing ones, or remove specific phrases via the required mode.

Instructions

Минус-фразы на уровне группы объявлений. Режим mode обязателен: replace заменяет список целиком (прежние фразы теряются, пустой массив очищает), add дописывает к текущим, remove убирает названные — читать список перед этим не нужно, add и remove делают это сами. Чтобы добавить фразу к существующим, нужен add: replace с одной фразой сотрёт остальные.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesОбязателен. replace — заменить список целиком (пустой массив очищает, прежние фразы теряются), add — дописать к текущим, remove — убрать перечисленные. add и remove сначала читают текущий список, это дополнительный вызов API. Фразы сравниваются так же, как их сравнивает Директ: без учёта регистра, буквы ё и е равны, краевые и повторные пробелы не учитываются, операторы закрепления ! и + игнорируются
ad_group_idYesID группы объявлений
negative_keywordsYesМинус-фразы группы: при mode=replace — полный новый список взамен прежнего, при add — что дописать, при remove — что убрать

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds the concrete consequences: replace discards prior phrases, an empty array clears the list, and add/remove read the current list themselves (an extra API call). This discloses what gets destroyed and the side-effect cost beyond what annotations provide.

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 resource and the mandatory mode, and the most important gotcha (add vs replace) lands last. Some mode detail overlaps with the schema, costing a little density, but there is no filler.

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-param mutation tool with no output schema, the description covers the essential behaviors: mode requirement, destruction semantics, and the read-then-write behavior of add/remove. It omits permissions/authorization context but is otherwise sufficient to call the tool correctly.

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

Parameters3/5

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

Schema description coverage is 100% and the mode field's schema already documents replace/add/remove semantics plus the matching/comparison rules. The description mostly reiterates the mode behavior and only adds the 'no need to read the list first' note, so it does not substantially extend the schema. Baseline 3 is appropriate.

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 and resource ('Минус-фразы на уровне группы объявлений') and pins the scope to ad-group level, which distinguishes it from the campaign-level siblings get_campaign_negative_keywords and set_campaign_negative_keywords. An agent can tell what this does without opening the schema.

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 operational guidance: mode is mandatory, each mode's effect is spelled out, and it warns that to append you must use add rather than replace (with the concrete failure mode). It does not explicitly contrast the tool against the campaign-level sibling, so tool selection is left partly to inference.

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