Skip to main content
Glama

get_info

Retrieve wallet capabilities and node information for Bitcoin Lightning payments through Nostr Wallet Connect.

Instructions

Get NWC capabilities of the connected lightning wallet, and general information about the wallet and underlying lightning node

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the 'get_info' tool logic: calls client.getInfo() and returns the wallet/node information as formatted JSON text.
    async () => { const info = await client.getInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; }
  • The registration function for the 'get_info' tool, which calls server.tool() to register the tool name, description, and handler on the MCP server.
    export function registerGetInfoTool(server: McpServer, client: nwc.NWCClient) { server.tool( "get_info", "Get NWC capabilities of the connected lightning wallet, and general information about the wallet and underlying lightning node", async () => { const info = await client.getInfo(); return { content: [ { type: "text", text: JSON.stringify(info, null, 2), }, ], }; } ); }
  • Calls the registerGetInfoTool function to register the 'get_info' tool during MCP server creation.
    registerGetInfoTool(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