Skip to main content
Glama
BoxLab-Ltd

yandex-metrica-mcp

by BoxLab-Ltd

Run Metrica report

run_report
Read-only

Query Yandex Metrica analytics: retrieve metrics grouped by dimensions for a date range, with optional filters, sorting, and pagination to answer web traffic questions.

Instructions

Query a Yandex Metrica table report (/stat/v1/data): one or more metrics grouped by dimensions over a date range, with optional filter and sort. Read-only. Use get_metadata first to discover valid metric/dimension ids and the account counters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sortNoSort fields; prefix a field with "-" for descending, e.g. ["-ym:s:visits"].
date1NoStart date as YYYY-MM-DD or relative (today, yesterday, NdaysAgo).
date2NoEnd date as YYYY-MM-DD or relative (today, yesterday, NdaysAgo).
limitNoRows per page (max 100000). Defaults to a small value to protect context.
offsetNo1-based index of the first row to return, for pagination. Default 1.
presetNoNamed Metrica report preset (advanced); can substitute for metrics/dimensions.
filtersNoMetrica filter expression in native syntax, e.g. ym:s:regionCityName=='Moscow' AND ym:pv:URL=@'help'.
metricsYesMetric ids, e.g. ["ym:s:visits","ym:s:users"]. Max 20. Discover valid ids with get_metadata. Do not mix ym:s: (visits) and ym:pv: (hits) namespaces in one call.
accuracyNoSampling accuracy: low | medium | high | full, or a 0..1 share. Use "full" for exact data.
timezoneNoTimezone offset for the report as ±hh:mm, e.g. "+03:00". Defaults to the counter timezone.
counterIdNoYandex Metrica counter id. Optional if YANDEX_METRIKA_COUNTER_ID is configured.
dimensionsNoDimension ids to group by, e.g. ["ym:s:lastsignTrafficSource"]. Max 10. Do not mix ym:s: and ym:pv: namespaces.
fullResponseNoIf true, include all dimension sub-fields (id, icons, …). Default false: only the dimension name and metric values are returned, to save context.
includeUndefinedNoInclude rows where the first dimension value is undefined ("Not set"). Default false.
Behavior3/5

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

Annotations already declare readOnlyHint=true, and the description's 'Read-only' adds no new behavioral information. The description mentions the endpoint and high-level behavior but does not disclose insights like default limits, pagination behavior, or response format beyond what the schema already provides. It is consistent with annotations, so no contradiction, but adds limited transparency value.

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 two sentences: the first sentence states the core functionality, the second provides a key prerequisite. It is front-loaded with the most important information, avoids redundancy, and contains no filler. Every word earns its place.

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 (14 parameters) and the absence of an output schema, the description is adequate because the schema thoroughly documents each parameter. It adds essential context with the endpoint and the get_metadata-advice. It could ideally mention what the response looks like, but the schema's fullResponse parameter and the tool's name imply a tabular report, so completeness is high.

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 coverage is 100%, so the baseline is 3. The description only restates what metrics, dimensions, and filters do, which is already in the schema. It does not add extra semantic detail such as the 'protect context' rationale for limits or the namespace mixing restrictions that the schema descriptions already cover.

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 clearly states the tool queries a Yandex Metrica table report (/stat/v1/data), naming key operations (metrics, dimensions, date range, filter, sort). This specific verb+resource distinguishes it from sibling tools like run_timeseries and run_drilldown, which target different report shapes.

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?

The description provides clear context by instructing to use get_metadata first to discover valid ids and counters, and labels the tool as read-only. It does not explicitly exclude alternatives or mention when not to use it, but the guidance about prerequisites and the tool's scope is sufficient for a clear context without exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BoxLab-Ltd/yandex-metrica-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server