Skip to main content
Glama

waiaas_get_health_factor

Check lending health factor status (safe, warning, danger, critical) for a wallet on specified blockchain networks to monitor DeFi position risk.

Instructions

Get lending health factor (safe/warning/danger/critical).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wallet_idNoTarget wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.
networkNoTarget network for health factor query.

Implementation Reference

  • The 'waiaas_get_health_factor' tool handler defined within the registerGetHealthFactor function. It calls the '/v1/wallet/health-factor' API endpoint.
    server.tool(
      'waiaas_get_health_factor',
      withWalletPrefix('Get lending health factor (safe/warning/danger/critical).', walletContext?.walletName),
      {
        wallet_id: z.string().optional().describe('Target wallet ID. Required for multi-wallet sessions; auto-resolved when session has a single wallet.'),
        network: z.string().optional().describe('Target network for health factor query.'),
      },
      async (args) => {
        const params = new URLSearchParams();
        if (args.wallet_id) params.set('wallet_id', args.wallet_id);
        if (args.network) params.set('network', args.network);
        const qs = params.toString();
        const result = await apiClient.get('/v1/wallet/health-factor' + (qs ? '?' + qs : ''));
        return toToolResult(result);
      },
    );

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/minhoyoo-iotrust/WAIaaS'

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