Skip to main content
Glama

delete_wallet

Remove a wallet from active use by soft-deleting it, making it invisible in listings and unusable for transactions while preserving data.

Instructions

Delete (soft-delete) a wallet. The wallet will no longer appear in listings and cannot be used for transactions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_idYesWallet ID to delete

Implementation Reference

  • The delete_wallet tool implementation: registers the tool with server.tool(), defines the schema (wallet_id parameter using Zod), and provides the handler function that makes a DELETE API call to /wallets/{wallet_id} endpoint.
    // ─── Tool: delete_wallet ─────────────────────────────────────────
    
    server.tool(
      'delete_wallet',
      'Delete (soft-delete) a wallet. The wallet will no longer appear in listings ' +
        'and cannot be used for transactions.',
      {
        wallet_id: z.number().int().describe('Wallet ID to delete'),
      },
      async ({ wallet_id }) => {
        const data = await api(`/wallets/${wallet_id}`, 'DELETE');
        return jsonResponse(data);
      },
    );

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