Skip to main content
Glama

get_wallet_service_info

Retrieve capabilities, supported encryption methods, and notification types for a connected Bitcoin Lightning wallet to enable payment functionality within language models.

Instructions

Get NWC capabilities, supported encryption and notification types of the connected lightning wallet

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that retrieves wallet service information using the NWC client and formats it as JSON text content for the MCP response.
    async () => { const info = await client.getWalletServiceInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; }
  • The registration function that defines and registers the get_wallet_service_info tool on the MCP server, including name, description, and handler.
    export function registerGetWalletServiceInfoTool( server: McpServer, client: nwc.NWCClient ) { server.tool( "get_wallet_service_info", "Get NWC capabilities, supported encryption and notification types of the connected lightning wallet", async () => { const info = await client.getWalletServiceInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; } ); }
  • Invocation of the registration function during MCP server creation to register the tool.
    registerGetWalletServiceInfoTool(server, client);

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/getAlby/nwc-mcp-server'

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