Skip to main content
Glama
askads

Yandex Metrica MCP

Завершить подключение Метрики

finish_login
Idempotent

Complete the authentication login by exchanging the verification code for an access token, store it securely, and verify access with a live API request.

Instructions

Второй шаг подключения: обменивает код подтверждения из start_login на токен доступа, сохраняет его в файл только для владельца (0600) и сразу проверяет живым запросом к Метрике. После успеха остальные инструменты работают немедленно — перезапускать клиент не нужно. Код одноразовый и живёт 10 минут: если он не принят, вызовите start_login заново и попросите свежий.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesКод подтверждения, который Яндекс показал пользователю после входа.
Behavior1/5

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

The annotations declare idempotentHint=true, but the description states the code is one-time and that a rejected code requires calling start_login again for a fresh one. Repeated calls with the same arguments are therefore not idempotent, so the description contradicts the annotations.

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 dense sentences cover the workflow, file permissions, live verification, postcondition, and recovery path. The main action is front-loaded and every sentence adds value.

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?

The description covers the prerequisite, success condition, file permission, and failure recovery, which is strong for a one-parameter tool. However, the misleading idempotentHint leaves retry semantics ambiguous despite the one-time-code warning.

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 100%, so the schema already documents the code parameter. The description adds important meaning beyond the schema: the code comes from start_login, is valid for 10 minutes, and is single-use.

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 clearly identifies the tool as the second step of connecting Metrika, specifying that it exchanges the confirmation code from start_login for an access token, saves it, and verifies it with a live request. This distinguishes it from siblings by naming its role and the exact operation it performs.

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 explicitly says this is the second step after start_login, explains that other tools become usable immediately after success, and tells the agent to call start_login again for a fresh code if the current code is rejected. This is clear when-to-use and recovery guidance.

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

Install Server

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/askads/mcp-yandex-metrica'

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