Skip to main content
Glama
telegram-bot-testing-mcp
by SnimanOff

tg_miniapp_open

Opens a Telegram Mini App by pressing the web-app button on the last message or by matching button text, supporting bot and Mini App QA flows.

Instructions

Open a Mini App via a web-app button on the last message (or by text).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tg_miniapp_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
button_textNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It implies a state-changing navigation into a Mini App and implies a precondition (a web-app button must exist on the last message), but never says what happens when no such button exists, whether the call blocks, or how the app context is managed.

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?

A single short sentence with the action front-loaded and no filler. Its brevity is efficient, though it shades into under-specification rather than crispness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, but for an operation that drives a Mini App lifecycle the definition omits prerequisites (must be in a chat, message must contain a web-app button) and failure behavior. The one parameter's default semantics are unexplained in both schema and description.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter button_text has no schema description. The phrase 'or by text' only loosely gestures at selecting a button by label, and it never explains what an empty default ('') means — first button? last message's button? This is the key ambiguity for invoking the tool.

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

Purpose3/5

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

The verb+resource ('Open a Mini App') is specific, but the mechanism clause 'via a web-app button on the last message (or by text)' is ambiguous — 'or by text' does not say text of what (a message? a button label?). It hints at a distinction from tg_miniapp_click, but doesn't state one explicitly.

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?

No when-to-use / when-not guidance and no named alternative. The only usage hint is embedded in the mechanism phrase ('button on the last message'), leaving the agent to infer prerequisites and how to differentiate this from tg_miniapp_click or tg_click_button.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.