get_voice
Retrieve detailed information about a specific voice from ElevenLabs' Text to Speech service, including voice characteristics and usage parameters.
Instructions
Get details of a specific voice
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| voice_id | Yes |
Implementation Reference
- elevenlabs_mcp/server.py:499-508 (handler)The main handler function for the 'get_voice' tool, decorated with @mcp.tool which also serves as registration. It retrieves voice details from the ElevenLabs API using the provided voice_id and constructs and returns a 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, )
- elevenlabs_mcp/model.py:5-9 (schema)Pydantic model defining the schema for the voice object returned by the get_voice tool.class McpVoice(BaseModel): id: str name: str category: str fine_tuning_status: Optional[Dict] = None