conditional_payment
Send a payment to a recipient only if a specified token's price meets a defined condition, such as being above or below a threshold.
Instructions
Send a payment only if a token price condition is met, e.g. send 5 USDC if WETH price > 2000
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": {
"to": "<to>",
"amount": "<amount>",
"token": "<token>",
"condition_token": "<condition_token>",
"condition_operator": "<condition_operator>",
"condition_value": "<condition_value>"
},
"name": "conditional_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient wallet address | |
| token | Yes | Token to send if the condition is met | |
| amount | Yes | Amount to send in human readable units, e.g. "5.00" | |
| network | No | Network to use: testnet (default) or mainnet | |
| condition_token | Yes | Token whose USD price drives the condition | |
| condition_value | Yes | USD price threshold to compare against, e.g. "2000" | |
| condition_operator | Yes | Comparison operator: gt, lt, gte, or lte |