Skip to main content
Glama
grammy-mcp
by louietyj

replaceManagedBotToken

Destructive

Revokes a managed bot's current token and generates a replacement, returning the new token. Use it to rotate a bot token when the existing one must be replaced.

Instructions

Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as String 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": "replaceManagedBotToken"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idYesUser identifier of the managed bot whose token will be replaced

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 flag destructiveHint=true and openWorldHint=true, so the safety profile is covered. The description still adds real value by stating that the existing token is revoked (i.e., the old value stops working) and by disclosing the return value as a String, which matters since there is no output schema.

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 short sentences, action stated first, return value second. No filler or redundant restatement of the name.

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 one-parameter mutation tool with rich annotations, the description covers what it does, the destructive effect on the existing token, and the return type. Minor gaps remain, such as whether the revocation is immediate or requires specific bot-owner permissions, but nothing essential is missing.

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?

With a single parameter at 100% schema description coverage, the schema already explains user_id fully. The description adds no further constraint or format detail, so 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 pair and resource: revoke the current managed-bot token and generate a new one. That verb ('replace'/'revoke') contrasts implicitly but clearly with the read-only sibling getManagedBotToken, though no sibling is named explicitly.

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 phrase 'Use this method to...' frames the intent but provides no when-not conditions, prerequisites, or alternatives. The caller must infer that this is the mutation counterpart to getManagedBotToken rather than read it.

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