Skip to main content
Glama

t2000_health

Monitor agent borrowing safety by checking health factors, supplied and borrowed amounts, and liquidation thresholds to prevent liquidation risks.

Instructions

Check the agent's health factor — measures how safe current borrows are. Below 1.0 risks liquidation. Also shows supplied, borrowed, max borrow, and liquidation threshold.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The implementation of the `t2000_health` tool, which calls `agent.healthFactor()` and returns the result as a text string.
    server.tool(
      't2000_health',
      "Check the agent's health factor — measures how safe current borrows are. Below 1.0 risks liquidation. Also shows supplied, borrowed, max borrow, and liquidation threshold.",
      {},
      async () => {
        try {
          const result = await agent.healthFactor();
          return { content: [{ type: 'text', text: JSON.stringify(result) }] };
        } catch (err) {
          return errorResult(err);
        }
      },
    );

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/mission69b/t2000'

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