Skip to main content
Glama
seer22

io.github.seer22/shturman-direct-mcp

by seer22

Read Metrika: counters, goals, statistics

direct_metrika
Read-onlyIdempotent

Read Yandex Metrika data: list accessible counters, view goals, and request statistics slices with custom dimensions and metrics. End the date range yesterday to avoid underfilled current-day reports.

Instructions

The Yandex Metrika API, reading only. Three actions: 'counters' lists the counters this token can see; 'goals' lists one counter's goals; 'stat' answers one statistics slice — dimensions and metrics travel to the API as the ym:* names you write, and accuracy=full is sewn in because the service default is SAMPLING, on which a rare conversion rounds to zero while the report looks ordinary.

šŸ”“ Data arrives with a lag of about 2 hours: the current day is underfilled, and judging it has produced wrong conclusions twice in a row. End the window yesterday.

Needs its own credential, not the Direct one: python -m shturman_direct login metrika. Creating goals is a write and lives in direct_metrika_goals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
date1NoYYYY-MM-DD. stat only, required there — explicit on purpose
date2NoYYYY-MM-DD. stat only, required there. Make it yesterday: the current day is underfilled by about 2 hours
limitNorows to return, default 200
actionYescounters: what the token sees; goals: one counter's goals; stat: one statistics slice
counterNonumeric counter id. Required for goals and stat
filtersNoMetrika filter expression, optional
metricsNoym:* metric names, passed through as written, e.g. ym:s:visits. Required for stat
dimensionsNoym:* dimension names, passed through as written, e.g. ym:s:trafficSource
Install Server

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses non-obvious behavioral traps: accuracy=full is forced because the service default is SAMPLING, data lags about 2 hours and the current day is underfilled, and the tool needs its own Metrika credential rather than the Direct one. This is exactly the context annotations cannot convey.

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 front-loaded and each section earns its place with practical warnings. It is slightly redundant with the schema's date2 and action descriptions, but the critical caveats justify most of the length.

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

Completeness5/5

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

For a three-action API with 8 parameters and no output schema, the description provides the essential surrounding context: authentication, read-only scope, sampling behavior, data lag, and the write alternative. Combined with the detailed schema, an agent has enough to select the right action and call it correctly.

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%, so the baseline is 3. The main description mostly restates what the schema already says, such as action meanings, ym:* names passed through as written, and the date window advice. The accuracy=full detail is valuable but functions more as behavioral context than a parameter-semantics addition.

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 title and first sentence define the tool as 'The Yandex Metrika API, reading only' with three explicit actions. It clearly distinguishes the read scope from the write sibling direct_metrika_goals, so an agent can tell this tool apart immediately.

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

Usage Guidelines5/5

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

The description gives concrete per-action guidance, warns to end date windows yesterday because of the 2-hour data lag, and explicitly says creating goals is a write that belongs in direct_metrika_goals. It also explains the separate credential requirement, leaving little ambiguity about when and how to use the tool.

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

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/seer22/shturman-direct-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server