Skip to main content
Glama
grammy-mcp
by louietyj

getChat

Read-only

Retrieves up-to-date information about a Telegram chat, including its current name or username, using a chat ID or @username.

Instructions

Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.

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": "getChat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chat_idYesUnique identifier for the target chat or username of the target supergroup or channel in the format `@username`

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds a little beyond that: the data is "up to date" (not cached) and the return is a Chat object, but it says nothing about failure modes such as an unknown chat_id or inaccessible chats, which is the main behavioral risk for a lookup tool reaching an external service.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the purpose and followed by the return type; nothing is wasted or repeated. It is appropriately sized for a simple single-parameter lookup.

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?

For a one-parameter read-only lookup with full schema coverage, covering annotations, and a stated return type, the description supplies everything an agent needs to select and invoke it correctly; only an output schema could add more, and the return type is already named.

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 documented in-schema, including the @username format for supergroups and channels. The description adds no meaning beyond that, so the baseline of 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?

States a specific verb and resource ("get up to date information about the chat") and enumerates what that information includes (current name, current username of user/group/channel), which tells an agent it is the identity/metadata lookup rather than the member, admin, or count variants among the siblings. It stops short of naming any sibling explicitly, so differentiation is by implication rather than declaration.

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?

Usage is implied by the purpose: call it when you need current chat metadata. There is no explicit when-to-use condition, no prerequisites (e.g. the bot must be able to see the chat), and no pointer to alternatives such as the admin or member lookups for related data.

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

Deploy Server

Other Tools