Skip to main content
Glama
askads

VK Ads MCP

Статистика

get_statistics
Read-onlyIdempotent

Fetch VK Ads campaign, ad group, or banner metrics (spent, clicks, shows) with summary or day/week/month grouping and server-side sorting.

Instructions

Возвращает статистику по кампаниям (ad_plans), группам объявлений (ad_groups) или объявлениям (banners) из сервиса статистики VK Рекламы v3. По умолчанию группировка summary — одна сводная строка на объект за весь период; day/week/month нужны ТОЛЬКО для динамики по дням и вопросов про тренд (каждая добавляет по строке на объект за период). Ранжирование на стороне сервера — через sortBy (например, base.spent) и order; в ответе есть также total — сводка по ВСЕМ объектам за период (для вопросов «сколько всего» суммировать строки не нужно). Метрики лежат в base (shows, clicks, spent, ...); spent — в валюте аккаунта.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNoОграничить отчёт этими id объектов (выбранного entity).
limitNoСколько объектов на страницу (не больше 250).
orderNoНаправление сортировки для sortBy. По умолчанию desc.
dateToNoДата окончания, YYYY-MM-DD (обязательна для day/week/month).
entityNoТип объектов для отчёта. По умолчанию banners.
offsetNoСмещение постраничной выдачи (сколько объектов пропустить).
periodNoГруппировка: summary (весь период, по умолчанию) либо day/week/month для динамики.
sortByNoПоле сортировки на стороне сервера, например base.spent / base.clicks / base.shows (топ-N по метрике).
metricsNoГруппы метрик в отчёте, например base, events, video. По умолчанию — набор API.
dateFromNoДата начала, YYYY-MM-DD (обязательна для day/week/month).
autoPaginateNoЗабрать все страницы, идя по offset/count.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv1.5.0
    • changedInput schema / properties / autoPaginate / description
      Previous value: -"Fetch all pages by following offset/count."New value: +"Забрать все страницы, идя по offset/count."
    • changedInput schema / properties / dateFrom / description
      Previous value: -"Start date YYYY-MM-DD (required for day/week/month)."New value: +"Дата начала, YYYY-MM-DD (обязательна для day/week/month)."
    • changedInput schema / properties / dateTo / description
      Previous value: -"End date YYYY-MM-DD (required for day/week/month)."New value: +"Дата окончания, YYYY-MM-DD (обязательна для day/week/month)."
    • changedInput schema / properties / entity / description
      Previous value: -"Object type to report on. Default banners."New value: +"Тип объектов для отчёта. По умолчанию banners."
    • changedInput schema / properties / ids / description
      Previous value: -"Limit the report to these object ids (of the chosen entity)."New value: +"Ограничить отчёт этими id объектов (выбранного entity)."
    • changedInput schema / properties / limit / description
      Previous value: -"Max objects per page (<=250)."New value: +"Сколько объектов на страницу (не больше 250)."
    • changedInput schema / properties / metrics / description
      Previous value: -"Metric groups to include, e.g. base, events, video. Defaults to the API default."New value: +"Группы метрик в отчёте, например base, events, video. По умолчанию — набор API."
    • changedInput schema / properties / offset / description
      Previous value: -"Pagination offset (objects to skip)."New value: +"Смещение постраничной выдачи (сколько объектов пропустить)."
    • changedInput schema / properties / order / description
      Previous value: -"Sort direction for sortBy. Default desc."New value: +"Направление сортировки для sortBy. По умолчанию desc."
    • changedInput schema / properties / period / description
      Previous value: -"Grouping: summary (whole range, default), or day/week/month for trends."New value: +"Группировка: summary (весь период, по умолчанию) либо day/week/month для динамики."
    • changedInput schema / properties / sortBy / description
      Previous value: -"Server-side sort field, e.g. base.spent / base.clicks / base.shows (top-N by metric)."New value: +"Поле сортировки на стороне сервера, например base.spent / base.clicks / base.shows (топ-N по метрике)."
  2. Changed3 schema fields changedv1.1.4
    • removedInput schema / properties / dateTo / $ref
      Removed value: -"#/properties/dateFrom"
    • addedInput schema / properties / dateTo / pattern
      Added value: +"^\\d{4}-\\d{2}-\\d{2}$"
    • addedInput schema / properties / dateTo / type
      Added value: +"string"
  3. First observedv1.1.3

TDQS

A4.6/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, covering the safety profile. The description adds behavioral context: row-count semantics per grouping period, presence of a 'total' summary, metric group locations (base), and currency note for spent. However, it omits pagination behavior (offset/limit/autoPaginate) which remains only in schema, leaving a minor gap.

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?

The description is compact yet information-dense, with no filler. It front-loads the core purpose, then layers grouping, sorting, total, and metrics in logical sequence. Every sentence contributes actionable guidance, achieving high efficiency in three sentences.

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?

Given the tool's complexity (11 parameters, no output schema), the description covers the most critical pitfalls: grouping semantics, total field, server-side sorting, and metric locations. It does not explicitly mention that dateFrom/dateTo are required for day/week/month (though schema does), nor pagination mechanics. Still, for an agent to call correctly, the description provides sufficient orientation, meriting a 4 rather than 5.

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 parameters are already documented. The description adds semantic depth beyond schema: it explains the meaning of 'summary' vs period modes, gives a concrete sortBy example ('base.spent'), and clarifies that metrics groups like 'base' contain shows/clicks/spent. This extends the schema's basic field descriptions.

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 states a specific verb ('Возвращает статистику') and resource ('по кампаниям (ad_plans), группам объявлений (ad_groups) или объявлениям (banners)'), naming all three entity types. It clearly distinguishes this stats tool from sibling listing tools like list_ad_plans by focusing on statistical metrics rather than entity enumeration.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance for grouping modes: 'По умолчанию группировка summary — одна сводная строка на объект за весь период; day/week/month нужны ТОЛЬКО для динамики по дням и вопросов про тренд'. It also clarifies that the total field covers all objects so manual summation is unnecessary, and explains server-side ranking via sortBy/order.

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