tm_get_profile
Retrieve authenticated user profile details including email and associated wallet addresses for account management and verification.
Instructions
Get the authenticated user's profile including email and wallet addresses.
Returns: { email, wallets: [{ chain, address }] }
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/read.ts:189-202 (handler)The async function that handles the 'tm_get_profile' tool request, calling api.getProfile() and formatting the output.
async () => { const profile = await api.getProfile(); const wallets = (profile.wallets ?? []).map((w) => ({ chain: w.chain === "evm" ? "base" : (w.chain ?? ""), address: w.address ?? "", })); const output = { email: profile.email ?? "", wallets }; return { content: [{ type: "text", text: JSON.stringify(output, null, 2) }], structuredContent: output, }; - src/tools/read.ts:174-188 (registration)Registration of the 'tm_get_profile' tool within the MCP server, including the schema and tool metadata.
server.registerTool( "tm_get_profile", { title: "Get account profile", description: `Get the authenticated user's profile including email and wallet addresses. Returns: { email, wallets: [{ chain, address }] }`, inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true, }, },