Skip to main content
Glama

Chat by ID

messenger_get_chat_by_id_v2
Read-onlyIdempotent

Retrieve details of a single chat by its ID, including participants, linked item, context, and last message. Use when chat_id is already known.

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 mark readOnlyHint=true, destructiveHint=false, idempotentHint=true. Description repeats 'Read-only' but adds no further context about rate limits, auth needs, or other behavioral traits beyond what annotations provide.

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 sentences, all essential. No redundant information. Efficiently conveys purpose, usage, and key details.

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?

No output schema, but description lists returned fields (participants, linked item, context, last message). Could be improved by noting exact object structure or pagination, but sufficient for a simple retrieval tool with good sibling descriptions.

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% with descriptions for both parameters. The description adds context: chat_id is obtained from messenger_get_chats_v2, and user_id defaults to Profile_id from .env, adding value beyond schema.

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 returns a single chat's details (participants, linked item, context, last message) by chat_id. It distinguishes itself from sibling tools 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 when to use: when chat_id is known. Provides alternatives: use messenger_get_chats_v2 to find chat_id or list conversations, and messenger_get_messages_v3 for messages.

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