Skip to main content
Glama

get_agent

Retrieve detailed information about a specific conversational AI agent by providing its unique identifier.

Instructions

Get details about a specific conversational AI agent

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYes

Implementation Reference

  • The main handler function for the 'get_agent' tool, decorated with @mcp.tool for registration. It retrieves details of a specific agent using the ElevenLabs client API, extracts voice configuration if available, and returns a formatted TextContent response.
    @mcp.tool(description="Get details about a specific conversational AI agent") def get_agent(agent_id: str) -> TextContent: """Get details about a specific conversational AI agent. Args: agent_id: The ID of the agent to retrieve Returns: TextContent with detailed information about the agent """ response = client.conversational_ai.agents.get(agent_id=agent_id) voice_info = "None" if response.conversation_config.tts: voice_info = f"Voice ID: {response.conversation_config.tts.voice_id}" return TextContent( type="text", text=f"Agent Details: Name: {response.name}, Agent ID: {response.agent_id}, Voice Configuration: {voice_info}, Created At: {datetime.fromtimestamp(response.metadata.created_at_unix_secs).strftime('%Y-%m-%d %H:%M:%S')}", )

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