aave_set_collateral
Enables or disables a supplied asset as collateral for an AAVE position by building the transaction. Disabling fails if it would make the position undercollateralized.
Instructions
Build transaction to enable or disable a supplied asset as collateral. Disabling may fail if it would make the position undercollateralized.
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": {
"chain": "<chain>",
"asset": "<asset>",
"useAsCollateral": "<useAsCollateral>"
},
"name": "aave_set_collateral"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Reserve token address | |
| chain | Yes | Target chain | |
| useAsCollateral | Yes | true to enable, false to disable |