borrow
Obtain token loans from the lending pool using collateral or reputation, with automatic USDC pool selection. Requires an API key.
Instructions
Borrow tokens from the LendingPool with reputation-based collateral. Auto-selects the USDC pool. Requires api_key.
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": {
"agent_id": "<agent_id>",
"api_key": "<api_key>",
"amount": "<amount>",
"collateral_token": "<collateral_token>",
"collateral_amount": "<collateral_amount>"
},
"name": "borrow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to borrow | |
| api_key | Yes | Your api_key from register_agent | |
| urgency | No | Urgency level 1-10 (adds interest premium) | |
| agent_id | Yes | UUID of the borrowing agent | |
| collateral_token | Yes | Token symbol for collateral: WMATIC or WETH | |
| collateral_amount | Yes | Amount of collateral to deposit |