Skip to main content
Glama
yandex-metrica-mcp

yandex-metrica-mcp

by s3rezhkaa

get_daily_stats

Retrieve daily Yandex Metrica statistics for a counter, including visits, users, average visit duration, and optional goal reaches across a date range.

Instructions

Load daily visits, users, average visit duration, and goal reaches for a counter.

Args: counter_id: Yandex Metrica counter ID. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. goal_ids: Optional list of Metrica goal IDs to include reach counts.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "counter_id": "<counter_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_daily_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_dateYes
goal_idsNo
counter_idYes
start_dateYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the exact metric set returned and the conditional behavior that goal reach counts appear only when goal_ids is supplied, but it never confirms this is a read-only operation, nor mentions auth requirements, date-range limits, or data sampling.

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 first sentence front-loads purpose and output content, and the Args block is not padding because it adds format and optionality details absent from the schema. Slightly verbose in restating parameter names, but every line earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the parameters are well covered. What is missing for a reporting tool of this complexity is routing guidance versus sibling report tools and any note on range limits or read-only semantics.

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 0%, so the description must compensate, and it largely does: all four parameters are named with meaning, start_date/end_date are given an explicit YYYY-MM-DD format, counter_id is identified as a Yandex Metrica counter, and goal_ids is marked optional with its effect on output. Remaining gap is whether the date range is inclusive and any timezone assumption.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Load') and names the exact resource and metric set: daily visits, users, average visit duration, and goal reaches for a counter. This clearly separates it from report-style siblings like get_pages_report or get_sources_report, though it never explicitly states the distinction.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all — nothing says whether to prefer this over get_goal_visits for goal data, or what date-range constraints apply. The only conditional hint is that goal_ids 'include[s] reach counts', which is a parameter behavior, not usage guidance.

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