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

tg_send_voice

Send a voice message in Telegram Web from a PCM WAV file via a fake microphone to test how bots handle voice input.

Instructions

Record and send a voice message using a fake microphone fed from a WAV file (PCM). Relaunches the browser on first use per file.

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": {
      "path": "<path>"
    },
    "name": "tg_send_voice"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
duration_sNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full load. It does disclose a meaningful side effect ('relaunches the browser on first use per file') and the PCM/WAV input mechanism, which is real behavioral value. It omits whether a chat must already be open, whether the relaunch invalidates the login session, and whether the call blocks for the recording duration.

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?

Two short sentences, front-loaded with the action and resource, with the side-effect warning second. The phrase 'on first use per file' is slightly ambiguous but every sentence earns its place.

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 no explanation. However, for a tool that relaunches the browser, the description should say what session state is lost and what preconditions (open chat, login) are required before calling.

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 description coverage is 0%, so the description must compensate. It only partially does: 'fed from a WAV file (PCM)' implies what 'path' points to, but 'duration_s' with default 0 is never explained (auto-detect from file? send immediately?), leaving a required parameter's companion undocumented.

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 (record and send) plus the resource (voice message) and even the mechanism (fake microphone fed from a WAV/PCM file). That distinguishes it from tg_send_file and tg_send_message by output type, though it never names a sibling explicitly.

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 implied: you call it when you want a voice message sourced from a WAV file. There is no explicit when-not guidance, no mention of prerequisites (open chat, logged-in session), and no comparison to the record_start/record_stop siblings that also capture audio.

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