Skip to main content
Glama
BoxLab-Ltd

yandex-metrica-mcp

by BoxLab-Ltd

Metrica metrics over time

run_timeseries
Read-only

Retrieve web analytics metrics as time series for trend analysis and charting. Get metric values per day, week, or month, optionally grouped by dimensions, over a specified date range.

Instructions

Return metrics split into a time series (/stat/v1/data/bytime): each metric comes back as an array of values, one per interval (day/week/month/…) over the date range. Use for trends and charts. Optionally group by dimensions (topKeys rows). Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
date1NoStart date as YYYY-MM-DD or relative (today, yesterday, NdaysAgo).
date2NoEnd date as YYYY-MM-DD or relative (today, yesterday, NdaysAgo).
groupNoTime interval granularity. Default day.
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.
topKeysNoMax number of dimension rows to chart (max 30). Default 7.
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.
Behavior4/5

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

With annotations already declaring readOnlyHint=true, the description adds valuable behavioral detail about output shape (array of values per interval) and optional dimension grouping. It does not contradict the annotations, and it discloses the endpoint path.

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 sentences, each with a distinct purpose: output format, use case, and optional grouping/safety. No wasted words.

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?

The description captures the core value proposition and output structure. With 12 parameters fully documented in the schema, the description doesn't need to enumerate them. It could benefit from an explicit alternative to run_report, but overall it's adequate for selection and 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 coverage is 100%, so the baseline is 3. The description adds minimal parameter-specific meaning beyond the schema; it references topKeys rows but otherwise relies on the extensive param descriptions in the schema.

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 explicitly states 'Return metrics split into a time series' and names the endpoint (/stat/v1/data/bytime), clearly distinguishing it from sibling reporting tools like run_report and run_drilldown by its time-interval output format.

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 says 'Use for trends and charts', giving clear context for when to use this tool. It does not explicitly name alternatives or when-not-to-use conditions, so it stops short of a full 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