Skip to main content
Glama

list_models

Retrieve all available text-to-speech models from ElevenLabs to select the appropriate voice synthesis option for your audio generation needs.

Instructions

List all available models

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_models' tool, decorated with @mcp.tool for registration. Fetches models from ElevenLabs API and converts them to McpModel instances.
    @mcp.tool(description="List all available models")
    def list_models() -> list[McpModel]:
        response = client.models.list()
        return [
            McpModel(
                id=model.model_id,
                name=model.name,
                languages=[
                    McpLanguage(language_id=lang.language_id, name=lang.name)
                    for lang in model.languages
                ],
            )
            for model in response
        ]
  • Pydantic BaseModel defining the output schema for models returned by list_models tool.
    class McpModel(BaseModel):
        id: str
        name: str
        languages: list[McpLanguage]
  • Pydantic BaseModel defining the schema for language objects within McpModel.
    class McpLanguage(BaseModel):
        language_id: str
        name: str

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