Skip to main content
Glama
BoxLab-Ltd

yandex-metrica-mcp

by BoxLab-Ltd

Drill down a Metrica report

run_drilldown
Read-only

Retrieve one level of a hierarchical Yandex Metrica report, with expandable rows. Pass the parent path to drill into deeper dimension levels.

Instructions

Return one level of a hierarchical (tree) report (/stat/v1/data/drilldown). Each row has an "expandable" flag; pass parentId with the path of dimension keys to expand deeper. Requires dimensions. Read-only.

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.
parentIdNoPath from the tree root as a list of dimension keys. Omit for the top level.
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.
Behavior4/5

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

Annotations already convey readOnlyHint and openWorldHint. The description adds useful behavioral details: each row has an 'expandable' flag, parentId carries the key path, and the tool returns only one level. The statement 'Requires dimensions' is ambiguous and conflicts with the schema's required field (metrics only), which slightly undermines transparency but does not contradict annotations.

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?

The description is three short sentences with the purpose front-loaded. It is concise, but 'Read-only' repeats the annotation and 'Requires dimensions' is marginally misleading, so it does not earn a 5.

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 tool with 15 parameters and no output schema, the description covers the essential navigation logic (parentId path, expandable flags, one-level scope). The response format is partially documented in the fullResponse parameter, so the description plus schema provide adequate context for invocation.

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 each parameter has a detailed description. The description adds minimal semantic value beyond echoing parentId behavior; 'Requires dimensions' is not even schema-accurate. Baseline 3 applies because the schema does the heavy lifting.

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 uses a specific verb ('Return') and resource ('one level of a hierarchical report'), and includes the endpoint path. This clearly differentiates it from sibling report tools like run_report or run_timeseries, which presumably return flat or non-hierarchical data.

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 context is clear: this is for hierarchical tree reports, and the description explicitly explains how to expand deeper using parentId. It also states a prerequisite ('Requires dimensions'). However, it does not explicitly name alternative tools or provide exclusion criteria, stopping short of a 5.

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