Skip to main content
Glama

get_protocol_fees

Read-onlyIdempotent

chainpeek: Get protocol fees and revenue. For TVL use get_protocol_tvl. Returns a protocol's fees and revenue in USD over 24 hours, 7 days, 30 days, 1 year and all time, the change, the revenue-to-fees ratio and DefiLlama's definitions, from Tanod's cache of DefiLlama data. Cached DefiLlama data (refreshed every few hours), never live; as_of shows its age; revenue is DefiLlama's definition (see methodology); an unknown protocol is a 422 with suggestions and a missing or over-2-day-old cache a 503 (neither charged). Informational only. Typically under 1 s (a local cache read). Price: USD 0.002. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/defi-data-api.html

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "protocol": "<protocol>"
    },
    "name": "get_protocol_fees"
  }
}

Input Schema

NameRequiredDescriptionDefault
protocolYesProtocol (or chain) name or slug, e.g. aave, uniswap, lido, ethereum (a parent such as aave sums its versions). An unknown name is a 422 with suggestions.

Output Schema

NameRequiredDescriptionDefault
noteNo
as_ofNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
staleNo
sourceNo
protocolNo
other_matchesNo
cache_age_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / protocol / title
      Removed value: -"Protocol"
    • removedInput schema / title
      Removed value: -"get_protocol_feesArguments"
    • removedOutput schema / properties / other_matches / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / protocol / properties
      Removed value: -{
      -  "category": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "chains": {
      -    "items": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "fees": {
      -    "properties": {
      -      "1y_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "24h_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "30d_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "7d_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "all_time_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "change_1d_pct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "change_30d_pct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "change_7d_pct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "methodology": {
      -    "properties": {
      -      "fees": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "revenue": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "name": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "revenue": {
      -    "properties": {
      -      "1y_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "24h_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "30d_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "7d_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "all_time_usd": {
      -        "type": [
      -          "integer",
      -          "null"
      -        ]
      -      },
      -      "change_1d_pct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "change_30d_pct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "change_7d_pct": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      }
      -    },
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "revenue_to_fees_30d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "slug": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "type": {
      -    "enum": [
      -      "protocol",
      -      "parent",
      -      "chain",
      -      null
      -    ]
      -  },
      -  "versions": {
      -    "items": {
      -      "properties": {
      -        "fees_30d_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "name": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "revenue_30d_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "slug": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  }
      -}
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources