Skip to main content
Glama
grammy-mcp
by louietyj

getManagedBotToken

Read-only

Retrieve the authentication token for a managed Telegram bot by supplying its user ID, so agents can authenticate and act on the bot’s behalf.

Instructions

Use this method to get the token of a managed bot. Returns the 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": "getManagedBotToken"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description contributes the success return type ('as String'), which is genuinely useful with no output schema, but it omits that this is a sensitive credential retrieval — no note on permission requirements, failure modes, or whether the token is redacted.

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?

Two short sentences, front-loaded with the action and followed by the return value; nothing is wasted. It is minimal but perhaps too terse for a credential-returning 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 single-parameter read tool with annotations covering safety and no output schema, describing the return as a String is the key missing piece and it is present. The only gap is the absence of any authorization or sensitivity context for a token-returning call.

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% and the single parameter (user_id) is fully documented in the schema as the managed bot's user identifier. The description adds no meaning beyond that, so the baseline of 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 states a specific verb and resource: 'get the token of a managed bot', which is immediately distinguishable from replaceManagedBotToken and setManagedBotAccessSettings by name alone. It is clear what is retrieved, though it never explicitly contrasts itself with those siblings.

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

Usage Guidelines2/5

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

There is no when-to-use guidance whatsoever — no mention of when to fetch versus replace a token, no prerequisites, and no indication that the caller must own/administer the managed bot. The agent must infer the use case entirely from the verb.

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