{
  "id": "surf.onchain.yield.ranking",
  "object": "tool",
  "name": "Yield Pool Ranking",
  "summary": "List individual DeFi yield pools ranked by APY or TVL.",
  "description": "List individual DeFi yield pools ranked by APY or TVL. Example: filter by protocol like lido or aave for pool-level yield data.\n\nRaw surf#onchain/yield/ranking endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://docs.asksurf.ai/data-api/onchain/yield-ranking).",
  "category": "lookup",
  "hosted_by": "Surf",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "surf",
      "name": "Surf",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "surf_onchain_yield_ranking",
  "input_schema": {
    "type": "object",
    "properties": {
      "queryParams": {
        "type": "object",
        "properties": {
          "project": {
            "type": "string",
            "minLength": 1,
            "description": "Filter by protocol name like lido, aave, or uniswap. Example: aave."
          },
          "sort_by": {
            "default": "apy",
            "type": "string",
            "enum": [
              "apy",
              "tvl_usd"
            ],
            "description": "Ranking metric: apy or tvl_usd. When sorted by apy, only pools with TVL >= $100k are included. Example: apy. Defaults to \"apy\"."
          },
          "order": {
            "default": "desc",
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ],
            "description": "Sort direction. Example: desc. Defaults to \"desc\"."
          },
          "limit": {
            "default": 20,
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Results per page. Example: 20. Defaults to 20."
          },
          "offset": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Pagination offset. Example: 0. Defaults to 0."
          }
        },
        "additionalProperties": false
      }
    },
    "required": [],
    "additionalProperties": false
  },
  "kind": "endpoint"
}