Skip to main content
Glama
grammy-mcp
by louietyj

getBusinessAccountGifts

Read-only

Retrieve gifts received and owned by a managed business account, with filters for saved, unique, limited, and blockchain gifts plus price sorting and pagination.

Instructions

Returns the gifts received and owned by a managed business account. Requires the can_view_gifts_and_stars business bot right. 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": {
      "business_connection_id": "<business_connection_id>"
    },
    "name": "getBusinessAccountGifts"
  }
}

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
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.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds two things beyond that: the required business bot right and the return type (OwnedGifts), both of which affect whether and how an agent calls it. It stops short of describing pagination behavior or what the gift list contains.

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, each earning its place: purpose first, prerequisite second, return type third. No filler, no repetition of the tool name, and nothing that belongs in the 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 an 11-parameter, no-output-schema tool, the description supplies the two pieces the schema cannot: the authorization requirement and the return type. What remains missing is any hint about result ordering defaults or pagination flow, though the offset/limit parameters are self-documenting.

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, including limit bounds, offset semantics, and each exclusion flag, so the schema carries the full burden. The description adds no parameter meaning of its own, which is the expected baseline when the schema is this complete.

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 ('Returns the gifts received and owned by a managed business account'), which is far more precise than a tautology. The scope phrase 'managed business account' implicitly separates it from chat/user gift listings, but no sibling is named explicitly, 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The prerequisite ('Requires the can_view_gifts_and_stars business bot right') tells the agent a precondition for calling, which is useful context. However, there is no statement of when to prefer this over getChatGifts or getUserGifts, and no exclusion guidance; usage must be inferred from the 'business account' scope.

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