Skip to main content
Glama

get_agent

Retrieve detailed information about a specific AI agent by providing its ID. This tool enables users to access agent governance data, including policy enforcement status and audit trails.

Instructions

Get details for a specific AI agent.

Args:
    agent_id: The agent ID to look up

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYes

Implementation Reference

  • The 'get_agent' function is defined as an MCP tool and implements the logic to fetch details for a specific AI agent by its ID from the Asqav API.
    @mcp.tool()
    async def get_agent(agent_id: str) -> str:
        """Get details for a specific AI agent.
    
        Args:
            agent_id: The agent ID to look up
        """
        try:
            import json
    
            agent = await _request("GET", f"/agents/{agent_id}")
            return json.dumps(agent, indent=2, default=str)
        except Exception as e:
            return f"Error getting agent: {e}"

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/jagmarques/asqav-mcp'

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