Skip to main content
Glama

synthesize_speech

Converts text into speech audio via DashScope TTS and returns a temporary URL; download the file before it expires to keep the audio.

Instructions

Synthesize speech from text (DashScope TTS); returns a temporary audio URL.

Single synchronous request. The audio_url expires (see expires_at); download it to keep the audio.

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
modelNocosyvoice-v2
voiceNolongxiaochun_v2
formatNo
timeoutNo
sample_rateNo

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 burden, and it does disclose meaningful behavior: the request is synchronous and the audio_url is temporary, referencing expires_at and advising download. It still omits auth requirements, text-length limits, rate limits, and failure behavior, so it is helpful but incomplete for a 6-parameter operation.

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?

Three short sentences, front-loaded with the core action before the lifetime caveat, with no filler. The parenthetical 'DashScope TTS' is modestly useful for backend identification and 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-value explanation is not needed, and the expiry caveat is a valuable addition. However, for a tool with six undocumented parameters and no annotations, the description leaves too much unspecified around voice/format selection and operational limits.

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% across six parameters, so the description must compensate and does not: it never explains model, voice, format, timeout, or sample_rate beyond schema defaults. Only the text input is implicitly covered by the opening phrase.

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?

The description states a specific verb and resource ('Synthesize speech from text') and identifies the backend ('DashScope TTS') plus the primary output ('temporary audio URL'). It is clearly distinct from the sibling transcribe_audio by direction of conversion, though no sibling is named 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?

The phrase 'Single synchronous request' implies this tool returns results immediately, useful context against the submit_/get_ task-polling siblings, but the description never says when to choose this tool versus alternatives or what prerequisites apply. Usage is implied rather than stated.

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