DEFI_COPILOT
Tools

MCP Tools

13 tools available via MCP. Two require x402 payment; the rest are free. All tools interact with Stellar mainnet data regardless of payment network.

QUICK REFERENCE — 13 TOOLS
get_best_yield0.001 USDC
get_best_swap0.001 USDC
execute_swapFREE
deposit_blendFREE
withdraw_blendFREE
get_blend_positionFREE
transferFREE
get_market_dataFREE
get_agent_walletFREE
fund_walletFREE
set_networkFREE
get_transaction_historyFREE
get_api_infoFREE

get_best_yield

0.001 USDC

Returns the best yield strategy for a given asset. Fetches live APY from Blend Finance smart contracts via Soroban RPC.

ParameterTypeDefaultDescription
assetstringUSDCAsset to find yield for. USDC or XLM.
amountnumber1000Amount to deposit.

get_best_swap

0.001 USDC

Returns the optimal swap route by comparing quotes from SDEX Orderbook, Stellar DEX pathfinder, and AMM pools.

ParameterTypeDefaultDescription
fromstringXLMSource asset ticker.
tostringUSDCTarget asset ticker.
amountnumber100Amount of source asset.

execute_swap

FREE

Executes a real swap on the Stellar DEX using the agent wallet. Signs and submits the transaction on-chain.

ParameterTypeDefaultDescription
fromstringXLMSource asset.
tostringUSDCTarget asset.
amountnumberAmount to swap.
confirmedbooleanfalseSet true to confirm execution.

deposit_blend

FREE

Deposits USDC into Blend Finance Fixed V2 pool to earn yield. Mainnet only.

ParameterTypeDefaultDescription
amountnumberAmount of USDC to deposit.
confirmedbooleanfalseSet true to confirm.

withdraw_blend

FREE

Withdraws USDC plus accrued interest from Blend Finance. Mainnet only.

ParameterTypeDefaultDescription
amountnumberAmount to withdraw (or 'all').
confirmedbooleanfalseSet true to confirm.

get_blend_position

FREE

Returns current Blend Finance deposit balance, accrued interest, and current APY for the agent wallet.

transfer

FREE

Sends XLM or USDC to any Stellar address from the agent wallet.

ParameterTypeDefaultDescription
assetstringXLMAsset to send. XLM or USDC.
tostringDestination Stellar address.
amountnumberAmount to send.
confirmedbooleanfalseSet true to confirm.

get_market_data

FREE

Returns live XLM price, 24h volume, orderbook spread, and trade data from Stellar mainnet Horizon.

get_agent_wallet

FREE

Returns the agent wallet public key, USDC balance, XLM balance, and network. Creates wallet on first call.

fund_wallet

FREE

Returns the agent wallet address and a QR code URL for manual funding. On testnet, auto-funds via Friendbot.

set_network

FREE

Switches between testnet and mainnet for the current session.

ParameterTypeDefaultDescription
networkstringtestnettestnet or mainnet.

get_transaction_history

FREE

Returns recent transaction history for the agent wallet from Stellar Horizon.

ParameterTypeDefaultDescription
limitnumber10Number of transactions to return.

get_api_info

FREE

Returns API version, available endpoints, pricing, and backend URL.