Skip to main content
Glama
grammy-mcp
by louietyj

sendGift

Send a gift to a Telegram user or channel by ID or @username, with optional text and formatting, and return True on success.

Instructions

Sends a gift to the given user. 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": {
      "user_id": "<user_id>",
      "gift_id": "<gift_id>"
    },
    "name": "sendGift"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText that will be shown along with the gift; 0-128 characters
gift_idYesIdentifier of the gift
user_idYesUnique identifier for the chat or username of the channel (in the format `@username`) that will receive 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

B3.2/5.0
Behavior3/5

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

Annotations already declare this as a non-read-only, non-destructive, open-world operation. The description contributes two pieces of real behavioral context beyond them: the gift cannot be converted to Telegram Stars by the receiver, and the return value is True on success. It still says nothing about cost to the bot's balance, error conditions, or whether gifts can be revoked, so it is useful but not rich.

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 the action, then the constraint, then the return value. No filler, though the phrasing is terse enough that it leaves the prime usage-routing slot unused.

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 six-parameter mutation tool with fully described schema and no output schema, the description covers what it does, one meaningful restriction, and the success return value. The main gap is economic behavior (who pays, and how pay_for_upgrade interacts with the bot balance), which matters for a gifting 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%, so every parameter (user_id, gift_id, text, text_entities, text_parse_mode, pay_for_upgrade) is already documented in the schema. The description adds no syntax, identifier format, or cost detail 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?

"Sends a gift to the given user" pairs a specific verb with a specific resource, so the action is unambiguous. It does not, however, distinguish this from near-identical siblings such as sendGiftToChannel or transferGift, leaving the agent to infer the difference from the names alone.

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?

There is no explicit when-to-use guidance and no named alternative. The clause about the receiver not being able to convert the gift to Stars hints at a relationship with convertGiftToStars, but the agent must infer it rather than being told which tool to pick in which situation.

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