list_agents
Retrieve all available conversational AI agents from the ElevenLabs MCP Server for speech generation 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:722-739 (handler)The handler function for the 'list_agents' tool. It is registered via the @mcp.tool decorator. Fetches all conversational AI agents using the ElevenLabs client and returns a formatted list as TextContent.@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}")
- elevenlabs_mcp/server.py:722-722 (registration)The @mcp.tool decorator registers the list_agents tool with the MCP server.@mcp.tool(description="List all available conversational AI agents")