Skip to main content
Glama
grammy-mcp
by louietyj

getUserGifts

Read-only

Retrieves the gifts a user owns or hosts, with pagination, sorting, and filters for gift type or blockchain status. Use it to inspect a user's gift collection and hosting records.

Instructions

Returns the gifts owned and hosted by a user. 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": {
      "user_id": "<user_id>"
    },
    "name": "getUserGifts"
  }
}

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
user_idYesUnique identifier of the user
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_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.4/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. The description adds only that the response is an "OwnedGifts" object on success, without saying whether results are paginated, how the offset/limit interact, or what an empty result looks like — modest added value beyond structured fields.

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 sentences, front-loaded with the operation and scope, with zero filler. It is efficient but underspecified rather than over-written; the second sentence's mention of "OwnedGifts" is the only return-value signal.

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 nine parameters but complete schema descriptions, full read-only annotations, and no output schema, the description covers identification and return type at a minimum-viable level. It omits pagination behavior for a list tool whose offset/limit pair matters, and does not explain the "OwnedGifts" shape it names.

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?

All nine parameters have schema descriptions at 100% coverage, including the 1-100 limit range, the empty-string offset convention, and the semantics of each exclude_* flag and sort_by_price ordering. The description adds nothing beyond the schema, so the baseline 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?

The description gives a specific verb and resource ("Returns the gifts owned and hosted by a user") and scopes it to a single user, which distinguishes it from catalog-style siblings like getAvailableGifts and chat-scoped ones like getChatGifts. It stops short of naming any sibling explicitly, so it is clear but not fully differentiated.

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 is only implied by the scope phrase "owned and hosted by a user" — an agent can infer this is the per-user gift lookup. There is no explicit statement of when to prefer it over the sibling gift tools, no prerequisites, and no note on choosing between the many filter flags versus pagination.

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