Skip to main content
Glama

Get Telegram Chat Info

messaging.telegram.get_chat
Read-onlyIdempotent

Get info about a Telegram chat — title, type (private/group/supergroup/channel), description, member count, username (Telegram Bot API)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "chat_id": "<chat_id>"
    },
    "name": "messaging.telegram.get_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesChat ID or @username to get info about

Output Schema

NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered. The description adds the provenance ('Telegram Bot API') and the shape of what comes back, but says nothing about access requirements or failure modes for inaccessible chats — useful context, but not rich behavioral disclosure.

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?

A single front-loaded sentence with the resource first, the returned fields second, and a brief source attribution in parentheses. Nothing is repeated and nothing is wasted.

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 tool is simple (one required parameter), annotations are complete, and an output schema exists, so the description does not need to explain return values — though it helpfully lists them anyway. The only real gap is the absence of any note about access requirements or behavior when the chat is not visible to the bot.

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 description coverage is 100% and the single chat_id parameter is already documented as 'Chat ID or @username'. The description adds no syntax, format, or resolution-order detail beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ('Get info about a Telegram chat') and enumerates the returned fields (title, type, description, member count, username), which makes the read-only nature obvious against the send_message/send_photo/send_document siblings. It stops short of explicitly contrasting itself with those siblings, so it lands just below the top mark.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of prerequisites such as the bot needing to be a member of or have access to the chat, and no routing to alternatives. The agent must infer from the verb alone that this is a lookup step rather than part of a send flow.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.