Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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}")

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