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
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes |
Implementation Reference
- elevenlabs_mcp/server.py:681-700 (handler)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')}", )