list_agents
Retrieve all available conversational AI agents from the ElevenLabs MCP Server to identify and select appropriate agents for text-to-speech and audio processing tasks.
Instructions
List all available conversational AI agents
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- elevenlabs_mcp/server.py:662-678 (handler)The handler function for the list_agents tool. It fetches the list of conversational AI agents from the ElevenLabs API using client.conversational_ai.agents.list() and formats them into a comma-separated string of agent names and IDs, returning as TextContent. The @mcp.tool decorator also serves as the registration.@mcp.tool(description="List all available conversational AI agents") def list_agents() -> TextContent: """List all available conversational AI agents. Returns: TextContent with a formatted list of available agents """ response = client.conversational_ai.agents.list() if not response.agents: return TextContent(type="text", text="No agents found.") agent_list = ",".join( f"{agent.name} (ID: {agent.agent_id})" for agent in response.agents ) return TextContent(type="text", text=f"Available agents: {agent_list}")