{
  "server": "aave",
  "url": "https://mcp.aave.com",
  "date": "2026-09-03",
  "protocolVersion": "2026-07-28",
  "serverInfo": {
    "name": "aave-mcp",
    "title": "Aave",
    "version": "1.0.0",
    "icons": [
      {
        "src": "https://aave.com/images/icon-aave.png",
        "mimeType": "image/png",
        "sizes": [
          "84x84"
        ]
      }
    ]
  },
  "listChangedDeclared": false,
  "toolCount": 40,
  "outputSchemaCoveragePct": 0,
  "tools": [
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "No version argument. Cancel an open order. Two routes: pass 'signature' (signed over what prepare_cancel_order returned) to relay a gasless cancellation - state-changing, and the route an intent order takes; omit 'signature' entirely for the on-chain route, which returns the cancel transaction for the user to sign and send, the route an order that went on chain (a native-token sell) takes. The server never signs.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "orderId": {
            "description": "The order id (from submit_signed_order's receipt, get_order_status or get_pending_orders).",
            "type": "string"
          },
          "signature": {
            "description": "The user's cancellation signature (0x...) over prepare_cancel_order's typed data. Omit the argument entirely to get the on-chain cancel transaction instead.",
            "type": "string"
          }
        },
        "required": [
          "orderId"
        ],
        "type": "object"
      },
      "name": "cancel_order",
      "title": "Cancel an order"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Applies to both versions. Protocol and usage guidance for building Aave flows correctly. Read the relevant topic before constructing an action. Topics: overview, v4, v3, positions, health-factor, risks, ids, amounts, prices, signing, swaps, gho, governance, rewards, tools, docs. Also the place to come when no tool seems to fit what you were asked for: send 'lookingFor' and this answers with the full capability list rather than leaving you to guess from tool names. For deep protocol docs, point the user to https://docs.aave.com.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "lookingFor": {
            "description": "Send this when you looked for a tool to do something and did not find one, or when a flow dead-ended: describe what you were trying to do, in a few words. It returns the full capability list so you can check whether it exists under a name you did not guess, and records the gap when it does not. Omit the argument entirely when you already know which topic you want.",
            "type": "string"
          },
          "topic": {
            "description": "Guide topic (default overview). Read 'v3' or 'v4' before building an action on that version.",
            "enum": [
              "overview",
              "v4",
              "v3",
              "positions",
              "health-factor",
              "risks",
              "ids",
              "amounts",
              "prices",
              "signing",
              "swaps",
              "gho",
              "governance",
              "rewards",
              "tools",
              "docs"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_aave_guide",
      "title": "Aave protocol \u0026 usage guide"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Historical supply or borrow APY for a reserve over time, on v3 or v4. Returns a time-series of {date, apyPct}, where apyPct is a percent ('3.32' means 3.32%). Each point is an average over its sampling interval, and the interval widens with the window (hourly for 'day', coarser above that), so a series is not directly comparable to the instantaneous rate from get_reserve_details. Use get_markets first for the reserveId (v4) or market+token (v3). When comparing v3 against v4 for the same asset (a migration decision), read the history on both sides: a spot-rate gap can be one side's momentary spike.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "v3 only: chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "market": {
            "description": "v3 only: market pool address (from get_markets).",
            "type": "string"
          },
          "reserve": {
            "description": "v4 only: reserveId (from get_markets).",
            "type": "string"
          },
          "side": {
            "description": "Which rate (default supply).",
            "enum": [
              "supply",
              "borrow"
            ],
            "type": "string"
          },
          "token": {
            "description": "v3 only: underlying token address.",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (v3 or v4; required).",
            "enum": [
              "v3",
              "v4"
            ],
            "type": "string"
          },
          "window": {
            "description": "Time window (default week).",
            "enum": [
              "day",
              "week",
              "month",
              "sixMonths",
              "year"
            ],
            "type": "string"
          }
        },
        "required": [
          "version"
        ],
        "type": "object"
      },
      "name": "get_apy_history",
      "title": "Get APY history"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "List chains Aave supports, on v3, v4, or both. A chain carrying 'notServed': true is one this API holds no market on: every market, position and rewards read comes back empty for it, and that emptiness says nothing about the chain itself. Its gateway addresses read 0x0 for the same reason, so do not send a transaction to one. Every chain without the flag has markets to read.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "version": {
            "description": "Protocol version (default all).",
            "enum": [
              "v3",
              "v4",
              "all"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_chains",
      "title": "Get supported chains"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v3 only. eMode groups correlated assets (ETH-correlated, stablecoins) so they borrow against each other at a higher LTV, raising borrowing power at the cost of restricting which assets the position may hold. Returns each market's categories with the 'categoryId' that prepare_set_emode takes, its LTV and liquidation thresholds, and which symbols are in it. Narrow with 'symbols' (e.g. ['USDC']) to get just the categories that asset is in - unfiltered this is every category on every chain. Markets with no matching category are left out entirely. v4 has no eMode: it replaces it with risk premium and dynamic config.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "symbols": {
            "description": "Optional token symbols to return, e.g. ['USDC','GHO']. Case-insensitive. Strongly preferred when you know the asset: a chain has ~70 reserves and listing them all is a large response.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "name": "get_emode_categories",
      "title": "Get v3 eMode categories"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Takes no 'version' argument (DAO governance is not per-market; Governance V3 is unrelated to Aave v3/v4 markets). Full detail for one Aave DAO governance proposal: state, author, vote tallies, quorum, timings and the transaction hash of each lifecycle step. 'quorumMet' and 'differentialMet' are the two conditions a proposal must meet to pass. Vote tallies and quorum are both in AAVE, so they compare directly. The long IPFS write-up is omitted unless includeDescription is true.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "includeDescription": {
            "description": "Include the full proposal markdown from IPFS (default false). It runs to many KB; the short description is always returned.",
            "type": "boolean"
          },
          "proposalId": {
            "description": "Proposal id as a decimal string, e.g. '508'. From search_governance_proposals.",
            "type": "string"
          }
        },
        "required": [
          "proposalId"
        ],
        "type": "object"
      },
      "name": "get_governance_proposal",
      "title": "Get an Aave DAO proposal"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v4 only. The assets held by one Aave v4 hub, with hub-wide supplied and borrowed totals, rates and utilisation. Get hubId from get_hubs (or the hubAddress on get_reserve_details). This is hub-level accounting; for what a user can actually supply or borrow, use get_markets, which is per spoke.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "hubId": {
            "description": "hubId from get_hubs.",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v4': this tool exists on v4 only.",
            "enum": [
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "hubId"
        ],
        "type": "object"
      },
      "name": "get_hub_assets",
      "title": "Get the assets a v4 hub carries"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v4 only. Aave v4 hubs: a hub holds the liquidity and global accounting that user-facing spokes draw from. Returns each hub's hubId, address, chain and totals. Pass a hubId to get_hub_assets for the assets it carries. Omit chainId to cover every supported v4 chain.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "version": {
            "description": "Optional, and only 'v4': this tool exists on v4 only.",
            "enum": [
              "v4"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_hubs",
      "title": "Get v4 hubs"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "List Aave markets/reserves (symbol, APY, caps, liquidity) on v3, v4, or both. Chain coverage: omit chainId and every response states the chains it read as 'chainsCovered', plus 'chainsNotCovered' when it read fewer than all of them. 'chainsNotServed', when present, lists chains this API holds no market on: Aave supports the chain, there is nothing here to read, so an empty result for one of them is not an answer about that chain, and asking again returns the same nothing. v4 always covers every chain it serves; v3 covers every chain when you pass 'symbols' and Ethereum alone when you do not, because an unfiltered 21-chain listing is hundreds of kilobytes. So to compare one asset across chains, pass symbols and no chainId. Every rate is a percent ('3.32' means 3.32%), named with a Pct suffix. Do not rank on APY alone: 'suppliable'/'borrowable' (v4), 'availableLiquidity' and 'totalSuppliedUsd' (v3) say whether a rate can actually be entered, and isFrozen / isPaused / supplyCapReached / borrowCapReached appear only when set, so a reserve with none of them is not flagged. Both versions return one row per reserve under 'reserves', carrying supplyApyPct and borrowApyPct together plus canSupply / canBorrow for the sides that are actually open, so the two versions read the same way. On v4 one asset appears once per spoke, so rows are labelled with 'spoke' and 'hub'; spokes sharing a hub share its rate, so identical APYs across rows are expected rather than duplicates. 'canSwapFrom' (v4) says whether that token can be the sell side of a token swap, which is the per-reserve form of what get_swappable_tokens answers per chain.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "symbols": {
            "description": "Optional token symbols to return, e.g. ['USDC','GHO']. Case-insensitive. Strongly preferred when you know the asset: a chain has ~70 reserves and listing them all is a large response.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user": {
            "description": "Optional wallet address (0x, 40 hex). Adds walletBalance, youCanSupply and youCanBorrow to every row, for this wallet, in the same call. Pass it whenever the question is about what someone can actually do rather than what the rates are.",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (default all).",
            "enum": [
              "v3",
              "v4",
              "all"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_markets",
      "title": "Get markets / reserves"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "No version argument. Status of an order by id: open, pending signature, fulfilled, cancelled or expired, with the operation it performs and an explorer link. 'order' comes back null when the API cannot see that id, which a wrong id and a just-submitted order both produce - poll again briefly before concluding.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "orderId": {
            "description": "The order id.",
            "type": "string"
          }
        },
        "required": [
          "orderId"
        ],
        "type": "object"
      },
      "name": "get_order_status",
      "title": "Get order status"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "No version argument: orders run on the v4 backend, so this covers the chains that backend serves and names them under 'chainsCovered'; a chain under 'chainsNotCovered' could not be read and is worth asking about again. A wallet's orders, newest first. Despite the name it returns every status unless 'statuses' narrows it - pass ['open','pending_signature'] for what is still actionable. Each chain returns its newest 50 orders; 'more: true' on a chain means older history exists beyond what was returned. Use this to recover an orderId you no longer have.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainIds": {
            "description": "Optional: chain ids to read. Omit the argument entirely to sweep every chain the backend serves.",
            "items": {
              "type": "number"
            },
            "type": "array"
          },
          "statuses": {
            "description": "Optional: statuses to keep. Omit the argument entirely for all of them.",
            "items": {
              "description": "Order status.",
              "enum": [
                "open",
                "pending_signature",
                "fulfilled",
                "cancelled",
                "expired"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "get_pending_orders",
      "title": "List a wallet's orders"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v4 only. The individual supplies or borrows inside one v4 spoke: principal, accrued interest and what is withdrawable right now, per item, which the per-spoke aggregate from get_user_positions cannot show. Get 'spokeId' from get_user_positions.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "side": {
            "description": "Which side to list (default supply).",
            "enum": [
              "supply",
              "borrow"
            ],
            "type": "string"
          },
          "spokeId": {
            "description": "spokeId from get_user_positions (not the spoke address).",
            "type": "string"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v4': this tool exists on v4 only.",
            "enum": [
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "user",
          "spokeId"
        ],
        "type": "object"
      },
      "name": "get_position_items",
      "title": "Get individual position items (v4)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Takes no 'version' argument (DAO governance is not per-market; Governance V3 is unrelated to Aave v3/v4 markets). What an Aave DAO proposal actually executes: one payload per target chain, each with its execution state, timelock delay, grace period and the contract calls it makes. Use this to tell whether a passed proposal has landed on every chain yet: a proposal can be 'executed' on mainnet while a payload is still 'queued' elsewhere.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "proposalId": {
            "description": "Proposal id as a decimal string, e.g. '508'. From search_governance_proposals.",
            "type": "string"
          }
        },
        "required": [
          "proposalId"
        ],
        "type": "object"
      },
      "name": "get_proposal_payloads",
      "title": "Get a proposal's payloads"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Takes no 'version' argument (DAO governance is not per-market; Governance V3 is unrelated to Aave v3/v4 markets). Who voted on an Aave DAO proposal and with how much power, largest voter first. Pass support=true or false to list only one side. 'totals' covers every vote on the proposal, not just the page returned. Voting power is in AAVE.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "limit": {
            "description": "Max rows to return (1-100, default 20).",
            "type": "number"
          },
          "offset": {
            "description": "Rows to skip, for paging (default 0).",
            "type": "number"
          },
          "proposalId": {
            "description": "Proposal id as a decimal string, e.g. '508'. From search_governance_proposals.",
            "type": "string"
          },
          "support": {
            "description": "Filter to one side: true for votes in favour, false for against. Omit for both.",
            "type": "boolean"
          }
        },
        "required": [
          "proposalId"
        ],
        "type": "object"
      },
      "name": "get_proposal_votes",
      "title": "Get votes on a proposal"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v4 only. Aave v4 protocol-wide history: market size, total borrows and available liquidity per sample over a window. Omit chainId to cover every supported v4 chain. Use this for 'is the protocol growing', not for one wallet (get_user_summary_history) or one reserve (get_apy_history).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "version": {
            "description": "Optional, and only 'v4': this tool exists on v4 only.",
            "enum": [
              "v4"
            ],
            "type": "string"
          },
          "window": {
            "description": "Time window (default week).",
            "enum": [
              "day",
              "week",
              "month",
              "sixMonths",
              "year"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_protocol_history",
      "title": "Protocol totals over time (v4)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Deep detail for a single reserve (rates, caps, risk parameters, utilisation, the interest-rate curve, token addresses) on v3 or v4. Every rate and percentage is a percent ('3.32' means 3.32%), named with a Pct suffix. On v4, utilisation and the rate curve are hub-wide, shared by every spoke drawing on the asset. Two v4 fields whose meaning the numbers do not give away: 'collateralFactorPct' is the liquidation boundary itself, because v4 has no separate liquidation threshold - do not look for one - so a position drawn to its full borrow limit sits at health factor 1.0; and 'liquidityFeePct' is the protocol's share of borrower interest, already netted out of supplyApyPct, so treating it as a user cost double-counts it (supplyApy = borrowApy x utilisation x (1 - liquidityFee), if you want to check). Use get_markets first to get the reserveId (v4) or market+token (v3).",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "v3 only: chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "market": {
            "description": "v3 only: market pool address (from get_markets).",
            "type": "string"
          },
          "reserve": {
            "description": "v4 only: reserveId (from get_markets).",
            "type": "string"
          },
          "token": {
            "description": "v3 only: underlying token address.",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (v3 or v4; required).",
            "enum": [
              "v3",
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "version"
        ],
        "type": "object"
      },
      "name": "get_reserve_details",
      "title": "Get reserve details"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v3 only, Ethereum only. Convert between GHO and sGHO shares at the vault's current index, without building anything. Which unit 'amount' is in depends on the action: 'deposit' takes GHO and returns the shares it would mint; 'withdraw' takes sGHO SHARES and returns the GHO they would return. Call this with action 'withdraw' before prepare_sgho_action, because that withdrawal is denominated in shares and not in GHO - passing a GHO figure there withdraws the wrong amount. When quoting what a user-named amount converts to, use this preview rather than multiplying by the rate: the index moves.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "description": "'deposit' converts GHO to shares; 'withdraw' converts shares to GHO.",
            "enum": [
              "deposit",
              "withdraw"
            ],
            "type": "string"
          },
          "amount": {
            "description": "Amount in main units (e.g. '10.5'): GHO when action is 'deposit', sGHO shares when it is 'withdraw'.",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v3': this tool exists on v3 only.",
            "enum": [
              "v3"
            ],
            "type": "string"
          }
        },
        "required": [
          "action",
          "amount"
        ],
        "type": "object"
      },
      "name": "get_sgho_preview",
      "title": "Preview an sGHO deposit or withdrawal"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v3 only, Ethereum only. Savings GHO (sGHO) is an ERC-4626 vault that pays a target rate on deposited GHO. Returns the vault's targetRatePct, totalAssets, supplyCap and paused flag; pass 'user' to add that wallet's shares, their GHO value, its GHO wallet balance, and the maxDeposit / maxWithdraw the contract allows right now. Two things this rate is not: it is set by governance rather than by utilisation, so it does not move with borrowing demand, and it is not a lending position - sGHO earns yield but is not Aave collateral and cannot be borrowed against. Deposits and withdrawals are instant, with no cooldown.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "user": {
            "description": "Optional wallet address (0x, 40 hex) to include its position. Omit the argument entirely for vault state only.",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v3': this tool exists on v3 only.",
            "enum": [
              "v3"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "get_sgho_vault",
      "title": "Get the sGHO savings vault"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Applies to both versions. What this Aave server can do: the tool families, the ready-made prompts, and the guide topics. Call this when an Aave conversation opens with no specific request and answer from it, rather than guessing from tool names.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {},
        "type": "object"
      },
      "name": "get_started",
      "title": "What this connector can do"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "No version argument: token swaps are protocol-agnostic and run on the v4 backend, so the chains and tokens they cover are that backend's and not every chain Aave holds a market on - a chain it does not serve is rejected outright rather than quoted badly. Call get_swappable_tokens first if you do not already know the chain is covered, or read 'canSwapFrom' on the reserve from get_markets. Quote a token swap: returns the quote with a quoteId to prepare and sign through prepare_order.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "Amount in main units (of the sell token for kind=sell, the buy token for kind=buy).",
            "type": "string"
          },
          "buy": {
            "description": "Token to buy: 'native' for the chain's gas token, or an ERC-20 address (0x...).",
            "type": "string"
          },
          "chainId": {
            "description": "Chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "kind": {
            "description": "sell = spend an exact sell amount; buy = receive an exact buy amount. Default sell.",
            "enum": [
              "sell",
              "buy"
            ],
            "type": "string"
          },
          "sell": {
            "description": "Token to sell: 'native' for the chain's gas token, or an ERC-20 address (0x...).",
            "type": "string"
          },
          "slippagePct": {
            "description": "Optional max slippage as a percent string, e.g. '0.5' for 0.5%. Omit to accept the backend's suggestion, which moves with market conditions - set this to cap it.",
            "type": "string"
          },
          "user": {
            "description": "Wallet address (0x, 40 hex) of the wallet that will sign the swap - the one the user named in this session. If no wallet has been named, ask for it; never substitute a placeholder, which is rejected.",
            "type": "string"
          }
        },
        "required": [
          "chainId",
          "sell",
          "buy",
          "amount",
          "user"
        ],
        "type": "object"
      },
      "name": "get_swap_quote",
      "title": "Get a token swap quote"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "No version argument: token swaps are protocol-agnostic and run on the v4 backend, so they cover the chains that backend serves rather than every chain Aave has a market on. Call this before get_swap_quote to see where a swap can be quoted: with no arguments it sweeps the chains v4 serves and returns each one with how many tokens are swappable there, which is the cheap answer; pass 'chainIds' to get the actual token list, and to ask about a chain the sweep does not reach. A chain under 'chainsNotCovered' could not be read and is worth asking about again; a chain present with 0 swappable tokens answered, and the answer is that nothing can be swapped there. Per reserve, get_markets also returns 'canSwapFrom'.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainIds": {
            "description": "Optional: chain ids to list tokens for. Omit the argument entirely to get every chain with a count instead of a token list.",
            "items": {
              "type": "number"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "name": "get_swappable_tokens",
      "title": "Get swappable chains and tokens"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v4 only. After sending a transaction, ask whether the Aave API has processed it. Use this instead of sleeping or polling an RPC: the API lags the chain, and prepare_action will not issue a dependent follow-up (the supply after an approval, the withdraw after a repay) until it has caught up. Pass the txHash you sent plus the 'operations' array that came back on that transaction. Poll until processed is true, then continue.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "operations": {
            "description": "The 'operations' from the transaction the server built, e.g. ['SPOKE_SUPPLY'].",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "txHash": {
            "description": "Transaction hash you broadcast (0x...).",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v4': this tool exists on v4 only.",
            "enum": [
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "txHash",
          "operations"
        ],
        "type": "object"
      },
      "name": "get_transaction_processed",
      "title": "Has Aave seen my transaction yet?"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "A wallet's Aave transaction history (supply, borrow, repay, withdraw, collateral changes) on v3, v4, or both. Most recent first. v4 covers every chain; v3 reads one market on one chain at a time, because upstream paginates per market, so it states its scope as 'chainsCovered' and 'market' and you pass chainId to read another. Use get_user_positions, not this, to find out where a wallet holds anything.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "cursor": {
            "description": "Pagination cursor (pageInfo.next from a previous call). Requires an explicit version ('v3' or 'v4'): a cursor belongs to one version's feed.",
            "type": "string"
          },
          "market": {
            "description": "v3 only, optional: market pool address (defaults to the chain's main market).",
            "type": "string"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (default all).",
            "enum": [
              "v3",
              "v4",
              "all"
            ],
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "get_user_activity",
      "title": "Get user activity / transaction history"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "A wallet's Aave positions (supplies and borrows) on v3, v4, or both. Omit chainId and both versions cover every chain they serve, stating which under 'chainsCovered'; there is no need to loop over chains yourself. 'chainsNotServed', when present, lists chains this API holds no market on: Aave supports the chain, there is nothing here to read, so an empty result for one of them is not an answer about that chain, and asking again returns the same nothing. v4 returns 'positions', each with its own health factor; v3 returns 'supplies' and 'borrows'. These are Aave-side positions only: a wallet's own token balances are not here, and an empty result means nothing is supplied or borrowed rather than that the wallet is empty. For what it holds, pass 'user' to get_markets, which returns walletBalance per reserve.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (default all).",
            "enum": [
              "v3",
              "v4",
              "all"
            ],
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "get_user_positions",
      "title": "Get user positions"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "A wallet's claimable Aave rewards on v3, v4, or both. Covers incentive programmes distributed through Merit as well as the protocol's own, so a GHO or sGHO incentive shows up here rather than anywhere separate. Omit chainId and both versions cover every chain they serve, stating which under 'chainsCovered' and tagging each row with its own chainId. 'chainsNotServed', when present, lists chains this API holds no market on: Aave supports the chain, there is nothing here to read, so an empty result for one of them is not an answer about that chain, and asking again returns the same nothing. On v3 the response also carries the transaction that claims them.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (default all).",
            "enum": [
              "v3",
              "v4",
              "all"
            ],
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "get_user_rewards",
      "title": "Get user rewards"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "A wallet's aggregate position and health factor. Omit chainId and both versions cover every chain they serve, stating which under 'chainsCovered'; there is no need to loop over chains yourself. 'chainsNotServed', when present, lists chains this API holds no market on: Aave supports the chain, there is nothing here to read, so an empty result for one of them is not an answer about that chain, and asking again returns the same nothing. Ask for one of those chains on its own and the reply is the scope alone, with no totals: a zero would read as a real balance. v4 returns a cross-chain summary (lowest health factor, totals, net APY). v3 has no cross-market aggregate, so it returns one entry per market the wallet actually holds a position in, each with its own health factor; 'marketsWithPosition': 0 means the wallet holds no v3 position anywhere, not that the read was narrow or that the wallet is empty: token balances are not here. For what it holds, pass 'user' to get_markets, which returns walletBalance per reserve.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (default all).",
            "enum": [
              "v3",
              "v4",
              "all"
            ],
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "get_user_summary",
      "title": "Get user summary / health factor"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v4 only. How one wallet's net worth, supplied, debt and health factor moved over a window on Aave v4. Use it to answer 'how has my position changed' or to see how close to liquidation a wallet has been. Omit chainId to cover every supported v4 chain.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to restrict to, e.g. 1 for Ethereum. Omit the argument entirely to cover every chain.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v4': this tool exists on v4 only.",
            "enum": [
              "v4"
            ],
            "type": "string"
          },
          "window": {
            "description": "Time window (default week).",
            "enum": [
              "day",
              "week",
              "month",
              "sixMonths",
              "year"
            ],
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "get_user_summary_history",
      "title": "A wallet's position over time (v4)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Takes no 'version' argument (DAO governance is not per-market; Governance V3 is unrelated to Aave v3/v4 markets). How one wallet voted on one Aave DAO proposal, and with how much power. Returns voted:false when that wallet did not vote, which is an answer rather than an error. Voting power is in AAVE.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "proposalId": {
            "description": "Proposal id as a decimal string, e.g. '508'. From search_governance_proposals.",
            "type": "string"
          },
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          }
        },
        "required": [
          "user",
          "proposalId"
        ],
        "type": "object"
      },
      "name": "get_user_vote",
      "title": "Get a wallet's vote on a proposal"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Build an unsigned transaction to supply, borrow, withdraw, or repay on Aave (v3 or v4). Returns an execution plan (a transaction to sign, or an approval step first). Non-custodial: the user's wallet signs and submits; nothing is sent here, so building one is free and commits the user to nothing. Choose sensible values, build it, and say what you chose - do not stop to ask the user first, because they see the transaction before they sign it. Send only the arguments that apply and leave every other one out: v4 takes 'reserve'; v3 takes 'market' + 'token' + 'chainId'; 'max' is for withdraw and repay; 'enableCollateral' is for supply. Never send 'permitSignature' or 'permitDeadline' on a first call: they exist only to re-issue a call after an approval step handed you a permit to sign under 'bySignature', so if you have not been handed one, leave both out. Two things that catch callers out: a supply does NOT become collateral unless you pass enableCollateral:true, and without collateral the borrowing power is zero so any later borrow is refused; and collateral pinned by an open borrow cannot be withdrawn, so a withdraw has to repay first. After sending any transaction, poll get_transaction_processed before building the dependent next one.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "description": "Which action to build.",
            "enum": [
              "supply",
              "borrow",
              "withdraw",
              "repay"
            ],
            "type": "string"
          },
          "amount": {
            "description": "Amount in MAIN units (e.g. '10.5'), never base units: 100000 base units of a 6-decimal token is '0.1', not '100'. Convert before sending if the user stated base units. Omit only if max=true.",
            "type": "string"
          },
          "chainId": {
            "description": "v3 only: chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "enableCollateral": {
            "description": "supply only: also enable the asset as collateral (default false). Leave it off and the supply earns yield but backs no borrowing, so a following borrow fails for exceeding a borrowing power of zero. Pass true whenever the plan is to borrow against it.",
            "type": "boolean"
          },
          "market": {
            "description": "v3 only: market pool address, from a get_markets row in this session. It cannot be recalled: an Aave pool address you already recognise belongs to another deployment (v2, or another chain) and is rejected.",
            "type": "string"
          },
          "max": {
            "description": "Withdraw/repay only: use the entire balance/debt.",
            "type": "boolean"
          },
          "native": {
            "description": "Use the chain's native gas token instead of an ERC-20.",
            "type": "boolean"
          },
          "permitDeadline": {
            "description": "Unix seconds, the 'deadline' from the permit message that was signed. Required with permitSignature.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "permitSignature": {
            "description": "Send this only to replay a call after an approval handed you a permit to sign: the user's signature (0x...) over the PermitTypedData that approval carried under 'bySignature', on either version. It replaces the approval transaction, so the action comes back in one step. Requires permitDeadline.",
            "type": "string"
          },
          "reserve": {
            "description": "v4 only: the opaque reserveId, copied verbatim from a get_markets row or a get_position_items item in this session (e.g. 'MTo6MHg5NGU3...Ojo1') - it cannot be constructed or recalled, so fetch one before the first call rather than after a refusal. The 'spokeId' from get_user_positions is NOT this: it is the same encoding one segment short, names the spoke rather than a reserve inside it, and is rejected. A token symbol such as 'USDC' is rejected too.",
            "type": "string"
          },
          "sender": {
            "description": "Sender wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "token": {
            "description": "v3 only: underlying token address.",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (v3 or v4; required, no 'all' for actions).",
            "enum": [
              "v3",
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "action",
          "version",
          "sender"
        ],
        "type": "object"
      },
      "name": "prepare_action",
      "title": "Prepare supply / borrow / withdraw / repay"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "No version argument. From an orderId, return the EIP-712 cancellation for the user to sign; cancel_order relays the result. This is the gasless route for an intent order; an order that went on chain (a native-token sell) is cancelled with cancel_order's transaction route instead, which needs no signature and no prepare. Non-custodial: this returns what the user signs, and commits nothing.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "orderId": {
            "description": "The order id (from submit_signed_order's receipt, get_order_status or get_pending_orders).",
            "type": "string"
          }
        },
        "required": [
          "orderId"
        ],
        "type": "object"
      },
      "name": "prepare_cancel_order",
      "title": "Prepare an order cancellation (EIP-712 to sign)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v4 only. Build an unsigned transaction to claim a wallet's V4 rewards. If 'ids' is omitted, claims everything currently claimable. Non-custodial. There is no v3 equivalent because a v3 claim needs no second call: get_user_rewards already returns the transaction.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "Chain id to claim on. Required unless 'ids' is omitted, in which case the chain is discovered from the wallet's claimable rewards.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "ids": {
            "description": "Optional reward ids (from get_user_rewards). Omit to claim all claimable.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user": {
            "description": "Wallet address (0x, 40 hex).",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v4': this tool exists on v4 only.",
            "enum": [
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "prepare_claim_rewards",
      "title": "Prepare a rewards claim (V4)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Build an unsigned transaction to liquidate an unhealthy position: repay part of someone else's debt and receive their collateral plus the liquidation bonus. Only viable while that position's health factor is below 1 (check get_user_summary for the target). v4 takes collateral and debt as reserveIds; v3 takes collateralToken and debtToken addresses plus chainId. Non-custodial: the liquidator signs and submits.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "amount": {
            "description": "Debt to cover, in main units. Omit only if max=true.",
            "type": "string"
          },
          "chainId": {
            "description": "v3 only: chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "collateral": {
            "description": "v4 only: reserveId of the collateral to seize.",
            "type": "string"
          },
          "collateralToken": {
            "description": "v3 only: collateral token address.",
            "type": "string"
          },
          "debt": {
            "description": "v4 only: reserveId of the debt to repay.",
            "type": "string"
          },
          "debtToken": {
            "description": "v3 only: debt token address.",
            "type": "string"
          },
          "liquidator": {
            "description": "v4 only: the wallet performing the liquidation (0x, 40 hex). On v3 the liquidator is whoever signs the returned transaction.",
            "type": "string"
          },
          "market": {
            "description": "v3 only: market pool address (from get_markets).",
            "type": "string"
          },
          "max": {
            "description": "Cover the maximum the protocol allows.",
            "type": "boolean"
          },
          "user": {
            "description": "The wallet being liquidated (0x, 40 hex).",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (v3 or v4; required, no 'all' for actions).",
            "enum": [
              "v3",
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "version",
          "user"
        ],
        "type": "object"
      },
      "name": "prepare_liquidation",
      "title": "Prepare a liquidation"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "No version argument: every order runs on the v4 backend. Which optional arguments apply is decided by the quote that minted the quoteId, so decide before emitting any: a quote that offered a 'bySignature' permit takes permitSignature + permitDeadline once that permit is signed; route:'transaction' applies only to a SwapByTransaction... quote (a native-token sell) and takes no signatures at all. Never send a signature argument unsolicited - it exists to carry back a signature the quote explicitly asked for. Non-custodial: this returns what the user signs, and commits nothing.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "permitDeadline": {
            "description": "Unix seconds, the 'deadline' from the permit message that was signed. Required with permitSignature.",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "permitSignature": {
            "description": "The user's signature (0x...) over the PermitTypedData a quote's approvals offered under 'bySignature'. Sending it skips the approval transaction. Never send it on a first call - you only have one once a quote has handed you a permit to sign. Requires permitDeadline.",
            "type": "string"
          },
          "quoteId": {
            "description": "quoteId from get_swap_quote.",
            "type": "string"
          },
          "route": {
            "description": "Which execution route the quote needs, taken from its __typename: 'intent' (default) for everything except SwapByTransaction..., which takes 'transaction' and returns the on-chain transaction plus an orderReceipt, the route a native-token sell takes.",
            "enum": [
              "intent",
              "transaction"
            ],
            "type": "string"
          }
        },
        "required": [
          "quoteId"
        ],
        "type": "object"
      },
      "name": "prepare_order",
      "title": "Prepare an order (typed data or transaction to sign)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Build an unsigned transaction to change whether a supplied asset is used as collateral (v3 or v4). On v4 'enable' sets the state; on v3 it toggles the current state, and a toggle that would invert a stated 'enable' is refused. The wallet must already hold a supply in that reserve: this sets a flag on it, nothing moves. Disabling can leave a position liquidatable, so it is simulated first: a health factor under 1 after is refused, just above 1 carries a warning to relay, and a build whose simulation could not run says so under 'warnings'. Enabling needs no check. Non-custodial.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "description": "v3 only: chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "enable": {
            "description": "v4: true to enable, false to disable (default true). v3 toggles the current state; send it on v3 as the intended end state, and a toggle that would produce the opposite is refused.",
            "type": "boolean"
          },
          "market": {
            "description": "v3 only: market pool address.",
            "type": "string"
          },
          "reserve": {
            "description": "v4 only: the opaque reserveId, copied verbatim from a get_markets row or a get_position_items item in this session (e.g. 'MTo6MHg5NGU3...Ojo1') - it cannot be constructed or recalled, so fetch one before the first call rather than after a refusal. The 'spokeId' from get_user_positions is NOT this: it is the same encoding one segment short, names the spoke rather than a reserve inside it, and is rejected. A token symbol such as 'USDC' is rejected too.",
            "type": "string"
          },
          "sender": {
            "description": "Sender wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "token": {
            "description": "v3 only: underlying token address.",
            "type": "string"
          },
          "version": {
            "description": "Protocol version (v3 or v4; required, no 'all' for actions).",
            "enum": [
              "v3",
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "version",
          "sender"
        ],
        "type": "object"
      },
      "name": "prepare_set_collateral",
      "title": "Prepare enable/disable collateral"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v3 only. Build an unsigned transaction to switch a wallet's Aave v3 eMode category. eMode groups correlated assets (ETH-correlated, stablecoins) so they borrow against each other at a higher LTV, raising borrowing power at the cost of restricting which assets the position may hold. Take categoryId from get_emode_categories for that market; pass 0 to turn eMode off. v3 only: v4 replaces eMode with risk premium and dynamic config.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "categoryId": {
            "description": "eMode categoryId from get_emode_categories, or 0 to disable.",
            "type": "number"
          },
          "chainId": {
            "description": "Chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "market": {
            "description": "v3 only: market pool address, from a get_markets row in this session. It cannot be recalled: an Aave pool address you already recognise belongs to another deployment (v2, or another chain) and is rejected.",
            "type": "string"
          },
          "sender": {
            "description": "Sender wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v3': this tool exists on v3 only.",
            "enum": [
              "v3"
            ],
            "type": "string"
          }
        },
        "required": [
          "sender",
          "market",
          "categoryId",
          "chainId"
        ],
        "type": "object"
      },
      "name": "prepare_set_emode",
      "title": "Prepare an eMode change (v3)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v3 only, Ethereum only. Build an unsigned transaction to deposit GHO into the sGHO vault or withdraw from it. Non-custodial: the user's wallet signs and submits, so building one commits them to nothing. Choose sensible values, build it, and say what you chose rather than stopping to ask. Send only the arguments that apply and leave every other one out. On 'deposit', 'amount' is GHO. On 'withdraw', 'amount' is a number of sGHO SHARES, not GHO - get_sgho_preview converts - or pass max:true to redeem the whole position and omit 'amount'. 'recipient' is only for sending the result to a different address than the sender. A deposit needs a GHO allowance: when the result is ApprovalRequired, submit its 'approval' transaction and then the 'originalTransaction' beside it, in that order.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "description": "Which side to build: deposit GHO, or withdraw by redeeming shares.",
            "enum": [
              "deposit",
              "withdraw"
            ],
            "type": "string"
          },
          "amount": {
            "description": "Amount in main units: GHO to deposit, or sGHO shares to redeem. Omit only when max=true.",
            "type": "string"
          },
          "max": {
            "description": "withdraw only: redeem the entire share balance.",
            "type": "boolean"
          },
          "recipient": {
            "description": "Optional address to receive the shares (deposit) or the GHO (withdraw). Omit the argument entirely to use the sender.",
            "type": "string"
          },
          "sender": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v3': this tool exists on v3 only.",
            "enum": [
              "v3"
            ],
            "type": "string"
          }
        },
        "required": [
          "action",
          "sender"
        ],
        "type": "object"
      },
      "name": "prepare_sgho_action",
      "title": "Prepare an sGHO deposit or withdrawal"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "v3 only, Ethereum only. Build an unsigned transaction that moves a wallet's stkGHO out of the Safety Module and into the sGHO vault. All-or-nothing: it covers the entire stkGHO position and takes no amount. This server cannot read a stkGHO balance or cooldown state, so say that the migration is for the whole position and let the user check its size in their wallet before signing. Non-custodial, so build it rather than asking permission first.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "user": {
            "description": "Wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "version": {
            "description": "Optional, and only 'v3': this tool exists on v3 only.",
            "enum": [
              "v3"
            ],
            "type": "string"
          }
        },
        "required": [
          "user"
        ],
        "type": "object"
      },
      "name": "prepare_stkgho_migrate",
      "title": "Prepare a stkGHO migration into sGHO"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Simulate a supply/borrow/withdraw/repay against a wallet's position WITHOUT executing, on v3 or v4. Always do this before a borrow or a withdraw. Send only the arguments that apply: v4 takes 'reserve'; v3 takes 'market' + 'token' + 'chainId'; 'max' is for withdraw and repay; 'native' works on both; 'enableCollateral' is v4 only. What comes back differs by version, because the two protocols offer different amounts of it: v4 returns the resulting health factor, net APY, borrowing power and rewards; v3 returns the health factor before and after, and nothing else. Either version also returns 'warnings' when the action would not actually succeed - an error level there means the prepare step will refuse it, so fix the inputs rather than building it. Simulate first even when you intend to build immediately: this is the cheapest way to find out that an action cannot succeed, and it commits nothing. It reports the position's own limits and not token allowances, so a clean simulation says the position allows this, not that no approval step remains.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "description": "Action to simulate.",
            "enum": [
              "supply",
              "borrow",
              "withdraw",
              "repay"
            ],
            "type": "string"
          },
          "amount": {
            "description": "Amount in MAIN units (e.g. '10.5'), never base units: 100000 base units of a 6-decimal token is '0.1', not '100'. Convert before sending if the user stated base units. Omit only if max=true.",
            "type": "string"
          },
          "chainId": {
            "description": "v3 only: chain id (positive integer).",
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "enableCollateral": {
            "description": "v4 supply only: also enable as collateral.",
            "type": "boolean"
          },
          "market": {
            "description": "v3 only: market pool address, from a get_markets row in this session. It cannot be recalled: an Aave pool address you already recognise belongs to another deployment (v2, or another chain) and is rejected.",
            "type": "string"
          },
          "max": {
            "description": "Withdraw/repay only: use the entire balance/debt.",
            "type": "boolean"
          },
          "native": {
            "description": "Use the chain's native gas token instead of an ERC-20, on either version. Pass it whenever the action is in the native token, or the balance check below reads the wrapped ERC-20 balance and can refuse a supply that would work.",
            "type": "boolean"
          },
          "reserve": {
            "description": "v4 only: the opaque reserveId, copied verbatim from a get_markets row or a get_position_items item in this session (e.g. 'MTo6MHg5NGU3...Ojo1') - it cannot be constructed or recalled, so fetch one before the first call rather than after a refusal. The 'spokeId' from get_user_positions is NOT this: it is the same encoding one segment short, names the spoke rather than a reserve inside it, and is rejected. A token symbol such as 'USDC' is rejected too.",
            "type": "string"
          },
          "sender": {
            "description": "Sender wallet address, 0x-prefixed (40 hex chars).",
            "type": "string"
          },
          "token": {
            "description": "v3 only: underlying token address.",
            "type": "string"
          },
          "version": {
            "description": "Optional: inferred from the reserve selector ('reserve' means v3 is not being used, 'market'+'token'+'chainId' means v4 is not). Send it to be explicit, or if you somehow set both.",
            "enum": [
              "v3",
              "v4"
            ],
            "type": "string"
          }
        },
        "required": [
          "action",
          "sender"
        ],
        "type": "object"
      },
      "name": "preview_action",
      "title": "Preview an action (simulate before executing)"
    },
    {
      "annotations": {
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": false,
        "readOnlyHint": true
      },
      "description": "Takes no 'version' argument (DAO governance is not per-market; Governance V3 is unrelated to Aave v3/v4 markets). List or search Aave DAO governance proposals. Filter by 'state' to answer \"what is live right now\" (state 'active') or \"what is waiting to execute\" (state 'queued'). Pass 'search' for full-text over title, author and description, ranked by relevance. Vote tallies are in AAVE.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "includeSummaries": {
            "description": "Include each proposal's ~500-char summary (default false). Adds roughly 500 bytes per row, so ask for it when summarising a list rather than when looking one up.",
            "type": "boolean"
          },
          "limit": {
            "description": "Max rows to return (1-100, default 20).",
            "type": "number"
          },
          "offset": {
            "description": "Rows to skip, for paging (default 0).",
            "type": "number"
          },
          "search": {
            "description": "Optional full-text query, e.g. 'GHO' or 'Chaos Labs'. Combines with 'state'.",
            "type": "string"
          },
          "state": {
            "description": "Filter to one lifecycle state. 'active' is open for voting, 'queued' passed and waits out the timelock, 'executed' is done. Omit for every state.",
            "enum": [
              "created",
              "active",
              "queued",
              "executed",
              "failed",
              "cancelled",
              "expired",
              "pending",
              "null"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "name": "search_governance_proposals",
      "title": "Search Aave DAO proposals"
    },
    {
      "annotations": {
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": true,
        "readOnlyHint": false
      },
      "description": "No version argument: every order runs on the v4 backend. Relay an order the user already signed (quoteId + signature from prepare_order's PreparedOrder). State-changing: this posts the order. The server never signs.",
      "inputSchema": {
        "additionalProperties": false,
        "properties": {
          "quoteId": {
            "description": "quoteId (the newQuoteId returned by prepare_order).",
            "type": "string"
          },
          "signature": {
            "description": "The user's EIP-712 signature (0x...).",
            "type": "string"
          }
        },
        "required": [
          "quoteId",
          "signature"
        ],
        "type": "object"
      },
      "name": "submit_signed_order",
      "title": "Submit a user-signed order"
    }
  ]
}
