JustLend Account Position Queries¶
Use this page when the user asks about a wallet's JustLend position, health factor, collateral, borrow limit, borrow capacity, risk value, supplied assets, borrowed assets, or rewards.
Recommended MCP tool¶
Use get_account_summary.
Typical inputs:
address: TRON Base58 address starting withTnetwork:mainnetornile, defaultmainnet
The answer should summarize:
- supplied markets and values
- borrowed markets and values
- collateral markets
- borrow limit or liquidity
- health factor or liquidation risk
- rewards, if available
- timestamp or block number, if available
OpenAPI fallback¶
Use GET /lend/account/{address} from https://openapi.just.network for read-only integrations.
Schema: /developers/apis/justlend_apis.yaml
Interpretation rules¶
- A lower health factor or higher risk value means higher liquidation risk.
- A position can be supplied but not counted as collateral unless the market has been entered as collateral.
- Borrow capacity depends on supplied value, collateral factors, oracle prices, and existing borrow value.
- Liquidation risk changes when token prices, borrow balances, or interest rates change.
- Always state that the values are a snapshot and should be refreshed before taking action.
Safe response template¶
When answering an account query, use this structure:
- Network and address checked.
- Total supplied and top supplied markets.
- Total borrowed and top borrowed markets.
- Collateral / borrow limit / health factor.
- Risk assessment: safe, watch, high risk, or liquidatable if the source clearly supports that classification.
- Next actions: repay, supply more collateral, withdraw cautiously, or no action required.
Chinese query mapping¶
- “查一下这个地址的 JustLend 仓位” →
get_account_summary - “健康因子是多少?” →
get_account_summary - “还能借多少?” →
get_account_summary; explain borrow capacity. - “会不会被清算?” →
get_account_summary; explain liquidation risk and refresh before action. - “收益/奖励有多少?” → account summary + rewards tools if available.
Safety note¶
Account queries are read-only. If the user asks to repay, withdraw, borrow, or supply based on the result, switch to the safe workflow in supply_borrow_repay_withdraw.md and require explicit confirmation before any write transaction.
Source links¶
- Source of Truth explains when to use MCP versus OpenAPI.
- MCP Tool Catalog lists
get_account_summaryand wallet-read tools. - MCP Safety Policy applies before acting on liquidation, repay, or withdraw recommendations.