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

tg_miniapp_snapshot

Lists interactive elements inside an open Telegram Mini App as [ref] lines, enabling click and type actions on identified controls.

Instructions

List interactive elements inside the open Mini App as [ref] lines usable with tg_miniapp_click / tg_miniapp_type.

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

Input Schema

NameRequiredDescriptionDefault
max_elementsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the key behavioral trait that results are '[ref] lines' consumed by click/type, and implies the Mini App must already be open, but says nothing about ref stability across snapshots, whether the list is scroll-aware, or what happens when no Mini App is open.

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 compact sentence with the resource and output format front-loaded and no wasted clauses. It is appropriately sized for a simple snapshot tool, though the tie-in to click/type could be phrased as a directive rather than a trailing qualifier.

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?

An output schema exists, so return values need not be explained, and the open-Mini-App prerequisite is implied. However, for a discovery tool that gates click/type, leaving max_elements and ref-validity/truncation behavior undocumented is a meaningful gap.

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?

Only 1 optional parameter (max_elements, default 150) exists with 0% schema description coverage, and the description never mentions it. The schema does supply a type and default, so the agent can call the tool with no arguments, but the meaning of the cap (truncation behavior, ordering of elements) is left unexplained.

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

Purpose5/5

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

States a specific verb and resource ('List interactive elements inside the open Mini App') and specifies the output shape as '[ref] lines', which is exactly what an agent needs to know. It also names the consumers (tg_miniapp_click / tg_miniapp_type), distinguishing it from the sibling actions that use its output.

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

Usage Guidelines4/5

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

The phrase 'usable with tg_miniapp_click / tg_miniapp_type' makes the workflow context clear: call this to discover refs before acting. It does not explicitly say when not to use it (e.g. prefer tg_miniapp_screenshot for visual layout) or that it must precede click/type, so guidance is strong but not fully explicit.

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