Skip to main content
Glama

Synthesize Speech

synthesize_speech

Convert text up to 1000 characters into speech, returning a signed audio download link valid for 1 hour. Use it for short text-to-speech needs; download promptly, since expired links require re-synthesis.

Instructions

把文本合成为语音(≤1000 字符),同步返回现签下载链接(url,GET 即得音频,1 小时内有效)。 请提醒用户及时下载转存——链接过期后只能重新合成(重复计费)。 更长的文本请改用 submit_speech_task(异步任务)。speaker 音色代码先用 list_tts_voices 查询。 计费约 2 元/万字符,失败不计费。

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

Input Schema

NameRequiredDescriptionDefault
textYes
speakerNodefault
audio_formatNowav

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare only non-readonly, non-idempotent, non-destructive, which the description far exceeds with operational detail: the URL is valid for one hour, expiry forces a full re-synthesis with duplicate billing, pricing is ~2 yuan per 10k characters, and failed calls are not billed. It also tells the agent to prompt the user to download promptly, which is user-facing behavior neither the schema nor annotations convey.

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?

The size limit and synchronous return are front-loaded, followed by expiry/billing warnings and then the two sibling-routing hints. Every sentence carries a distinct operational fact (limit, URL lifetime, rebilling, cost, alternatives) with no filler.

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?

An output schema exists so return-shape explanation is not strictly required, yet the description still clarifies that 'url' is a directly GETtable audio link. Combined with cost, expiry, character limit, and fallback routing, nothing an agent needs to call this correctly is missing.

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 description coverage is 0%, so the description must carry parameter meaning. It documents the 1000-character limit on 'text' and specifies that 'speaker' values come from list_tts_voices rather than being invented; 'audio_format' is left to its wav/mp3 enum, which is self-explanatory but not addressed in prose.

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 ('把文本合成为语音') and pins the exact scope: ≤1000 characters, synchronous execution, returns a signed download URL. It explicitly separates itself from submit_speech_task for longer text, so an agent can pick between the two without inspecting schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit routing rules: use this tool for text up to 1000 characters, switch to submit_speech_task for longer text, and call list_tts_voices first to obtain a valid speaker code. Both alternatives and the conditions that select them are named.

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