mcp-server
v0.5.0AgentFi MCP Server — crypto transaction tools for AI agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_wallet_info
Returns the agent's wallet address and current token balances across chains. Call this to know how much ETH, USDC, USDT, DAI, WETH the agent holds before executing transactions.
| Parameter | Type | Description |
|---|---|---|
chain_id | number | Chain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 137=Polygon). Omit for all chains. |
get_token_price
Returns the current USD price of a token. Use this before swaps to understand value.
| Parameter | Type | Description |
|---|---|---|
token_symbol * | string | Token symbol (e.g. "ETH", "USDC", "WBTC") or contract address. |
chain_id | number | Chain ID where the token exists. |
simulate_swap
Simulates a token swap via Uniswap V3 and returns the expected output, price impact, and gas estimate. ALWAYS call this before execute_swap to verify the trade is viable. Returns a simulation_id that must be passed to execute_swap.
| Parameter | Type | Description |
|---|---|---|
amount_in * | string | Amount to sell in human-readable units. Example: "1.5" for 1.5 ETH. |
from_token * | string | Token to sell. Use symbol (ETH, USDC, WBTC) or contract address. |
to_token * | string | Token to buy. Use symbol or contract address. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
slippage_tolerance | number | Max slippage tolerance in percentage. Example: 0.5 = 0.5%. |
execute_swap
Executes a token swap via Uniswap V3. You MUST call simulate_swap first and pass the returned simulation_id here. Returns a transaction_id to track the status with get_transaction_status.
| Parameter | Type | Description |
|---|---|---|
amount_in * | string | Amount to sell. Must match simulate_swap call. |
from_token * | string | Token to sell. Must match simulate_swap call. |
simulation_id * | string | The simulation_id returned by simulate_swap. Required for safety. |
to_token * | string | Token to buy. Must match simulate_swap call. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
slippage_tolerance | number | Max slippage tolerance in percentage. Example: 0.5 = 0.5%. |
transfer_token
Transfers ETH or an ERC-20 token to any Ethereum address. Use "ETH" as the token identifier to send native ETH, or provide a contract address for ERC-20.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount in human-readable units. Example: "100" for 100 USDC. |
to * | string | Destination Ethereum address (checksummed). |
token * | string | Token to transfer. Use "ETH" for native ETH, or the ERC-20 contract address. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
deposit_aave
Supplies an asset to Aave V3 lending protocol to earn yield. The supplied amount earns the current supply APY and can be withdrawn at any time. Call get_defi_rates first to check current rates.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to supply in human-readable units. |
asset * | string | ERC-20 token address to supply. Common: USDC, DAI, WETH contract addresses. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
withdraw_aave
Withdraws a previously supplied asset from Aave V3. Pass "max" as the amount to withdraw your entire position.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to withdraw. Use "max" to withdraw entire position. |
asset * | string | ERC-20 token address to withdraw. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
supply_compound
Supplies an asset to Compound V3 (Comet USDC market) to earn yield. Each Compound V3 market is single-asset; the USDC market accepts USDC as the base asset plus whitelisted collateral (e.g. WETH, WBTC). Available on Mainnet, Base, Arbitrum, Polygon.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to supply in human-readable units. |
asset * | string | ERC-20 token address to supply. Use USDC for the base asset, or a supported collateral. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
withdraw_compound
Withdraws a previously supplied asset from Compound V3 (Comet USDC market). Pass "max" as the amount to withdraw your entire balance.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to withdraw. Use "max" to withdraw entire balance. |
asset * | string | ERC-20 token address to withdraw. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
deposit_erc4626
Deposits an asset into any ERC-4626 compliant vault (Yearn, Morpho, Beefy, etc.). The vault address is supplied by the caller — no pre-registration needed. Useful for any yield strategy that follows the tokenized-vault standard.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount of underlying asset to deposit, in human-readable units. |
asset * | string | Underlying ERC-20 token address (for decimals + USD pricing). |
vault * | string | ERC-4626 vault contract address to deposit into. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
withdraw_erc4626
Withdraws assets from any ERC-4626 compliant vault. Use "max" to attempt a full withdrawal (vault may still limit to available liquidity).
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to withdraw. Use "max" for the full balance. |
asset * | string | Underlying ERC-20 token address. |
vault * | string | ERC-4626 vault contract address to withdraw from. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
swap_curve
Swaps between two assets on a Curve StableSwap pool. Ideal for stablecoin-to-stablecoin conversions (USDC↔USDT↔DAI) with minimal slippage. The caller must supply the pool address and the indices of the input/output tokens within that pool. Assumes fromToken has already been approved to the pool; simulation will fail clearly if approval is missing.
| Parameter | Type | Description |
|---|---|---|
amount_in * | string | Amount of input token in human-readable units. |
from_token_address * | string | ERC-20 address of the input token. |
from_token_index * | number | Index (0, 1, 2, ...) of the input token within the pool. |
min_amount_out * | string | Minimum acceptable amount of output token (slippage protection). |
pool * | string | Curve pool contract address. |
to_token_address * | string | ERC-20 address of the output token. |
to_token_index * | number | Index of the output token within the pool. |
chain_id | number | Chain ID. Default: 1 (Ethereum mainnet). |
get_defi_rates
Returns current supply and borrow APY rates for major assets on Aave V3. Use this to decide where to deploy capital for yield.
| Parameter | Type | Description |
|---|---|---|
chain_id | number | Chain ID to fetch rates for. |
list_gmx_markets
Lists available GMX V2 perpetual markets on Arbitrum. Returns market labels and token addresses. Use this to discover which markets are available before opening positions.
open_gmx_position
Opens a leveraged perpetual position on GMX V2 (Arbitrum). Creates a MarketIncrease order that is executed by a GMX keeper after oracle price update. Specify the market (e.g. "ETH/USD"), collateral amount, position size in USD, and direction (long/short). Returns a transaction ID to track with get_transaction_status.
| Parameter | Type | Description |
|---|---|---|
acceptable_price * | string | Max acceptable execution price with 30 decimals. For longs, set above current price. For shorts, set below. Example: use a 1% buffer above/below market price. |
collateral_amount * | string | Collateral amount in human-readable units. Example: "0.5" for 0.5 WETH. |
collateral_token * | string | Collateral token address. Use WETH for ETH-collateralized positions. |
is_long * | boolean | true to go long (price goes up = profit), false to go short. |
market * | string | Market label (e.g. "ETH/USD", "BTC/USD") or market token address. |
size_delta_usd * | string | Position size in USD with 30 decimals (GMX precision). Example: "1000000000000000000000000000000000" for $1000. Tip: multiply desired USD amount by 10^30. |
chain_id | number | Chain ID. Default: 42161 (Arbitrum One). |
close_gmx_position
Closes (fully or partially) a perpetual position on GMX V2 (Arbitrum). Creates a MarketDecrease order. Specify the market, collateral token, size to close, and direction. Use the full position size in size_delta_usd for a complete close.
| Parameter | Type | Description |
|---|---|---|
acceptable_price * | string | Min acceptable price for longs, max for shorts (30 decimals). Set with a buffer to avoid keeper rejection. |
collateral_token * | string | Collateral token of the existing position. |
is_long * | boolean | true if closing a long position, false for short. |
market * | string | Market label (e.g. "ETH/USD") or market token address. |
size_delta_usd * | string | Size to close in USD with 30 decimals. Use full position size for complete close. |
chain_id | number | Chain ID. Default: 42161 (Arbitrum One). |
get_transaction_status
Returns the current status of a submitted transaction. Poll this after execute_swap, transfer_token, deposit_aave, or withdraw_aave. Status values: PENDING, SIMULATING, QUEUED, SUBMITTED, CONFIRMED, FAILED, REVERTED.
| Parameter | Type | Description |
|---|---|---|
transaction_id * | string | The transaction_id returned by execute_swap or other transaction tools. |
get_policy
Returns the current operational limits and restrictions for this agent. Check this to understand what transactions are allowed before attempting them.
get_my_agent_profile
Fetches this AgentFi agent profile using the configured API key. Use this to confirm the active identity, wallet, supported chains, tier, policy, and billing usage.
get_my_pnl
Fetches this agent's profit and loss breakdown. Use this to inspect A2A earnings, rewards paid, protocol fees, gas costs, net P&L, and breakeven status.
| Parameter | Type | Description |
|---|---|---|
since | string | Optional ISO timestamp for the beginning of the P&L period. |
search_agents
Finds other agents by name or wallet address. Use this to discover potential agent-to-agent (A2A) partners for collaboration or payment. Returns a list of agents with their safeAddress and active chains.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (name or address) |
pay_agent
Constructs and executes a direct payment to another agent. Use this to pay for services, data, or compute provided by another AI agent.
| Parameter | Type | Description |
|---|---|---|
amount * | string | Amount to pay in human-readable units (e.g. "0.01"). |
reason * | string | The logical reason for this payment (for auditability). |
recipient_address * | string | The safeAddress of the recipient agent. |
chain_id | number | Chain ID for the payment. |
token_symbol | string | Token to pay with (ETH, USDC, etc.). |
update_policy
Updates the agent's own operational policy. The change applies IMMEDIATELY — there is no operator approval step. The operator can audit and revert via the admin panel. Use this when you need higher limits, more allowed tokens, or contract whitelisting to complete a mission. Provide a `reason` for audit — it is logged but does not gate the change.
| Parameter | Type | Description |
|---|---|---|
reason * | string | Justification for the change — recorded in audit log, does not gate the write. |
allowed_contracts | array | New contracts to add to whitelist. |
allowed_tokens | array | New tokens to add to whitelist. |
max_value_per_tx_eth | string | New max ETH per transaction. |
set_my_manifest
Sets the agent's service manifest. Use this to broadcast your capabilities to other agents (e.g., "I provide risk analysis", "I offer liquidity data"). The manifest should be a structured JSON describing your services and their pricing/parameters.
| Parameter | Type | Description |
|---|---|---|
manifest * | string | JSON object describing provided services, tools, and pricing. |
get_agent_manifest
Fetches the service manifest of another agent by their ID. Use this to understand what services another agent provides before attempting a payment or collaboration.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | The ID of the agent to query. |
get_agent_trust_report
Fetches the reputation and trust metrics of another agent. Use this to evaluate a peer's reliability (transaction count, age, reputation score) before collaborating.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | The ID of the agent to evaluate. |
sign_handshake
Signs a message with your agent wallet. Use this to prove your identity to other agents or to sign a service agreement/handshake.
| Parameter | Type | Description |
|---|---|---|
message * | string | The message or agreement text to sign. |
verify_handshake
Verifies a signature provided by another agent. Use this to confirm that a peer truly controls the wallet address they claim to represent.
| Parameter | Type | Description |
|---|---|---|
address * | string | The claimed safeAddress of the peer. |
message * | string | The original message that was signed. |
signature * | string | The signature hex string provided by the peer. |
post_job
Submits a service request (job) to another agent. Use this to delegate tasks defined in the provider's manifest. You should sign the payload before posting.
| Parameter | Type | Description |
|---|---|---|
payload * | string | The task details (e.g., input data, command). |
provider_id * | string | The ID of the agent you are hiring. |
reward_amount | string | Amount you agree to pay upon completion. |
reward_token | string | Token for the reward. |
signature | string | Your signature of the payload (use sign_handshake). |
check_inbox
Checks for new service requests (jobs) assigned to you by other agents. Returns a list of PENDING and ACCEPTED jobs.
update_job_status
Updates the status of a job (Accept, Complete, Fail). Use this to manage your workflow as a service provider.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | The ID of the job to update. |
status * | string | The new status. |
result | string | The output or proof of work (if completed). |