Skip to main content
Glama

get_voice

Retrieve detailed information about a specific ElevenLabs voice using its unique voice ID for text-to-speech applications.

Instructions

Get details of a specific voice

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
voice_idYes

Implementation Reference

  • The handler function for the 'get_voice' tool. Decorated with @mcp.tool for registration. Fetches voice details via ElevenLabs client API and returns a structured McpVoice object.
    @mcp.tool(description="Get details of a specific voice")
    def get_voice(voice_id: str) -> McpVoice:
        """Get details of a specific voice."""
        response = client.voices.get(voice_id=voice_id)
        return McpVoice(
            id=response.voice_id,
            name=response.name,
            category=response.category,
            fine_tuning_status=response.fine_tuning.state,
        )
  • Pydantic BaseModel defining the output schema for the get_voice tool, including voice id, name, category, and fine_tuning_status.
    class McpVoice(BaseModel):
        id: str
        name: str
        category: str
        fine_tuning_status: Optional[Dict] = None

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/projectservan8n/elevenlabs-mcp'

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