Skip to main content
Glama
tgsearch-mcp

tgsearch-mcp

by schebotar

tg_get_chat

Retrieve one Telegram chat's details: about text, member count, pinned message, forum flag, public link, and access restrictions using a username, t.me link, or numeric chat id.

Instructions

Get one chat's details: about, member count, pinned message, forum flag, public link and access restrictions.

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": "<chat>"
    },
    "name": "tg_get_chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatYesChat reference: @username, t.me link, or numeric chat id.

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

No annotations are supplied, so the description carries the full burden. "Get" implies a read-only operation and the field list tells the agent what is retrieved, but nothing is said about permission/membership requirements — significant given it returns "access restrictions" and "public link" — nor about failure modes for private or inaccessible chats. Return values are covered by the output schema, which offsets part of the gap.

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?

One front-loaded sentence with the verb and resource first and the returned fields as a compact list; every clause conveys usable information and there is no filler.

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?

For a one-parameter read-only lookup with a fully described schema and an output schema, the description covers what data comes back and how to identify the chat. The only meaningful omission is the membership/permission precondition, which matters for a tool that reports access restrictions.

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 parameter already documents the accepted reference forms (@username, t.me link, numeric id). The description adds no syntax, normalization, or fallback guidance beyond that, so 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?

States a specific verb and resource ("Get one chat's details") and enumerates the returned fields — about, member count, pinned message, forum flag, public link, access restrictions. This is unambiguous about scope and is naturally distinguishable from lookup/search siblings like tg_find_chats or tg_get_messages, though it never explicitly names a sibling to differentiate itself from.

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 only implied: the single required `chat` reference makes it obvious this is a single-chat lookup, but there is no explicit statement of when to prefer this over tg_find_chats or tg_index_chat, nor any prerequisite such as needing to be a member or admin of the chat. Adequate but leaves the routing decision to inference.

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