assess_risk
Analyze DeFi transaction safety by scanning contracts, simulating outcomes, and checking tokens to provide go/no-go recommendations before interactions.
Instructions
Comprehensive risk assessment combining contract scanning, transaction simulation, and token checks. This is the recommended all-in-one safety check before any DeFi interaction. Returns a go/no-go recommendation.
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": {
"action": "<action>",
"targetContract": "<targetContract>",
"from": "<from>"
},
"name": "assess_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Type of action being assessed | |
| targetContract | Yes | The contract being interacted with | |
| chainId | No | Chain ID | |
| from | Yes | The agent's wallet address | |
| transactionData | No | Calldata for the transaction (hex) | |
| value | No | ETH value (in wei) | 0 |
| tokenAddress | No | Token address if this involves a token swap |