Skip to main content
Glama

Chat by ID

messenger_get_chat_by_id_v2
Read-onlyIdempotent

Retrieves details of a single chat by its ID, including participants, linked item, context, and last message. Ideal when you already know the chat_id.

Instructions

Returns the details of a SINGLE chat by a known chat_id: participants, linked item, context, and the last message. Read-only. Use it when the chat_id is already known; to find a chat_id or get a list of conversations, use messenger_get_chats_v2. The conversation messages themselves are returned by messenger_get_messages_v3.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chat_idYesChat identifier (string) obtained from messenger_get_chats_v2.
user_idNoAvito account ID that owns the chat. Defaults to Profile_id from .env.
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description adds 'Read-only' and lists return fields, which reinforces annotations but offers no new behavioral traits beyond what annotations provide. 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?

Two sentences: first states purpose and return data, second gives usage guidance. No extraneous text, front-loaded, every sentence adds value.

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?

Despite no output schema, description adequately describes what is returned (participants, linked item, context, last message) and what is not (messages delegated to other tool). Sufficient for this simple retrieval tool.

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 descriptive parameter comments. chat_id description mentions source (messenger_get_chats_v2) and user_id mentions default. The tool description does not add new semantics beyond what the schema already provides.

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?

Clearly states it 'Returns the details of a SINGLE chat by a known chat_id' and lists returned data (participants, linked item, context, last message). Differentiates from siblings messenger_get_chats_v2 and messenger_get_messages_v3.

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?

Explicitly says 'Use it when the chat_id is already known; to find a chat_id or get a list of conversations, use messenger_get_chats_v2' and notes that messages come from messenger_get_messages_v3. Provides clear when-to-use and when-not with named alternatives.

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/elchin92/avito-mcp'

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