Skip to main content
Glama

Turns text into speech with a Cloudflare Workers AI TTS

agent_intel_multilingual_voice_tts
Read-only

Turns text (up to 1000 characters) into speech with a Cloudflare Workers AI TTS model, in English, Spanish, French or Japanese. Returns base64 audio as the model gives it. German and Turkish are not offered: the model used here does not list them. Requires the env.AI binding. Price: $0.003 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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": {
      "text": "<text>"
    },
    "name": "agent_intel_multilingual_voice_tts"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoen, es, fr or ja (default en)
textYesText to speak, 1 to 1000 characters

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, so the description carries real weight here and delivers: base64 audio return, a required env.AI binding, per-call pricing of $0.003, x402/USDC payment across multiple chains, and the important detail that failed calls are not charged. These are exactly the operational facts an agent needs before invoking a paid external call.

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?

Front-loaded with the core action and limits, then cost and requirements in descending priority — a sensible order. Slightly padded by the incidental network list ('Solana and 10 more networks'), which is not decision-critical.

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?

For a two-parameter tool with full schema coverage, a declared output schema, and annotations, the description covers everything else an agent needs: language scope, size limit, binding prerequisite, cost model, and failure billing. Nothing material is left to inference.

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 description coverage is 100%, so both parameters are already documented in structured form, and the description largely restates them (1000 characters, en/es/fr/ja). It adds no syntax, default, or encoding nuance beyond the schema, so the baseline 3 applies.

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 (text-to-speech) plus the concrete engine (Cloudflare Workers AI TTS) and the supported language set. The direction of conversion is unambiguous, which cleanly separates it from a transcription sibling without needing to name one.

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?

Gives useful operating constraints — 1000-character cap, four supported languages, and an explicit exclusion (German and Turkish are not offered) — but never addresses when to pick this over an alternative, such as the speech-to-text sibling or another TTS route. Usage is implied rather than routed.

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.

Resources