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

tg_miniapp_click

Clicks a Mini App UI element by its snapshot reference, enabling targeted interaction during Telegram bot testing when exact element refs are known.

Instructions

Click an element inside the Mini App by its snapshot ref (e.g. 'e3').

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": {
      "ref": "<ref>"
    },
    "name": "tg_miniapp_click"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes

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 behavioral burden, yet it says nothing about side effects of clicking (navigation, modal dismissal, form submission) or whether the call waits for a result or fails on an unknown ref. An output schema exists, so return values needn't be explained, but the mutation semantics are materially under-described.

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 sentence that front-loads the action and target, then supplies the format example inline. Nothing is redundant and nothing could be trimmed without losing meaning.

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?

For a one-parameter tool with an output schema, the definition is adequate but leaves two agent-critical gaps: that a snapshot must be taken first to obtain a valid ref, and what clicking does to Mini App state. With no annotations to cover those, the description should do more.

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?

Schema coverage is 0% and the schema only labels the field 'Ref', so the description does the real work by identifying it as a Mini App snapshot ref and giving a concrete format example ('e3'). It does not explain ref lifecycle or validity, which keeps it out of the top score.

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?

States a specific verb ('Click') and target ('an element inside the Mini App'), scoped to Mini App content rather than chat buttons, which implicitly separates it from tg_click_button. It stops short of naming the sibling or the snapshot tool it depends on, so differentiation is inferred rather than explicit.

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 'snapshot ref' and the example 'e3' imply refs come from a snapshot operation (tg_miniapp_snapshot) and that one must be taken first, but this prerequisite is never stated. There is no guidance on when to use this versus tg_click_button or what to do if the ref is stale, leaving usage rules implicit.

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