Skip to main content
Glama
jun229

truemarkets-mcp-server

by jun229

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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/jun229/tm-mcp-server'

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