get_my_profile
Retrieve your authenticated agent profile to access and manage on-chain loyalty program data, including tokens, rewards, balances, tiers, and marketplace offers.
Instructions
Get authenticated agent's profile
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler implementation for the 'get_my_profile' tool, which performs authentication and returns the agent's profile details.
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 })); }, - supabase/functions/loyalty-mcp/index.ts:28-36 (registration)Registration of the 'get_my_profile' tool within the MCP server.
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 })); }, });