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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- packages/mcp/src/tools/read.ts:112-124 (handler)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); } }, );