๐Ÿ”ง MCP Tools (8)
For AI Agents

MCP Tools (8)

Complete reference for all 8 tools exposed by the VAEA MCP server. 6 are read-only (Eyes), 2 build transactions (Hands).

vaea_get_capacity๐Ÿ‘๏ธ Eyes

Get available flash loan liquidity across all protocols.

ParameterTypeDescription
tokenstring (optional)Filter by symbol. Omit for all tokens.
Returns: Available amount, USD value, fee schedule, source protocol, and status per token.
{"token": "SOL"} โ†’ 245,000 SOL available, $36.7M USD, 2.1 bps total

vaea_get_quote๐Ÿ‘๏ธ Eyes

Get a fee quote for a specific borrow.

ParameterTypeDescription
tokenstringToken symbol (SOL, USDC, mSOL...)
amountnumberAmount to borrow
Returns: Protocol fee, VAEA fee, total cost in bps, route type.
{"token": "SOL", "amount": 1000} โ†’ 2.1 bps total, Marginfi, direct route

vaea_find_best_route๐Ÿ‘๏ธ Eyes

Find the optimal protocol and route for a flash loan.

ParameterTypeDescription
tokenstringToken symbol
amountnumberAmount to borrow
Returns: Best protocol, confidence score, fee breakdown, alternatives evaluated.
{"token": "SOL", "amount": 1000} โ†’ Marginfi (0.95 confidence), 5 routes evaluated

vaea_check_profitability๐Ÿ‘๏ธ Eyes

Check if a flash loan strategy is profitable after all costs.

ParameterTypeDescription
tokenstringToken symbol
amountnumberAmount
expected_revenuenumberExpected profit
gas_estimatenumber (opt)Gas in SOL
Returns: Net profit, recommendation (send/wait/abort), cost breakdown.
{"token": "SOL", "amount": 1000, "expected_revenue": 0.5} โ†’ net: 0.29 SOL, send

vaea_get_protocol_status๐Ÿ‘๏ธ Eyes

Check health of lending protocols.

Returns: Status (active/paused/degraded), token count per protocol.
โ†’ Marginfi: active (143 banks), Kamino: active (51 reserves), JupLend: active (39)

vaea_get_liquidity_matrix๐Ÿ‘๏ธ Eyes

Full liquidity breakdown per token per protocol.

ParameterTypeDescription
tokenstring (optional)Filter by symbol
Returns: Amount available per protocol for each token.
{"token": "SOL"} โ†’ Marginfi: 120K, Kamino: 85K, JupLend: 40K

vaea_build_flash_loan๐Ÿคฒ Hands

Build an unsigned flash loan transaction.

ParameterTypeDescription
tokenstringToken symbol
amountnumberAmount
user_pubkeystringWallet address
Returns: Serialized transaction (base64), protocol used, fee, _agent_hint for logic insertion.
{"token": "SOL", "amount": 1000, "user_pubkey": "..."} โ†’ base64 TX

vaea_build_sandwich๐Ÿคฒ Hands

Build a multi-token sandwich transaction.

ParameterTypeDescription
tokensarray[{token, amount}]
user_pubkeystringWallet address
Returns: Serialized nested sandwich TX, with _agent_hint for each layer.
{"tokens": [{"token":"SOL","amount":1000},{"token":"USDC","amount":50000}]}
โ„น๏ธ Note
Both the TypeScript and Rust MCP servers expose the exact same 8 tools with identical names, parameters, and response formats.