Skip to main content
Glama
grammy-mcp
by louietyj

editUserStarSubscription

Destructive

Cancels or re-enables extension of a user's Telegram Stars subscription using the Telegram payment charge ID.

Instructions

Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. 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>",
      "telegram_payment_charge_id": "<telegram_payment_charge_id>",
      "is_canceled": "<is_canceled>"
    },
    "name": "editUserStarSubscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesIdentifier of the user whose subscription will be edited
is_canceledYesPass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable a subscription that was previously canceled by the bot.
telegram_payment_charge_idYesTelegram payment identifier for the subscription

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already mark this as destructive, non-read-only, and open-world, so the safety profile is covered. The description adds useful behavior by stating it returns True on success, but it does not explain side effects, permissions, or limits beyond the schema-provided 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two compact sentences, front-loads the action and resource, and includes the return behavior without unnecessary detail. Every sentence contributes to understanding the operation.

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 three-parameter mutation with full schema coverage and destructive annotations, the description gives enough context to understand the operation and expected return. It could have mentioned constraints or permissions, but the schema and annotations already cover the main risk and parameter details.

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 all three parameters are documented in the input schema, including the detailed is_canceled semantics. The description does not add meaning beyond what the schema already provides.

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 action (cancel or re-enable subscription extension) and resource (a subscription paid in Telegram Stars). It is clear enough to distinguish from general payment tools, but it does not explicitly contrast itself with sibling subscription or refund tools.

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 implied by 'cancel or re-enable extension of a subscription,' and the boolean parameter semantics reinforce the two modes. However, the description gives no explicit when-to-use guidance, prerequisites, or alternatives to sibling tools.

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