Skip to main content
Glama
grammy-mcp
by louietyj

getChatGifts

Read-only

Retrieves gifts owned by a specified chat, returning paginated OwnedGifts results with optional filters, price sorting, and exclusions for saved, unique, limited, or blockchain-assigned gifts.

Instructions

Returns the gifts owned by a chat. Returns OwnedGifts 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>"
    },
    "name": "getChatGifts"
  }
}

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 an empty string to get the first chunk of results
chat_idYesUnique identifier for the target chat or username of the target channel in the format `@username`
exclude_savedNoPass True to exclude gifts that are saved to the chat's profile page. Always False, unless the bot has the can_post_messages administrator right in the channel.
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 chat's profile page. Always True, unless the bot has the can_post_messages administrator right in the channel.
exclude_unlimitedNoPass True to exclude gifts that can be purchased an unlimited number of times
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered, and the description adds only that success yields an OwnedGifts object. It does not disclose pagination behavior, that sorting happens before pagination, or the channel-admin restrictions—facts that exist only in the parameter descriptions.

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 short, front-loaded sentences with zero filler. The second sentence is mostly redundant with the first, but nothing is buried or 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?

With no output schema, it is reasonable that the description names the OwnedGifts return type, but for an 11-parameter paginated listing tool it omits pagination flow and permission caveats that materially affect correct invocation. It is adequate but leaves real gaps an agent must fill from the schema alone.

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 11 parameters, so the schema already explains limit bounds, offset semantics, and each exclude flag. The description adds no parameter meaning beyond what the schema provides, making the baseline 3 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?

'Returns the gifts owned by a chat' gives a specific verb and resource with a scoping qualifier ('owned by a chat') that separates it from catalog-style siblings like getAvailableGifts. However, it never names getAvailableGifts, getUserGifts, or getBusinessAccountGifts to explain how the results differ, leaving the agent to infer the distinction from scope 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 guidance on when to choose this tool over the other gift-listing siblings, and no mention of prerequisites such as the bot needing the can_post_messages administrator right for the exclude_saved/exclude_unsaved options (that constraint only appears in the schema). The description only states what it returns, not when to reach for it.

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