Skip to main content
Glama
draiqw
by draiqw

tg_invites

Read-onlyIdempotent

Retrieve invite links for a Telegram group or channel and see which members joined via each link. Requires admin rights in the chat to return any data.

Instructions

Invite links of a group or channel, and who joined through which one. Needs admin rights in that chat: without them Telegram hands out nothing.

Args: chat: group or channel id, @username or exact title. link: without it — the links you created, with their usage counts, limits and expiry dates, plus other admins who also hand out links; with it — the people who joined through that exact link and when. limit: how many links, or how many joiners. revoked: list revoked links instead of live ones (link list only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chatYes
linkNo
limitNo
revokedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already mark this read-only/idempotent/non-destructive, and the description adds useful behavioral context: admin-rights dependency, the two result modes, and the revoked-link behavior. No annotation contradiction exists.

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?

The main purpose is front-loaded, followed by a necessary permission warning and a compact Args block. Every sentence adds information; no filler.

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?

With no output schema, the description still conveys what the caller will get: link usage counts, limits, expiry dates, other admins, joiners and timestamps. It also notes the revoked limitation, making the tool callable without guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain all parameters, and it does: chat formats, the conditional behavior of link, limit's meaning, and revoked's restriction to link lists. This fully compensates for the bare schema.

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 opens with a specific verb+resource: retrieving invite links for a group/channel and the joiners per link. It is clearly distinct in action from siblings like tg_invite, but it never names an alternative or says what it is not, so it lacks explicit sibling differentiation.

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

Usage Guidelines4/5

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

It states a concrete prerequisite: admin rights are required and Telegram returns nothing without them. It also explains the two modes (with or without link param). It does not explicitly say when to prefer another tool, but the context is clear enough for invocation.

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