run_risk_sentinel
Check swap-route or manual health and net-edge risk within route capacity. Supply both chain IDs, both tokens, and input amount for quoted mode, which requests a provider preview and returns riskReport and quotePreview. Otherwise the manual result contains health, netEdge, flags, and shouldHalt. A halt can publish an authorized risk alert. This action grants no trading authority.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_risk_sentinel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gasUsd | No | Estimated gas in USD for a manual assessment. | |
| toToken | No | ERC-20 token contract address deployed on the corresponding chain. Do not pass a wallet/EOA; the token address and chain ID must match. | |
| protocol | No | Optional quoted-mode route provider, LI.FI or Relay. | |
| slippage | No | Quoted-mode tolerance in percentage points (0.5 means 0.5%). | |
| fromToken | No | ERC-20 token contract address deployed on the corresponding chain. Do not pass a wallet/EOA; the token address and chain ID must match. | |
| toAddress | No | Optional EVM destination recipient. Defaults to the supplied wallet if present. | |
| toChainId | No | Destination EVM chain ID for quoted mode. | |
| fromAmount | No | Input token amount as an integer string in base units. | |
| safetyMode | No | Risk strictness mode for the quoted route assessment. | |
| fromChainId | No | Source EVM chain ID for quoted mode. | |
| bridgeFeeUsd | No | Estimated bridge fee in USD for a manual assessment. | |
| healthFactor | No | Current lending health factor as a ratio. | |
| riskBufferUsd | No | Additional modeled risk cost in USD. | |
| walletAddress | No | Optional EVM wallet for route context. Publishing halt alerts requires independent wallet authorization. | |
| protocolFeeUsd | No | Estimated protocol fees in USD for a manual assessment. | |
| enforcePositive | No | Treat nonpositive or unknown net edge as a blocking risk when supported by the selected mode. | |
| expectedUpsideUsd | No | Expected gross upside in USD for net-edge analysis. | |
| liquidationBufferPct | No | Estimated headroom before liquidation in percentage points. |