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
| Name | Required | Description | Default |
|---|---|---|---|
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 })); }, });