Skip to main content
Glama
askads

Yandex Direct MCP

Список групп объявлений

list_ad_groups
Read-onlyIdempotent

Retrieve ad groups filtered by campaign IDs or ad group IDs, with optional pagination and field selection. Provide at least one ID criterion as required by the Yandex Direct API.

Instructions

Возвращает список групп объявлений. Нужно передать campaignIds и/или ids — API Яндекс Директа требует хотя бы один критерий отбора.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.0
    • addedInput schema / properties / fieldNames / items / enum
      Added value: +[
      +  "Id",
      +  "CampaignId",
      +  "Status",
      +  "Name",
      +  "RegionIds",
      +  "RestrictedRegionIds",
      +  "NegativeKeywords",
      +  "NegativeKeywordSharedSetIds",
      +  "Type",
      +  "TrackingParams",
      +  "Subtype",
      +  "ServingStatus"
      +]
  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. Changed6 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 / campaignIds / description
      Previous value: -"Filter by campaign ids."New value: +"Фильтр по id кампаний."
    • changedInput schema / properties / fieldNames / description
      Previous value: -"Ad group fields to return."New value: +"Какие поля группы вернуть."
    • changedInput schema / properties / ids / description
      Previous value: -"Filter by ad group 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: +"Смещение постраничной выдачи (сколько объектов пропустить)."
  4. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description usefully discloses the API-level filter requirement, which is genuine behavioral context. However it says nothing about pagination behavior or how autoPaginate interacts with limit, which materially affects how results are returned.

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

Conciseness3/5

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

Two sentences, front-loaded with purpose before the requirement, and nothing is padded. However the second sentence only covers one parameter pair while six other parameters go unmentioned, so brevity comes partly at the cost of coverage.

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 7-parameter read-only list tool with a fully documented schema and no output schema, the description supplies the one non-obvious calling rule. Details like the default page size or what autoPaginate returns per page are left to the schema, which is acceptable here.

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 every parameter including limit, offset, fieldNames, autoPaginate and client_login is already documented, establishing the baseline of 3. The description only reinforces the ids/campaignIds constraint and adds no semantics for the remaining five parameters.

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 ('Возвращает список групп объявлений'), which cleanly separates it from write siblings like create_ad_group and delete_ad_groups. It does not explicitly name a read alternative such as list_campaigns, so it stops short of the top mark.

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?

Adds a real precondition absent from the schema: at least one of campaignIds or ids must be supplied because the Yandex Direct API demands a selection criterion, with all parameters technically optional this would otherwise be a silent failure. It does not discuss when to prefer listing by campaign vs. by id, or how it relates to sibling list_* tools.

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