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

tg_miniapp_close

Closes an open Telegram Mini App popup so the test session returns to the bot chat and can continue with the next QA step.

Instructions

Close the open Mini App popup.

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_close"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.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, and it discloses almost nothing. It does not say whether closing discards Mini App state or input, whether the parent browser context survives, whether the call errors when no popup is present, or whether it needs a login/session.

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?

A single front-loaded sentence with no filler. The action and target are both in the first few words, and nothing redundant is added.

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?

This is a trivial zero-parameter action and an output schema exists, so return values need not be explained. However, the absence of annotations leaves behavioral questions — effect on Mini App state and behavior when no popup is open — completely unaddressed.

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

Parameters4/5

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

The tool takes zero parameters, so there is nothing for the description to clarify beyond the schema; baseline 4 applies. Schema coverage is 100% and the empty properties object matches the description's claim of no inputs.

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 ("Close") and a specific resource ("the open Mini App popup"), so the action is unambiguous. It does not distinguish itself from the nearby sibling tg_close_browser, which an agent might reasonably weigh as an alternative.

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 only implied by the phrase "the open Mini App popup" — an agent infers it should be called when such a popup exists. There is no explicit when-to-use, no statement about what happens if no popup is open, and no routing to tg_close_browser or tg_miniapp_open.

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