get_agent
Fetch comprehensive details and Minuet relationship data for a specific agent using its canonical identifier (chainId:agentId).
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 takes an agent_id string, creates a MinuetClient, and delegates to client.get_agent(agent_id).
@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/client.py:86-87 (helper)The HTTP client helper that sends a GET request to /api/agent/{agent_id} on the Minuet API. This is called by the server handler.
async def get_agent(self, agent_id: str) -> dict[str, Any]: return await self._get(f"/api/agent/{agent_id}") - src/minuet_mcp/server.py:16-16 (registration)The FastMCP instance ('mcp') is created on this line. The @mcp.tool() decorator on the get_agent function registers it as an MCP tool.
mcp = FastMCP("minuet-mcp")