Skip to main content
Glama
yandex-metrica-mcp

yandex-metrica-mcp

by s3rezhkaa

get_goal_visits

Retrieve individual visits that reached a specified Yandex Metrica goal within a date range, including visit time and UTM content for attribution analysis.

Instructions

Load individual visits that reached a specific goal (with visit time and UTM content).

Args: counter_id: Yandex Metrica counter ID. goal_id: Yandex Metrica goal ID. start_date: Start date in YYYY-MM-DD format. end_date: End date in YYYY-MM-DD format. 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>",
      "goal_id": "<goal_id>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "get_goal_visits"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
goal_idYes
end_dateYes
counter_idYes
start_dateYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose the returned fields (visit time, UTM content) and the row cap (1 to 100000), which is real behavioral value. It says nothing about authentication, rate limits, pagination beyond the limit, or what happens on an invalid goal/counter pairing.

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?

A single front-loaded sentence states what is loaded, followed by a compact args list that earns its place given zero schema coverage. No filler or redundant restatement.

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 five-parameter read tool, the definition covers inputs and the shape of the result, and an output schema exists so return values need not be spelled out. It is close to complete, missing only sibling routing and failure/permission behavior.

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 description coverage is 0%, so the description must compensate, and it largely does: all five parameters are listed with domain meaning, date formats (YYYY-MM-DD), and the valid limit range. Remaining gaps are minor, e.g. counter_id/goal_id are only identified as 'Yandex Metrica ... ID' with no format nuance and the default of 100 is left to the schema.

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?

States a specific verb and resource: 'Load individual visits that reached a specific goal', and even hints at the payload ('visit time and UTM content'). It is clearly distinct from get_goals (goal definitions) and the aggregate reports, though it never explicitly contrasts with siblings.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is for drill-down into a single goal's conversions, as opposed to aggregate stats or goal listings. There is no explicit when-to-use/when-not guidance or statement of prerequisites beyond naming Yandex Metrica IDs.

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