Skip to main content
Glama

search_voices

Search your ElevenLabs voice library by name, description, labels, or category to find specific voices for text-to-speech projects.

Instructions

Search for existing voices, a voice that has already been added to the user's ElevenLabs voice library. Searches in name, description, labels and category. Args: search: Search term to filter voices by. Searches in name, description, labels and category. sort: Which field to sort by. `created_at_unix` might not be available for older voices. sort_direction: Sort order, either ascending or descending. Returns: List of voices that match the search criteria.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNo
sortNoname
sort_directionNodesc

Implementation Reference

  • The handler function for the 'search_voices' tool. It uses the ElevenLabs client to search voices based on the provided parameters and returns a list of McpVoice objects.
    @mcp.tool( description=""" Search for existing voices, a voice that has already been added to the user's ElevenLabs voice library. Searches in name, description, labels and category. Args: search: Search term to filter voices by. Searches in name, description, labels and category. sort: Which field to sort by. `created_at_unix` might not be available for older voices. sort_direction: Sort order, either ascending or descending. Returns: List of voices that match the search criteria. """ ) def search_voices( search: str | None = None, sort: Literal["created_at_unix", "name"] = "name", sort_direction: Literal["asc", "desc"] = "desc", ) -> list[McpVoice]: response = client.voices.search( search=search, sort=sort, sort_direction=sort_direction ) return [ McpVoice(id=voice.voice_id, name=voice.name, category=voice.category) for voice in response.voices ]
  • Pydantic BaseModel defining the structure of McpVoice, used as the return type for search_voices.
    class McpVoice(BaseModel): id: str name: str category: str fine_tuning_status: Optional[Dict] = None
  • The @mcp.tool decorator registers the search_voices function as an MCP tool.
    @mcp.tool(

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