Skip to main content
Glama
grammy-mcp
by louietyj

upgradeGift

Destructive

Upgrades a regular Telegram gift to a unique gift using a business connection; requires transfer-and-upgrade rights and transfer-stars rights for paid upgrades.

Instructions

Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business bot right. Additionally requires the can_transfer_stars business bot right if the upgrade is paid. 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": "upgradeGift"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoThe maximum number of gifts to be returned; 1-100. Defaults to 100.
offsetNoOffset of the first entry to return as received from the previous request; use empty string to get the first chunk of results
exclude_savedNoPass True to exclude gifts that are saved to the account's profile page
owned_gift_idYesUnique identifier of the regular gift that should be upgraded to a unique one
sort_by_priceNoPass True to sort results by gift price instead of send date. Sorting is applied before pagination.
exclude_uniqueNoPass True to exclude unique gifts
exclude_unsavedNoPass True to exclude gifts that aren't saved to the account's profile page
exclude_unlimitedNoPass True to exclude gifts that can be purchased an unlimited number of times
business_connection_idYesUnique identifier of the business connection
exclude_from_blockchainNoPass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram
exclude_limited_upgradableNoPass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique
exclude_limited_non_upgradableNoPass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already flag this as a non-read-only, destructive, open-world mutation, so the description does not need to restate that. It does add real value beyond the annotations: the two specific business bot rights required (can_transfer_and_upgrade_gifts, plus can_transfer_stars for paid upgrades) and the True-on-success return contract. It stops short of stating irreversibility or what happens to the original regular gift, which matters for a destructive operation.

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 with zero filler, front-loaded with the action and followed immediately by preconditions and the return value. Nothing is redundant and nothing could be cut without losing information.

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?

There is no output schema, and the description compensates by stating it returns True on success, plus it covers the permission model. For a destructive mutation with 12 parameters, though, it leaves gaps: irreversibility, whether a paid upgrade incurs Star cost to the bot owner, and why the schema carries listing-style pagination parameters are all unaddressed.

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 the schema already documents all 12 parameters and the baseline of 3 applies. The description adds nothing about parameters beyond implying owned_gift_id via 'a given regular gift', and the many optional pagination/filter parameters (limit, offset, exclude_*, sort_by_price) look unrelated to an upgrade action, yet the description does not clarify which parameters actually matter 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: 'Upgrades a given regular gift to a unique gift,' which is a clear, unambiguous purpose. It does not explicitly contrast with nearby siblings such as convertGiftToStars or transferGift, but the resource ('unique gift' vs 'regular gift') is distinctive enough for an agent to tell them apart.

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?

Usage context is implied: use this when a regular gift should become a unique one, and the description names the required business bot rights, which is genuinely useful gating information. However, it never says when NOT to use it, nor does it route the agent toward alternatives like transferring or converting the gift 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