Skip to main content
Glama
yandex-metrica-mcp

yandex-metrica-mcp

by s3rezhkaa

get_sources_report

Load traffic and engagement stats grouped by traffic source and UTM tags for a Yandex Metrica counter and date range, with optional goal reach counts.

Instructions

Load traffic and engagement stats grouped by traffic source and UTM tags.

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. limit: Maximum number of rows to return (1 to 100000).

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_sources_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
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

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies read-only reporting and mentions the limit range, but it does not disclose authorization needs, rate limits, data freshness, date-boundary behavior, or aggregation semantics.

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 definition is front-loaded with the core purpose and then uses a compact Args list. It is efficient and scannable, with only minor redundancy between the argument list and schema titles.

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?

The tool has an output schema, so return values do not need explanation, and the description covers the main parameters. Still, for a reporting tool with no annotations and 0% schema description coverage, it lacks enough guidance on alternatives and behavioral constraints.

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 0%, and the description does document all five parameters with basic meaning, including date format, goal_ids purpose, and limit range. However, it leaves ambiguity around timezone, inclusive date boundaries, counter discovery, and how goal_ids affects the result.

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 first sentence gives a specific verb and resource: load traffic and engagement stats grouped by traffic source and UTM tags. That distinguishes it from sibling reports focused on pages, tech, or goals, though it does not explicitly name those alternatives.

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?

The description implies the tool is for source/UTM reporting through its grouping description, but it gives no explicit when-to-use guidance, exclusions, or routing among sibling report tools such as get_pages_report or get_tech_report.

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