Skip to main content
Glama
yandex-direct-mcp-plus

yandex-direct-mcp-plus

by Pavelsiba

Управление кампаниями

manage_campaigns
Destructive

Launch, stop, archive, unarchive, or delete Yandex.Direct campaigns; delete is irreversible and blocked for campaigns with accumulated statistics, which must be archived instead.

Instructions

Запустить, остановить, архивировать, разархивировать или удалить кампании. ⚠️ delete необратимо и недоступен кампании с накопленной статистикой — такую только архивировать.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "campaign_ids": "<campaign_ids>",
      "action": "<action>"
    },
    "name": "manage_campaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesДействие: suspend, resume, archive, unarchive или delete (необратимо)
campaign_idsYesID кампаний, над которыми выполняется действие

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.1.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / dry_run
      Removed value: -{
      -  "description": "true — ничего не менять: проверить параметры и вернуть тела запросов, которые ушли бы в Директ. Чтение при этом выполняется.",
      -  "type": "boolean"
      -}
  2. Changed1 schema field changedv1.7.0
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "true — ничего не менять: проверить параметры и вернуть тела запросов, которые ушли бы в Директ. Чтение при этом выполняется.",
      +  "type": "boolean"
      +}
  3. First observedv1.6.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is known; the description adds the non-obvious precondition that delete is rejected when statistics exist and is irreversible, which is genuine behavior beyond the annotations. It omits batch failure semantics — with up to 1000 ids, it never says whether an invalid id aborts the whole call or the remaining ids still process — and says nothing about required permissions or whether suspend/resume are idempotent.

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?

Two sentences, front-loaded with the operation set and followed immediately by the destructive-action warning. No filler, and the riskiest information is placed where an agent will read it first.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, batch-capable mutation tool with no output schema and no annotations covering preconditions, the definition covers the single biggest hazard (irreversible delete) but leaves out how multi-id calls behave on partial failure and what a successful response confirms. Adequate to avoid the worst mistake, but not complete enough for confident bulk invocation.

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%, including the enum values and the 'необратимо' note on delete, so the schema already carries the parameter meaning. The description restates the same action list and the irreversibility warning without adding format, ordering or partial-success detail beyond it, which lands at the baseline for full schema coverage.

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 names a concrete resource (кампании) and enumerates the exact lifecycle verbs it performs (запустить, остановить, архивировать, разархивировать, удалить), which map one-to-one onto the action enum. This cleanly separates it from create_campaign, update_campaign and get_campaign, which handle creation, editing and retrieval rather than state transitions.

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?

It gives an explicit when-not rule for the most dangerous action: delete is unavailable for campaigns with accumulated statistics, and such campaigns must be archived instead — a real decision rule an agent can act on. It does not, however, say anything about when to prefer this tool over update_campaign or how to choose between suspend and archive, so the routing guidance is partial rather than complete.

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