Skip to main content
Glama
grammy-mcp
by louietyj

replaceStickerInSet

Destructive

Replace an existing sticker in a Telegram sticker set with a new one by deleting the old sticker, adding the replacement, and setting its position in one call.

Instructions

Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. 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": {
      "user_id": "<user_id>",
      "name": "<name>",
      "old_sticker": "<old_sticker>",
      "sticker": "<sticker>"
    },
    "name": "replaceStickerInSet"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSticker set name
stickerYesAn object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged.:x
user_idYesUser identifier of the sticker set owner
old_stickerYesFile identifier of the replaced sticker

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the mutation risk is covered. The description adds useful composition semantics (the three implied sub-operations) and the return value, but says nothing about permission requirements or what happens to the replaced sticker's file identifier.

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?

Two tightly written sentences with the action front-loaded and the equivalence-plus-return-value detail following. No filler wording.

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?

The return value is disclosed, which is valuable given there is no output schema, and the destructive effect is implied. However, for a mutation tool with a nested object parameter, the absence of any note on authorization (sticker set owner) or failure modes leaves a real gap.

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 every parameter is already documented, including the nested InputSticker object. The description adds no parameter-level meaning beyond the schema, which is the baseline for full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb+resource: 'replace an existing sticker in a sticker set with a new one.' This distinguishes it cleanly from addStickerToSet, deleteStickerFromSet and setStickerPositionInSet, which are named siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

By stating it is 'equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet,' it tells the agent this is the one-call alternative to a three-call sequence. It stops short of stating prerequisites, such as that user_id must be the set owner.

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