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 upInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes |
Implementation Reference
- src/asqav_mcp/server.py:114-127 (handler)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}"