Skip to main content
Glama

Voice agent: spoken question in, spoken answer out, with memory

voice_agent
Read-only

One turn of a voice assistant: send the user's voice note (or text), your instructions and the earlier turns; get back what was heard, a short reply, the reply spoken in English or Spanish and the updated history to send next time. Speech up to 2 minutes (MP3/WAV, or 1 MB of other formats); replies up to 600 characters. Use for voice bots in Telegram or WhatsApp, phone menus, kiosks and hands-free helpers. Example: text=What time do you open on Saturday?. Price $0.05/call via x402 USDC or a card key (/credits); failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "voice_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoAbsolute http(s) URL of the user's spoken turn (MP3/WAV up to 2 minutes, other formats up to 1 MB); or POST the file; or send text instead
langNoReply language and voice: en or es (Aura-2 MP3); fr, zh, ja and ko are retired, so a request for them is a 422 (MeloTTS was removed from Workers AI, 20 Nov 2026); default en
textNoThe user's turn as text (or send audio with url or a POSTed file)
voiceNoAura-2 voice for an en or es reply (default luna for en, aquila for es)
historyNoEarlier turns as a JSON array of {role, content}, as returned in history by the last call
instructionsNoWho the assistant is and what it knows (up to 2,000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / lang / description
      Previous value: -"Reply language and voice: en, es (Aura-2 MP3), fr, zh, ja or ko (MeloTTS WAV); default en"New value: +"Reply language and voice: en or es (Aura-2 MP3); fr, zh, ja and ko are retired, so a request for them is a 422 (MeloTTS was removed from Workers AI, 20 Nov 2026); default en"
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "es",
      -  "fr",
      -  "zh",
      -  "ja",
      -  "ko"
      -]New value: +[
      +  "en",
      +  "es"
      +]
    • changedInput schema / properties / voice / description
      Previous value: -"Aura-2 voice for an en or es reply (default luna for en, aquila for es); fr, zh, ja and ko have one voice each"New value: +"Aura-2 voice for an en or es reply (default luna for en, aquila for es)"
  2. Changed3 schema fields changed
    • changedInput schema / properties / lang / description
      Previous value: -"Reply language and voice: en or es (default en)"New value: +"Reply language and voice: en, es (Aura-2 MP3), fr, zh, ja or ko (MeloTTS WAV); default en"
    • changedInput schema / properties / lang / enum
      Previous value: -[
      -  "en",
      -  "es"
      -]New value: +[
      +  "en",
      +  "es",
      +  "fr",
      +  "zh",
      +  "ja",
      +  "ko"
      +]
    • changedInput schema / properties / voice / description
      Previous value: -"Aura-2 voice for the reply (default luna for en, aquila for es)"New value: +"Aura-2 voice for an en or es reply (default luna for en, aquila for es); fr, zh, ja and ko have one voice each"
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses hard input limits (2 minutes MP3/WAV, 1 MB other formats), output limit (600-character replies), the billing model ($0.05/call via x402 USDC or card key, failed calls free) and the key operational fact that each call is charged so repeats are not free. That pricing/repeat note is precisely the context that makes the non-idempotent annotation actionable rather than just a flag.

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?

It is a single dense paragraph that front-loads the input/output contract before moving to limits, use cases, an example and pricing, with no wasted filler. It is on the long side and the pricing and example sentences could be tightened, but every clause carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the burden of describing returns, and it does so explicitly: what was heard, a short reply, the spoken reply, and the updated history to pass on the next call. Combined with the size limits, language constraint and cost model, an agent has everything needed to call this correctly and chain it.

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?

Schema coverage is 100%, so every parameter already carries its own description, and the description largely restates those constraints (duration, file size, reply length). The only genuine addition is a sample value for text, which is helpful but marginal against a schema that already does the heavy lifting.

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?

The description states a specific verb-and-resource: one turn of a voice assistant, taking a voice note or text plus instructions and prior history, returning transcript, reply, spoken audio and updated history. That in/out contract, plus the 'with memory' framing, makes it distinguishable from the sibling transcription and text_to_speech tools at a glance.

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?

It names concrete deployment contexts (Telegram/WhatsApp bots, phone menus, kiosks, hands-free helpers) and gives a worked example call, which is clear positive guidance. It stops short of explicit exclusions or naming an alternative sibling for the single-shot transcription or TTS cases, so it does not reach the top band.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.