swap_bot_in_fund
Swap one bot for another in a fund's roster.
Closes the old bot's positions and opens new ones for the replacement.
Incurs friction cost — use estimate_swap_cost first.
Args:
fund_id: The fund's ID.
old_bot_id: The bot to remove.
new_bot_id: The bot to add in its place.
new_bot_domain: The new bot's domain (e.g. "eth_usdc").
weight: Allocation weight for the new bot (defaults to old bot's weight).
reason: Optional reason for the swap.
Returns the updated roster entry and friction estimate.
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": {
"fund_id": "<fund_id>",
"old_bot_id": "<old_bot_id>",
"new_bot_id": "<new_bot_id>",
"new_bot_domain": "<new_bot_domain>"
},
"name": "swap_bot_in_fund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| weight | No | ||
| fund_id | Yes | ||
| new_bot_id | Yes | ||
| old_bot_id | Yes | ||
| new_bot_domain | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |