Skip to main content
Glama
grammy-mcp
by louietyj

convertGiftToStars

Destructive

Convert a regular Telegram gift into Stars using its owned gift ID and business connection ID; requires the can_convert_gifts_to_stars right and returns true on success.

Instructions

Converts a given regular gift to Telegram Stars. Requires the can_convert_gifts_to_stars business bot right. 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": {
      "business_connection_id": "<business_connection_id>",
      "owned_gift_id": "<owned_gift_id>"
    },
    "name": "convertGiftToStars"
  }
}

Input Schema

NameRequiredDescriptionDefault
owned_gift_idYesUnique identifier of the regular gift that should be converted to Telegram Stars
business_connection_idYesUnique identifier of the business connection

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, so the mutating and irreversible character is conveyed structurally. The description adds the auth prerequisite and the success return value, but does not say the source gift is consumed/destroyed by the conversion or what happens on failure.

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, front-loaded with the action, then the prerequisite, then the return value. Nothing is padded and no sentence repeats the name or schema.

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 two-parameter mutation with no output schema, this covers action, permission requirement and return value. The main omissions are irreversibility of the conversion and failure behavior, which matter 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 both parameters are already documented in the schema and baseline is 3. The description adds no meaning beyond the schema for owned_gift_id or business_connection_id — notably it never says the gift must belong to the given business connection.

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 names a specific verb and resource ('Converts a given regular gift to Telegram Stars'), which is far more informative than the camelCase tool name alone. It does not, however, differentiate itself from plausible siblings such as transferGift or upgradeGift, leaving the agent to infer which gift-mutating operation applies.

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?

The description supplies a real precondition ('Requires the can_convert_gifts_to_stars business bot right'), which is genuine when-to-use guidance an agent can act on. It stops short of naming alternatives or stating when not to use it, e.g. when a gift should be transferred or upgraded instead.

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