Skip to main content
Glama
grammy-mcp
by louietyj

setStickerSetThumbnail

Destructive

Sets or replaces the thumbnail for a regular or mask Telegram sticker set, ensuring the thumbnail format matches the set's sticker format.

Instructions

Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. 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": {
      "name": "<name>",
      "user_id": "<user_id>",
      "thumbnail": "<thumbnail>",
      "format": "<format>"
    },
    "name": "setStickerSetThumbnail"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSticker set name
formatYesFormat of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, or “video” for a WEBM video
user_idYesUser identifier of the sticker set owner
thumbnailYesA .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements), or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=true and openWorld=true, so the mutating and external-file nature is covered structurally. The description adds the format-matching constraint and the 'Returns True on success' outcome (valuable since no output schema exists), but never says that an existing thumbnail is overwritten or that permission/ownership via user_id is required.

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?

Three short sentences, front-loaded with the action and scope, then the constraint, then the return value. No filler; only minor value loss from not elaborating on the overwrite behavior.

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 four-required-parameter mutation with full schema coverage, destructive/openWorld annotations, and no output schema, the description supplies the key cross-parameter constraint and the success return. The main gap is the absence of any statement about what happens to the previous thumbnail or authorization needs.

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%, including the detailed thumbnail file/URL/file_id rules and the enum meaning for format, so the baseline is 3. The description only echoes the format-matching constraint already implied by the schema and adds no new parameter meaning.

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?

States a specific verb and resource (set the thumbnail of a sticker set) and scopes it to 'regular or mask' sets, which implicitly excludes custom emoji sets handled by the sibling setCustomEmojiStickerSetThumbnail. It stops short of naming that alternative explicitly, so the discrimination is inferential rather than stated.

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 requirement that the thumbnail format must match the sticker format in the set is a useful precondition, and 'regular or mask' implies the custom-emoji case belongs elsewhere. There is no explicit when-to-use/when-not statement or named alternative, so guidance is only implied.

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