Skip to main content
Glama
conarti

yandex-messenger-mcp

by conarti

Get message context

get_message_context
Read-only

Retrieve messages surrounding a specified timestamp in a chat. Controls number of messages before and after the target.

Instructions

Окно сообщений вокруг метки: N сообщений до и N после указанного message_id (timestamp в микросекундах).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatYesChatId либо поисковый запрос для резолва чата
afterNoСколько сообщений ПОСЛЕ метки (по умолчанию 10)
beforeNoСколько сообщений ДО метки (по умолчанию 10)
message_idYesTimestamp целевого сообщения в микросекундах (строка)
Behavior4/5

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

The annotations already indicate readOnlyHint=true, so the safety profile is known. The description adds that the tool uses a timestamp in microseconds as the marker and returns a window of messages with configurable before/after counts, which goes beyond the annotation. No contradictions.

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?

The description is a single, clear sentence that efficiently conveys the core functionality. No extraneous information; it is front-loaded with the key concept.

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 description explains the input parameters well but does not describe the output format or what fields the returned messages contain. Since there is no output schema, more detail on the return structure would improve completeness for an agent.

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 coverage is 100% with each parameter described. The description provides a high-level overview but does not add significant new details beyond the schema. Baseline 3 is appropriate.

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 states the tool retrieves a window of messages around a specified message_id, with N messages before and after. It uses specific verb ('get') and resource ('message context'), and distinguishes from siblings like get_message (single message) and get_history (possibly whole history).

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?

The description implies the use case: when you need context around a specific message. However, it does not explicitly say when to use this vs alternatives (e.g., get_history for broader range, get_message for single). No when-not or alternative guidance is provided.

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/conarti/yandex-messenger-mcp'

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