Skip to main content
Glama

list_voices

Retrieve available VOICEVOX voice characters to select speakers for text-to-speech synthesis and audio playback.

Instructions

利用可能な音声の一覧を取得

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The getVoices() method that implements the core logic for list_voices. It fetches speakers from the VOICEVOX API, iterates through them and their styles, and returns an array of Voice objects with character, name, and id.
    async getVoices(): Promise<Voice[]> {
      const response = await fetch(`${this.baseUrl}/speakers`);
      const speakers = await response.json() as any[];
    
      const voices: Voice[] = [];
      for (const speaker of speakers) {
        for (const style of speaker.styles) {
          voices.push({
            character: speaker.name,
            name: style.name,
            id: style.id,
          });
        }
      }
    
      return voices;
    }
  • The case handler for list_voices tool in the main switch statement. It calls voicevox.getVoices() and returns the result as JSON-formatted text content.
    case "list_voices": {
      const voices = await voicevox.getVoices();
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(voices, null, 2),
          },
        ],
      };
    }
  • src/index.ts:90-97 (registration)
    Tool registration for list_voices in the ListToolsRequestSchema handler. Defines the tool name, description, and empty input schema.
    {
      name: "list_voices",
      description: "利用可能な音声の一覧を取得",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • Voice interface/type definition that defines the structure of voice objects returned by list_voices.
    export interface Voice {
      character: string;
      name: string;
      id: number;
    }
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It fails to indicate whether the results are cached, the expected return format (e.g., list of IDs vs. objects), or if there are rate limits. The statement is purely functional.

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 description is a single efficient sentence with no redundant words. Given the simplicity of this parameter-less list operation, the length is appropriate and front-loaded.

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?

While the description covers the basic purpose, it lacks information about the return structure since no output schema exists. For a catalog-listing tool, mentioning that it returns all configured voice options or the data format would improve completeness.

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?

The tool accepts zero parameters. Per the evaluation rules, the baseline score for zero-parameter tools is 4. The schema requires no additional semantic clarification from the description.

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 '利用可能な音声の一覧を取得' (Get a list of available voices) provides a clear verb and resource. However, it does not explicitly differentiate from siblings like 'get_voices_in_use' or 'get_random_unused_voice', which also retrieve voice information.

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

Usage Guidelines2/5

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

The description offers no guidance on when to use this tool versus alternatives such as 'get_voices_in_use' (for active voices) or 'get_random_unused_voice' (for random selection). There are no prerequisites or exclusion criteria stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arrow2nd/vv-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server