Skip to main content
Glama
grammy-mcp
by louietyj

giftPremiumSubscription

Sends a Telegram Premium subscription to a specified user for 3, 6, or 12 months, paid in Telegram Stars, with optional gift text.

Instructions

Gifts a Telegram Premium subscription to the given user. 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>",
      "month_count": "<month_count>",
      "star_count": "<star_count>"
    },
    "name": "giftPremiumSubscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText that will be shown along with the service message about the subscription; 0-128 characters
user_idYesUnique identifier of the target user who will receive a Telegram Premium subscription
star_countYesNumber of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months
month_countYesNumber of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12
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.
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 readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is partly covered. The description adds one genuinely useful behavioral fact — the boolean return — which matters because no output schema exists. But it omits salient behavior for a monetary action: that Telegram Stars are actually spent, whether the purchase is refundable or reversible, and any permission or balance requirements.

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?

Two sentences, zero waste, with the core action front-loaded and the return value stated last. Nothing is redundant against the schema. It is arguably too terse for a paid, irreversible operation, but the sizing itself is efficient rather than padded.

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 six-parameter mutation tool that spends real currency, the definition is thin: it never mentions the cost implications, failure modes (insufficient Stars, invalid recipient), or irreversibility. It does cover the return value, which compensates for the absent output schema. Adequate to invoke, but not complete enough to invoke safely.

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%, with detailed descriptions including the valid month/star pairings and entity restrictions, so the schema carries the parameter burden. The description adds nothing beyond the schema — no constraint linking the star_count and month_count enums, no note about text_entities versus text_parse_mode exclusivity. Baseline 3 is appropriate.

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: 'Gifts a Telegram Premium subscription to the given user.' An agent can immediately tell this is a purchase/gift action rather than a plain message send. It does not, however, differentiate itself from plausible siblings like sendGift, transferGift, or editUserStarSubscription, so it falls short of a 5.

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 guidance on when this tool should be chosen over sendGift, sendGiftToChannel, transferGift, upgradeGift, convertGiftToStars, or editUserStarSubscription. The description gives no prerequisites, no exclusions, and no alternatives — the agent must infer selection entirely from the name and schema.

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