get_moolah_user_position
Retrieve a user's position in a Moolah market to view collateral, borrow amount, and risk ratio. Risk near 1 signals potential liquidation, prompting action to repay or add collateral.
Instructions
Get a user's position in a specific Moolah market: collateral, borrow amount, lltv, and risk ratio. risk close to 1.0 means the position is near liquidation — consider repaying or adding collateral.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"marketId": "<marketId>"
},
"name": "get_moolah_user_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | User address. Default: configured wallet | |
| network | No | Network. Default: mainnet | |
| marketId | Yes | Market ID (bytes32 hex) |