Skip to main content
Glama

get_wallet

Retrieve wallet details including address, label, chain, spending limits, and pause status by providing a wallet ID.

Instructions

Get details for a specific wallet by ID. Returns address, label, chain, spending limits, and pause status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_idYesWallet ID

Implementation Reference

  • src/index.ts:393-404 (registration)
    The 'get_wallet' tool is registered with the MCP server. It includes the tool name, description, input schema (zod validation for wallet_id as required integer), and the async handler function that calls the API endpoint /wallets/${wallet_id} to fetch wallet details.
    server.tool(
      'get_wallet',
      'Get details for a specific wallet by ID. ' +
        'Returns address, label, chain, spending limits, and pause status.',
      {
        wallet_id: z.number().int().describe('Wallet ID'),
      },
      async ({ wallet_id }) => {
        const data = await api(`/wallets/${wallet_id}`);
        return jsonResponse(data);
      },
    );
  • The handler function for 'get_wallet' tool. It receives wallet_id from the validated input, makes an API call to /wallets/${wallet_id}, and returns the response as JSON.
    async ({ wallet_id }) => {
      const data = await api(`/wallets/${wallet_id}`);
      return jsonResponse(data);
    },
  • The input schema for 'get_wallet' tool using Zod. Defines wallet_id as a required integer with a descriptive comment.
    {
      wallet_id: z.number().int().describe('Wallet ID'),
    },

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/hifriendbot/agentwallet-mcp'

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