Skip to main content
Glama
by fakepixels

list_wallets

Retrieve a list of all available wallets on the Base Network MCP Server for managing blockchain operations via natural language commands.

Instructions

List all available wallets

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • The main execution logic for the 'list_wallets' tool. Calls getAllWallets() and formats the response with success message and wallet list.
    function handleListWallets(): any { try { const wallets = getAllWallets(); return { success: true, message: `Found ${wallets.length} wallet(s)`, wallets: wallets.map(wallet => ({ name: wallet.name, address: wallet.address })) }; } catch (error) { console.error('Error listing wallets:', error); throw error; } }
  • Input schema definition for the 'list_wallets' tool (no input parameters required) as part of the MCP ListTools response.
    name: 'list_wallets', description: 'List all available wallets', inputSchema: { type: 'object', properties: {}, }, },
  • MCP CallTool request handler registration that invokes the list_wallets handler and returns the result as text content.
    case 'list_wallets': { const result = toolHandlers.handleListWallets(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], };
  • Helper function that retrieves all wallets from the in-memory walletStore.
    export function getAllWallets(): Wallet[] { return Object.values(walletStore); }

Other Tools

Related Tools

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/fakepixels/base-mcp-server'

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