Plugin Tools
Every VAEA plugin (Agent Kit, GOAT, MCP) exposes 5 core tools. Here's what each one does, with examples.
vaea_check_capacity ๐๏ธ Read-only
Discover available flash loan liquidity. Returns all tokens or filter by symbol. Always call this first to know what's available.
Agent prompt: "What tokens can I flash borrow?" ยท "How much SOL is available?" ยท "Show me flash loan liquidity"
vaea_get_quote ๐๏ธ Read-only
Get the exact fee breakdown before borrowing. Shows protocol fee + VAEA fee + total cost.
Agent prompt: "How much would it cost to borrow 1000 SOL?" ยท "What's the fee for a 5000 USDC flash loan?"
vaea_find_best_route ๐๏ธ Read-only
Compare all protocols and find the cheapest source. Returns ranked candidates.
Agent prompt: "Find the cheapest flash loan for 5000 USDC" ยท "Compare routes for 100 SOL"
vaea_check_profitability ๐๏ธ Read-only
Verify a strategy is profitable after all costs โ VAEA fee, network fee, Jito tip. The agent should call this before building a TX.
Agent prompt: "Is this arb profitable?" ยท "Check if borrowing 1000 SOL for 0.5 SOL revenue makes sense"
vaea_build_flash_loan ๐ง Build
Build the atomic flash loan transaction. Returns prefix and suffix instructions that wrap the agent's custom logic. The agent inserts its swap/arb/liquidation instructions between them.
Agent prompt: "Build a 1000 SOL flash loan for my wallet" ยท "Create a flash loan transaction"
Summary
| Tool | Type | Input | Output |
|---|---|---|---|
| vaea_check_capacity | ๐๏ธ | token? (optional) | Available liquidity per token |
| vaea_get_quote | ๐๏ธ | token, amount | Fee breakdown |
| vaea_find_best_route | ๐๏ธ | token, amount | Ranked protocol routes |
| vaea_check_profitability | ๐๏ธ | token, amount, revenue, tip | Profit/loss verdict |
| vaea_build_flash_loan | ๐ง | token, amount, pubkey | Unsigned TX instructions |