Skip to main content
Glama
nozikov

yandex-mcp

by nozikov

direct_report

Fetch Yandex Direct performance reports for campaigns, ad groups, ads, or search queries, including impressions, clicks, cost, CTR, and average CPC by preset or custom dates.

Instructions

Отчёт по расходу/показам/кликам Директа (Reports API v5) — то, чего нет в direct_campaigns: реальные цифры эффективности по кампаниям, объявлениям, группам или поисковым запросам. Период — либо готовый диапазон Директа (date_range, по умолчанию LAST_30_DAYS: LAST_7_DAYS, THIS_MONTH, ALL_TIME и т.д.), либо явные date1/date2 в формате YYYY-MM-DD (относительные вроде 30daysAgo, как в Метрике, не поддерживаются). Отчёт может готовиться асинхронно — тул сам ждёт и повторяет запрос, суммарно до нескольких минут.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
date1NoYYYY-MM-DD — задаёт CUSTOM_DATE
date2NoYYYY-MM-DD
fieldsNoчерез запятую, по умолчанию CampaignId,CampaignName,Impressions,Clicks,Cost,Ctr,AvgCpc
date_rangeNoготовый диапазон Директа, по умолчанию LAST_30_DAYS
report_typeNoпо умолчанию CAMPAIGN_PERFORMANCE_REPORT; другие: ADGROUP_PERFORMANCE_REPORT, AD_PERFORMANCE_REPORT, SEARCH_QUERY_PERFORMANCE_REPORT
campaign_idsNoфильтр по ID кампаний
client_loginNoлогин клиента для агентских аккаунтов, опционально

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose a critical behavioral trait: the report may be generated asynchronously, with the tool polling and retrying for up to several minutes. It also flags that relative dates (e.g. 30daysAgo) are unsupported. It omits auth/permission requirements and error behavior.

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?

Front-loaded with purpose, then period semantics, then async behavior, in three dense sentences with little waste. The middle sentence is long, but every clause carries needed information.

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 reporting tool with no output schema, it covers purpose, period formats, report types, and async latency well. Missing only auth/quota details and error/return expectations, which are minor given the schema documents all parameters.

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

Parameters4/5

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

Schema coverage is 100% so baseline is 3, but the description adds real meaning: it explains the date_range-vs-date1/date2 choice, the LAST_30_DAYS default, and that relative date strings are rejected. This clarifies parameter interaction beyond the schema's per-field notes.

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 (a Direct spend/impressions/clicks report via Reports API v5) and explicitly distinguishes itself from the sibling direct_campaigns by noting it provides the real performance numbers that tool lacks. An agent can immediately tell what it returns.

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?

Names the sibling it complements (direct_campaigns) and clarifies it delivers effectiveness metrics by campaign/ad/group/search query, giving clear context for selection. It stops short of an explicit 'use this instead of X when Y' rule or stated prerequisites.

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