Get margin status
get_margin_statusRetrieve a wallet's vault balance, portfolio initial/maintenance margin, and health status via on-chain eth_call to assess margin adequacy.
Instructions
Vault balance, portfolio IM/MM, and isHealthy for a wallet (eth_call).
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": {
"wallet": "<wallet>"
},
"name": "get_margin_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet | Yes | 0x-prefixed EOA |