Skip to main content
Glama
askads

Yandex Direct MCP

Список ключевых фраз

list_keywords
Read-onlyIdempotent

Retrieves keywords filtered by campaign, ad group, or keyword IDs, with pagination and selectable fields; requires at least one campaign, ad group, or keyword ID for Yandex Direct API.

Instructions

Возвращает список ключевых фраз. Нужно передать campaignIds, adGroupIds или ids — API Яндекс Директа требует хотя бы один из них. Bid и ContextBid отдаются в валюте аккаунта.

Input Schema

NameRequiredDescriptionDefault
idsNoФильтр по id ключевых фраз.
limitNoМаксимум объектов на страницу.
offsetNoСмещение постраничной выдачи (сколько объектов пропустить).
adGroupIdsNoФильтр по id групп объявлений.
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",
      +  "Keyword",
      +  "State",
      +  "Status",
      +  "AdGroupId",
      +  "CampaignId",
      +  "Bid",
      +  "AutotargetingSearchBidIsAuto",
      +  "ContextBid",
      +  "StrategyPriority",
      +  "UserParam1",
      +  "UserParam2",
      +  "Productivity",
      +  "StatisticsSearch",
      +  "StatisticsNetwork",
      +  "ServingStatus",
      +  "AutotargetingCategories",
      +  "AutotargetingBrandOptions",
      +  "AutotargetingMode",
      +  "AutotargetingBrief",
      +  "AutotargetingBriefSuggests"
      +]
  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. Changed7 schema fields changedv1.5.1
    • changedInput schema / properties / adGroupIds / description
      Previous value: -"Filter by ad group ids."New value: +"Фильтр по id групп объявлений."
    • 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: -"Keyword fields to return."New value: +"Какие поля ключевой фразы вернуть."
    • changedInput schema / properties / ids / description
      Previous value: -"Filter by keyword 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.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuinely new behavioral facts: the mandatory-filter requirement enforced by the Yandex Direct API and the fact that Bid/ContextBid come back in account currency, which affects how results must be interpreted.

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?

Three short sentences, each doing distinct work: what it returns, the validity constraint, and a return-value caveat. The most action-critical fact (the mandatory filter) is placed early with 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?

With 8 optional parameters, no output schema and 100% schema coverage, the description supplies the missing pieces an agent needs before calling: a required filter and bid currency. It could still say more about pagination behavior (limit/offset vs autoPaginate), which is the one notable gap for a list tool.

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 every parameter carries its own Russian description, so the baseline is 3. The description adds one valuable cross-parameter rule (at least one filter id array is mandatory) that the schema does not express via 'required', plus currency semantics for bid fields, but nothing on fieldNames, limit/offset or autoPaginate interplay.

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 list_campaigns, list_ad_groups and list_ads among the siblings. It does not, however, explicitly contrast itself with keyword_action or add_keywords, so the read-vs-write distinction is left to the reader.

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?

The description discloses a hard API constraint — at least one of campaignIds, adGroupIds or ids must be supplied — which tells the agent how to make a valid call. It gives no guidance on when to prefer this listing over keyword_action or how to combine filters, so usage context is only implied.

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