Skip to main content
Glama
Yandex Metrica MCP Server

Yandex Metrica MCP Server

Статус подключения к Метрике

auth_status
Read-onlyIdempotent

Checks whether Yandex Metrica is connected, shows token source and expiration without network calls or exposing the token. Use when Metrica tools report missing setup.

Instructions

Показывает, подключена ли Яндекс Метрика: есть ли токен, откуда он взят (YANDEX_METRIKA_TOKEN или файл PLUGIN_OAUTH_CREDENTIALS_PATH от Сведума), когда истекает. Ничего не отправляет в сеть и не показывает сам токен. Вызовите это, если инструменты Метрики отвечают, что подключение не настроено.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "auth_status"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4/5.0
Behavior2/5

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

The description does disclose genuinely useful behavior beyond the annotations — the token value itself is never shown, and the call is a local credential check rather than a data request. However, 'Ничего не отправляет в сеть' (sends nothing to the network) directly conflicts with openWorldHint: true, which declares interaction with an external open world. That inconsistency undermines the annotation's reliability for an agent deciding whether the call touches Yandex Metrica's servers.

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 tight sentences: what it reports, what it does not do (no network call, no token exposure), and when to invoke it. The most decision-relevant information — the connectivity verdict — is front-loaded, and no sentence is filler.

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?

With no output schema, the description carries the burden of explaining the result, and it does list the fields an agent will get back (presence, source, expiry). It does not describe the shape or naming of those fields or what a failure response looks like, but for a zero-parameter diagnostic it is otherwise complete.

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate; the baseline for a no-parameter tool applies. The description correctly implies no input is required, since the credential source and expiry are read from the environment.

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 names a specific verb and resource — it reports whether Yandex Metrica is connected — and enumerates exactly what the status contains: token presence, its origin (YANDEX_METRIKA_TOKEN or the Svedum PLUGIN_OAUTH_CREDENTIALS_PATH file), and its expiry. This is clearly distinguishable from the data-retrieval siblings (get_statistics, list_counters, raw_request), which cannot be mistaken for a connectivity diagnostic.

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?

It gives an explicit trigger: call this when the Metrica tools report that the connection is not configured. That is a clear use context with no ambiguity, but it offers no when-not guidance (for example, that it is unnecessary when other tools are already returning data) and no prerequisites.

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