Skip to main content
Glama
grammy-mcp
by louietyj

sendGiftToChannel

Sends a gift to a specified channel chat, optionally with accompanying text and a paid upgrade for the receiver. Returns true on success; the recipient cannot convert the gift to Telegram Stars.

Instructions

Sends a gift to the given channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns True 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>",
      "gift_id": "<gift_id>"
    },
    "name": "sendGiftToChannel"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText that will be shown along with the gift; 0-128 characters
chat_idYesUnique identifier for the chat or username of the channel (in the format
gift_idYesIdentifier of the gift
text_entitiesNoA list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored.
pay_for_upgradeNoPass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver
text_parse_modeNoMode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, “custom_emoji”, and “date_time” are ignored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, destructive=false, openWorld=true), and the description adds two genuine traits on top: the receiver cannot convert the gift to Stars, and the call returns True on success. It omits prerequisites such as the bot's rights in the channel and whether Stars are spent, keeping it short of a 5.

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?

Three short sentences, purpose first, then the key restriction, then the return value. Nothing is redundant or buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the description does supply the return value and one important restriction, and parameters are fully documented in the schema. However, it says nothing about required bot permissions in the channel or the cost implications, which are material for a gift-sending operation.

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% across all six parameters, so the schema carries parameter meaning on its own. The description mentions no parameter at all, not even text or pay_for_upgrade, so it adds nothing beyond the structured fields; 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?

"Sends a gift to the given channel chat" is a specific verb+resource, and the channel target implicitly separates it from the user-oriented sendGift and from convertGiftToStars. It stops short of explicitly naming the sibling it contrasts with, so an agent must infer the distinction.

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?

No when-to-use, when-not-to-use, or alternative routing is stated. The note that the receiver cannot convert the gift to Telegram Stars is a behavioral constraint an agent could use to choose between this and convertGiftToStars, but it is never framed as selection guidance.

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