Skip to main content
Glama

get_info

Retrieve service details such as version, operational status, usage limits, and available features for the Lightning Wallet MCP server.

Instructions

Get service information including version, status, limits, and supported features.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The getInfo implementation in the LightningFaucetClient class.
    async getInfo(): Promise<{
      version: string;
      apiVersion: string;
      status: string;
      maxPaymentSats: number;
      minPaymentSats: number;
      supportedFeatures: string[];
      rawResponse: ApiResponse;
    }> {
      const result = await this.request<ApiResponse & {
        version?: string;
        api_version?: string;
        status?: string;
        max_payment_sats?: number;
        min_payment_sats?: number;
        supported_features?: string[];
      }>('get_info');
    
      return {
        version: result.version || '2.0.0',
        apiVersion: result.api_version || '1.0',
        status: result.status || 'operational',
        maxPaymentSats: result.max_payment_sats || 1000000,
        minPaymentSats: result.min_payment_sats || 1,
        supportedFeatures: result.supported_features || ['l402', 'webhooks', 'lightning_address'],
        rawResponse: result,
      };
    }
  • src/index.ts:610-617 (registration)
    The get_info tool registration.
      name: 'get_info',
      description: 'Get service information including version, status, limits, and supported features.',
      inputSchema: {
        type: 'object',
        properties: {},
        required: [],
      },
    },
  • The MCP tool call handler for get_info.
    case 'get_info': {
      GetInfoSchema.parse(args);
      const result = await session.requireClient().getInfo();
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify({
              success: true,
              version: result.version,
              api_version: result.apiVersion,
              status: result.status,
              max_payment_sats: result.maxPaymentSats,
              min_payment_sats: result.minPaymentSats,
              supported_features: result.supportedFeatures,
            }, null, 2),
          },
        ],
      };
    }

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/lightningfaucet/lightning-wallet-mcp'

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