Skip to main content
Glama

列出可用音色

list_voices
Read-onlyIdempotent

获取 TTS 可用音色列表(仅免费开源音色,不计额度)。调用 text_to_speech 前必须先从这里拿 voice 参数,直接猜测音色名会返回 VOICE_NOT_ALLOWED。不传 lang 返回全部;传 lang 按语言前缀过滤(zh→zh_CN、en→en_US…;matcha/fanchen 归 zh_CN)。

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

Input Schema

NameRequiredDescriptionDefault
langNo按语言筛选(前缀匹配),如 zh / en / ja;不传则返回全部音色

Output Schema

NameRequiredDescriptionDefault
countNo
voicesNo
requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (read-only, idempotent, non-destructive), so the description's job is extra context — and it delivers: results are quota-free open-source voices only, and misuse produces a specific error code. It also explains the default behavior (no lang returns everything) which is not derivable from annotations.

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 compact sentences, front-loaded with purpose then precondition then parameter behavior; each carries new information. The parenthetical locale mapping is slightly dense but not wasteful.

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 single optional-filter, read-only list tool with an output schema, this covers purpose, precondition, failure mode, default behavior and filter semantics. Nothing required to call it correctly is missing, and return values need not be described since the output schema exists.

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 coverage is 100%, so baseline is 3; the description earns above that by explaining that lang is prefix-matched and by giving the actual prefix-to-locale mapping (zh→zh_CN, en→en_US) and the special grouping of matcha/fanchen under zh_CN. The mapping is illustrative rather than exhaustive, so it stops short of a 5.

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 and resource — fetching the TTS available-voice list — and scopes it (free/open-source voices only, quota-free). It is distinguishable from the generically named voice siblings by the TTS qualifier, though it never names list_dubbing_voices to draw the line explicitly.

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?

Gives an explicit mandatory precondition: call this before text_to_speech to obtain the voice parameter, and warns that guessing a voice name yields VOICE_NOT_ALLOWED. That is a concrete when-to-use plus a when-not-to-guess failure mode, which is exactly what an agent needs for routing.

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