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

tg_clear_chat

Clears the open chat's history to isolate test scenarios and prevent messages from one test leaking into the next.

Instructions

Clear the open chat's history (test isolation between scenarios).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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. For a destructive operation it does not say whether clearing is irreversible, whether history is removed only locally or for all participants, or whether it requires an already-open authenticated session. The only behavioral hint is the parenthetical about test isolation.

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 short sentence with the action and its scope front-loaded and no redundant wording. The parenthetical adds context at minimal cost.

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 no explanation. But for a zero-parameter destructive tool with no annotations, the description leaves the blast radius undefined — what exactly is deleted and whether it can be undone — which is the main thing an agent needs before calling it.

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 no parameter semantics to explain and the baseline applies. Nothing in the description misleads about 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?

States a specific verb and resource ('Clear the open chat's history') and scopes it to the currently open chat, which distinguishes it from siblings that open or close chats. It stops short of naming a sibling alternative or contrasting with tg_close_browser, so it is clear but not fully differentiated.

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 parenthetical '(test isolation between scenarios)' implies the intended context, giving the agent a rough sense of when to reach for it. However, there is no explicit guidance on when not to use it, no prerequisites, and no mention of alternatives for resetting state.

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