erc8004_get_agent_info
Retrieve on-chain identity information for AI agents, including wallet addresses, metadata, and unique identifiers from the ERC-8004 standard.
Instructions
Get ERC-8004 agent identity info (on-chain ID, wallet, URI, metadata).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | On-chain agent ID (uint256) |
Implementation Reference
- The tool handler that calls the API client to fetch the agent info.
async (args) => { const result = await apiClient.get(`/v1/erc8004/agent/${args.agent_id}`); return toToolResult(result); }, - packages/mcp/src/tools/erc8004-get-agent-info.ts:10-22 (registration)Tool registration function using McpServer to define the 'erc8004_get_agent_info' tool.
export function registerErc8004GetAgentInfo(server: McpServer, apiClient: ApiClient, walletContext?: WalletContext): void { server.tool( 'erc8004_get_agent_info', withWalletPrefix('Get ERC-8004 agent identity info (on-chain ID, wallet, URI, metadata).', walletContext?.walletName), { agent_id: z.string().describe('On-chain agent ID (uint256)'), }, async (args) => { const result = await apiClient.get(`/v1/erc8004/agent/${args.agent_id}`); return toToolResult(result); }, ); }