Skip to main content
Glama

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
NameRequiredDescriptionDefault
agent_idYesOn-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);
    },
  • 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);
        },
      );
    }

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/minhoyoo-iotrust/WAIaaS'

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