Skip to main content
Glama
askads

Yandex Direct MCP

Список кампаний

list_campaigns
Read-onlyIdempotent

Retrieve Yandex Direct campaigns with optional filters by ID, type, state, and status, plus pagination and selected fields for reporting or management.

Instructions

Возвращает список кампаний с необязательными фильтрами по id, типу, состоянию и статусу. Денежные поля (DailyBudget.Amount и Funds общего счёта — Sum, Balance, SumAvailableForTransfer, Spend) отдаются в валюте аккаунта.

Input Schema

NameRequiredDescriptionDefault
idsNoФильтр по id кампаний.
limitNoМаксимум объектов на страницу.
typesNoФильтр по типам кампаний.
offsetNoСмещение постраничной выдачи (сколько объектов пропустить).
statesNoФильтр по состояниям кампаний.
statusesNoФильтр по статусам модерации.
fieldNamesNoКакие поля кампании вернуть. Стратегии и настройки конкретного типа кампании здесь не запрашиваются.
autoPaginateNoЗабрать все страницы, идя по LimitedBy (limit тогда не ограничивает общий объём).
client_loginNoЛогин клиента агентства или кабинета в управлении (из list_clients). Если не указан — YANDEX_DIRECT_LOGIN из конфигурации, а без него собственный аккаунт токена.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.11.0
    • changedInput schema / properties / fieldNames / description
      Previous value: -"Какие поля кампании вернуть."New value: +"Какие поля кампании вернуть. Стратегии и настройки конкретного типа кампании здесь не запрашиваются."
    • addedInput schema / properties / fieldNames / items / enum
      Added value: +[
      +  "BlockedIps",
      +  "ExcludedSites",
      +  "Currency",
      +  "DailyBudget",
      +  "Notification",
      +  "EndDate",
      +  "Funds",
      +  "ClientInfo",
      +  "Id",
      +  "Name",
      +  "NegativeKeywords",
      +  "RepresentedBy",
      +  "StartDate",
      +  "CreateTime",
      +  "Statistics",
      +  "State",
      +  "Status",
      +  "StatusPayment",
      +  "StatusClarification",
      +  "SourceId",
      +  "TimeTargeting",
      +  "TimeZone",
      +  "Type"
      +]
  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. Changed8 schema fields changedv1.5.1
    • changedInput schema / properties / autoPaginate / description
      Previous value: -"Fetch all pages by following LimitedBy (ignores limit as a total cap)."New value: +"Забрать все страницы, идя по LimitedBy (limit тогда не ограничивает общий объём)."
    • changedInput schema / properties / fieldNames / description
      Previous value: -"Campaign fields to return."New value: +"Какие поля кампании вернуть."
    • changedInput schema / properties / ids / description
      Previous value: -"Filter by campaign ids."New value: +"Фильтр по id кампаний."
    • changedInput schema / properties / limit / description
      Previous value: -"Max objects per page."New value: +"Максимум объектов на страницу."
    • changedInput schema / properties / offset / description
      Previous value: -"Pagination offset (objects to skip)."New value: +"Смещение постраничной выдачи (сколько объектов пропустить)."
    • changedInput schema / properties / states / description
      Previous value: -"Filter by campaign states."New value: +"Фильтр по состояниям кампаний."
    • changedInput schema / properties / statuses / description
      Previous value: -"Filter by moderation statuses."New value: +"Фильтр по статусам модерации."
    • changedInput schema / properties / types / description
      Previous value: -"Filter by campaign types."New value: +"Фильтр по типам кампаний."
  4. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / types / items / enum
      Previous value: -[
      -  "TEXT_CAMPAIGN",
      -  "MOBILE_APP_CAMPAIGN",
      -  "DYNAMIC_TEXT_CAMPAIGN",
      -  "CPM_BANNER_CAMPAIGN",
      -  "SMART_CAMPAIGN",
      -  "MCBANNER_CAMPAIGN"
      -]New value: +[
      +  "TEXT_CAMPAIGN",
      +  "MOBILE_APP_CAMPAIGN",
      +  "DYNAMIC_TEXT_CAMPAIGN",
      +  "CPM_BANNER_CAMPAIGN",
      +  "SMART_CAMPAIGN",
      +  "MCBANNER_CAMPAIGN",
      +  "UNIFIED_CAMPAIGN"
      +]
  5. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so safety is covered. The description adds a non-obvious behavioral fact beyond them: monetary fields (DailyBudget.Amount, Funds Sum/Balance/SumAvailableForTransfer/Spend) are returned in the account currency, which prevents misreading values. It does not mention pagination shape or volume limits.

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 dense sentences with no filler: capability and filters first, then the currency caveat that materially affects interpretation of results. Nothing is repeated from the schema.

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 nine-parameter read tool with no output schema, the description covers purpose, filters and a key return-value semantic (account currency). The remaining gap is the pagination contract (offset/limit vs autoPaginate walking LimitedBy), which is only documented in the schema, not in the description.

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%, so the schema already documents all nine parameters, including enums and the fieldNames restriction. The description only echoes four filter names and adds no syntax or format detail beyond the schema, so baseline 3 applies.

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?

The description names a specific verb and resource ("Возвращает список кампаний") and enumerates the filter dimensions (id, тип, состояние, статус), so the agent can tell this is a filtered read of campaigns. It does not explicitly distinguish itself from siblings like get_statistics or campaign_action, leaving that inference to the agent.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the word "необязательными" signals that all filters are optional and that omitting them lists everything. There is no explicit statement of when to prefer this tool over list_ad_groups/get_statistics, nor any prerequisite or exclusion guidance.

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