Skip to main content
Glama
elevenlabs

ElevenLabs MCP Server

Official
by elevenlabs

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}")
  • The @mcp.tool decorator registers the list_agents tool with the MCP server.
    @mcp.tool(description="List all available conversational AI agents")

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/elevenlabs/elevenlabs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server