Skip to main content
Glama
arcadia-finance

arcadia-finance-mcp-server

write.account.deleverage

Sell account collateral to repay debt in one atomic transaction while keeping positions active. Use this tool for standalone repayment without closing positions.

Instructions

Multi-step flash-action: sells account collateral to the debt token and repays in one atomic transaction — no wallet tokens needed. To repay from wallet tokens instead, use write.account.repay. NOTE: If you are closing a position (remove LP + swap + repay + withdraw), prefer write.account.close which batches everything atomically. Only use this tool for standalone repayment while keeping the position active. The returned calldata is time-sensitive — sign and broadcast within 30 seconds. If the transaction reverts due to price movement, rebuild and sign again immediately (retry at least once before giving up). Response includes tenderly_sim_url and tenderly_sim_status for pre-broadcast validation — if tenderly_sim_status is 'false', do NOT broadcast the transaction.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_addressYesArcadia account address
amount_inYesCollateral amount to sell (raw units)
asset_fromYesCollateral token to sell
numeraireYesDebt token address
creditorYesLending pool address
slippageNoBasis points, 100 = 1%
chain_idNoChain ID: 8453 (Base) or 130 (Unichain)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/arcadia-finance/arcadia-finance-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server