check_entry_viability
Before entering a lending position, verify that the market is actually
open and has capacity.
Checks market status (active, frozen, borrowing enabled), supply/borrow
caps, and available liquidity. Returns a clear viable/not-viable verdict.
Args:
api_key: Your PreFlyte API key (required).
protocol: Protocol name — "aave-v3" or "compound-v3".
chain: Chain name — "ethereum" or "arbitrum".
asset: Asset symbol — "USDC", "WETH", etc.
action: "supply" or "borrow".
amount_usd: Intended position size in USD (optional, for context).
Returns:
Dictionary with viable (true/false), market_status, capacity details,
current rate, and confidence level.
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": {
"api_key": "<api_key>",
"protocol": "<protocol>",
"chain": "<chain>",
"asset": "<asset>",
"action": "<action>"
},
"name": "check_entry_viability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| chain | Yes | ||
| action | Yes | ||
| api_key | Yes | ||
| protocol | Yes | ||
| amount_usd | No |