Skip to main content
Glama

get_my_profile

Retrieve your authenticated profile details for managing loyalty program tokens, rewards, balances, tiers, and marketplace offers on Base L2.

Instructions

Get authenticated agent's profile

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Implementation of the 'get_my_profile' tool in the MCP server setup. It uses the authGuard to verify the agent and returns their profile details.
    mcpServer.tool("get_my_profile", {
      description: "Get authenticated agent's profile",
      inputSchema: { type: "object" as const, properties: {} },
      handler: async () => {
        const err = authGuard();
        if (err) return T(err);
        return T(JSON.stringify({ agent_id: agent.agentId, name: agent.name, owner_address: agent.ownerAddress, scopes: agent.scopes }));
      },
    });

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/aspekt19/unboxed-loyalty-spark'

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