Skip to main content
Glama

search_voices

Find specific voices by name to use for audio generation and voice conversion in music creation projects.

Instructions

Search for voices by name

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
voice_nameYesName of the voice to search for

Implementation Reference

  • The handler function for 'search_voices' tool. Validates input, makes GET request to /searchVoices API endpoint with voice_name parameter, and returns the JSON response as text content.
    private async handleSearchVoices(args: any) { if (!args.voice_name) { throw new McpError(ErrorCode.InvalidParams, "voice_name is required"); } const response = await this.axiosInstance.get("/searchVoices", { params: { voice_name: args.voice_name }, }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
  • The input schema definition for the 'search_voices' tool, specifying the required 'voice_name' string parameter.
    { name: "search_voices", description: "Search for voices by name", inputSchema: { type: "object" as const, properties: { voice_name: { type: "string", description: "Name of the voice to search for", }, }, required: ["voice_name"], }, },
  • src/index.ts:665-666 (registration)
    The switch case in the CallToolRequestHandler that registers and dispatches 'search_voices' calls to the handleSearchVoices method.
    case "search_voices": return await this.handleSearchVoices(args);
  • src/index.ts:645-649 (registration)
    The ListToolsRequestHandler that registers all tools including 'search_voices' by returning the TOOLS array containing its schema.
    this.server.setRequestHandler( ListToolsRequestSchema, async () => ({ tools: 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/pasie15/mcp-server-musicgpt'

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