Skip to main content
Glama
grammy-mcp
by louietyj

editChatSubscriptionInviteLink

Destructive

Edits an existing subscription invite link created by a bot, updating its name when the bot has can_invite_users administrator rights.

Instructions

Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users administrator rights. Returns the edited invite link as a ChatInviteLink object.

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>",
      "invite_link": "<invite_link>"
    },
    "name": "editChatSubscriptionInviteLink"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoInvite link name; 0-32 characters
chat_idYesUnique identifier for the target chat or username of the target channel in the format `@username`
invite_linkYesThe invite link to edit

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful auth and ownership prerequisites plus the return type (ChatInviteLink), but it never explains what the mutation actually affects — e.g. whether existing subscribers keep access or whether only the name is changeable.

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?

Three short sentences, front-loaded with purpose, then prerequisites, then return value. Nothing is redundant, though the prerequisite and return sentences could be tightened slightly.

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 3-parameter mutation with no output schema, the description covers purpose, authorization requirements, ownership constraints, and the return type. The only meaningful gap is the absence of any statement about what editing does to existing subscribers, which matters given destructiveHint=true.

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%, so chat_id, invite_link, and the optional 0-32 character name are already fully documented in the schema. The description adds no field-level meaning beyond the schema, which is the expected baseline here.

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 states a specific verb and resource: 'edit a subscription invite link created by the bot.' The word 'subscription' meaningfully separates it from the generic editChatInviteLink sibling, though it never names that alternative explicitly.

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?

It supplies two real preconditions — the bot must have can_invite_users admin rights, and the link must have been created by the bot — which tell an agent when the call will succeed. It stops short of contrasting this with editChatInviteLink, so an agent must infer that this tool is only for subscription links.

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