get_agent
Retrieve comprehensive details and relationships for any ERC-8004 agent using its chain-specific identifier.
Instructions
Fetch full details for a specific agent, including its Minuet relationships.
Args:
agent_id: Canonical identifier in the form chainId:agentId
(e.g. 1:6817 for Ethereum mainnet agent 6817).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/minuet_mcp/server.py:45-54 (handler)The MCP tool handler for 'get_agent'. Decorated with @mcp.tool(), it creates a MinuetClient and delegates to the client's get_agent method.
@mcp.tool() async def get_agent(agent_id: str) -> dict[str, Any]: """Fetch full details for a specific agent, including its Minuet relationships. Args: agent_id: Canonical identifier in the form `chainId:agentId` (e.g. `1:6817` for Ethereum mainnet agent 6817). """ async with MinuetClient() as client: return await client.get_agent(agent_id) - src/minuet_mcp/server.py:49-51 (schema)Input schema for get_agent: accepts a single 'agent_id' string parameter documented in the docstring.
Args: agent_id: Canonical identifier in the form `chainId:agentId` (e.g. `1:6817` for Ethereum mainnet agent 6817). - src/minuet_mcp/server.py:31-45 (registration)Tool registration via the @mcp.tool() decorator on FastMCP instance 'mcp' (line 16).
@mcp.tool() async def search_agents(query: str | None = None, limit: int = 25) -> dict[str, Any]: """Search indexed ERC-8004 agents. Args: query: Optional substring to match against agent name. limit: Maximum number of agents to return (default 25). """ async with MinuetClient() as client: data = await client.list_agents(name=query, limit=limit) agents = data.get("agents", [])[:limit] return {"count": len(agents), "agents": agents} @mcp.tool() - src/minuet_mcp/client.py:86-87 (helper)The MinuetClient helper method that makes the actual HTTP GET request to /api/agent/{agent_id}.
async def get_agent(self, agent_id: str) -> dict[str, Any]: return await self._get(f"/api/agent/{agent_id}")