{
  "x402Version": 2,
  "service": "defi-protocol-tvl",
  "description": "Live DeFi & EVM chain intelligence: protocol TVL, Base & Ethereum gas prices, stablecoin peg health, and top chain TVL rankings.",
  "resources": [
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/tvl",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Fetch live Total Value Locked (TVL) in USD for any DeFi protocol slug (e.g. aave, uniswap, aerodrome) via DefiLlama. ($0.01 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "tvl",
        "crypto",
        "defillama"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "protocol": "aave"
            },
            "output": {
              "example": {
                "protocol": "aave",
                "found": true,
                "tvl_usd": 16618187730.1
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "protocol": {
                  "type": "string"
                }
              },
              "required": [
                "protocol"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/defi_protocol_tvl",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "defi_protocol_tvl",
      "description": "Fetch live Total Value Locked (TVL) in USD for any DeFi protocol slug (e.g. aave, uniswap, aerodrome) via DefiLlama. ($0.01 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "tvl",
        "crypto",
        "defillama",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "defi_protocol_tvl",
              "arguments": {
                "protocol": "aave"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "protocol": {
                  "type": "string"
                }
              },
              "required": [
                "protocol"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/gas-now",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Live gas prices and estimated ETH/ERC-20 transfer costs in ETH and USD on Base and Ethereum mainnet. ($0.005 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "5000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "gas",
        "evm",
        "base",
        "ethereum",
        "crypto"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "chain": "all"
            },
            "output": {
              "example": {
                "eth_price_usd": 3200,
                "chains": {
                  "base": {
                    "gas_price_gwei": 0.005,
                    "est_transfer_usd": 0.0003
                  }
                }
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "chain": {
                  "type": "string",
                  "enum": [
                    "all",
                    "base",
                    "ethereum"
                  ]
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/evm_gas_now",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "evm_gas_now",
      "description": "Live gas prices and estimated ETH/ERC-20 transfer costs in ETH and USD on Base and Ethereum mainnet. ($0.005 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "5000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "gas",
        "evm",
        "base",
        "ethereum",
        "crypto",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "evm_gas_now",
              "arguments": {
                "chain": "all"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "chain": {
                  "type": "string",
                  "enum": [
                    "all",
                    "base",
                    "ethereum"
                  ]
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/stablecoin-peg",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Live USD peg price, deviation in bps, 24h supply change, and depeg_risk (low/medium/high) for USDC, USDT, DAI, USDe or a chosen symbol. ($0.01 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "stablecoin",
        "peg",
        "defi",
        "risk",
        "defillama"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "symbol": "USDC"
            },
            "output": {
              "example": {
                "query": "USDC",
                "count": 1,
                "stablecoins": [
                  {
                    "symbol": "USDC",
                    "price_usd": 1,
                    "deviation_bps": 0,
                    "depeg_risk": "low"
                  }
                ]
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "symbol": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/stablecoin_peg",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "stablecoin_peg",
      "description": "Live USD peg price, deviation in bps, 24h supply change, and depeg_risk (low/medium/high) for USDC, USDT, DAI, USDe or a chosen symbol. ($0.01 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "stablecoin",
        "peg",
        "defi",
        "risk",
        "defillama",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "stablecoin_peg",
              "arguments": {
                "symbol": "USDC"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "symbol": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/chain-tvl-rank",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Live top-15 (up to 50) blockchain TVL ranking in USD with market share and dedicated Base ranking via DefiLlama. ($0.01 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "tvl",
        "chains",
        "base",
        "defillama"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "limit": 15
            },
            "output": {
              "example": {
                "total_tvl_usd": 100000000000,
                "base": {
                  "rank": 6,
                  "name": "Base",
                  "tvl_usd": 3500000000
                },
                "top_chains": []
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 50
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/chain_tvl_rank",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "chain_tvl_rank",
      "description": "Live top-15 (up to 50) blockchain TVL ranking in USD with market share and dedicated Base ranking via DefiLlama. ($0.01 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "tvl",
        "chains",
        "base",
        "defillama",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "chain_tvl_rank",
              "arguments": {
                "limit": 15
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 50
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/yield-opportunities",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Top DeFi yield pools with APY (base vs reward), TVL, project, symbol, IL risk, and simple risk rating via DefiLlama. ($0.02 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "20000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "yield",
        "apy",
        "tvl",
        "stablecoin",
        "defillama"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "chain": "base",
              "stablecoinOnly": true,
              "minTvl": 1000000,
              "limit": 10
            },
            "output": {
              "example": {
                "count": 10,
                "source": "yields.llama.fi/pools",
                "results": [
                  {
                    "project": "aave-v3",
                    "symbol": "USDC",
                    "chain": "Base",
                    "apyPct": 5.2,
                    "risk": "low"
                  }
                ]
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "chain": {
                  "type": "string"
                },
                "stablecoinOnly": {
                  "type": "boolean"
                },
                "minTvl": {
                  "type": "number",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/yield_opportunities",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "yield_opportunities",
      "description": "Top DeFi yield pools with APY (base vs reward), TVL, project, symbol, IL risk, and simple risk rating via DefiLlama. ($0.02 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "20000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "yield",
        "apy",
        "tvl",
        "stablecoin",
        "defillama",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "yield_opportunities",
              "arguments": {
                "chain": "base",
                "stablecoinOnly": true,
                "minTvl": 1000000,
                "limit": 10
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "chain": {
                  "type": "string"
                },
                "stablecoinOnly": {
                  "type": "boolean"
                },
                "minTvl": {
                  "type": "number",
                  "minimum": 0
                },
                "limit": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 100
                }
              }
            }
          }
        }
      }
    },
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/defi-protocol-risk",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Score a DeFi protocol 0-100 for risk before routing funds: TVL, 7d/30d TVL change, chain concentration and known hacks (DefiLlama). ($0.05 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "50000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "risk",
        "tvl",
        "hacks",
        "dossier"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "protocol": "aave"
            },
            "output": {
              "example": {
                "protocol": "aave",
                "riskScore": 18,
                "riskLevel": "low"
              }
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "protocol": {
                  "type": "string"
                }
              },
              "required": [
                "protocol"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/defi_protocol_risk",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "defi_protocol_risk",
      "description": "Score a DeFi protocol 0-100 for risk before routing funds: TVL, 7d/30d TVL change, chain concentration and known hacks (DefiLlama). ($0.05 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "50000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "defi",
        "risk",
        "tvl",
        "hacks",
        "dossier",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "defi_protocol_risk",
              "arguments": {
                "protocol": "aave"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "protocol": {
                  "type": "string"
                }
              },
              "required": [
                "protocol"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/tvl-batch",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Batch protocol TVL: up to 10 comma-separated DefiLlama slugs resolved in one cached DeFiLlama call (10 min TTL), each with name, TVL and lead chain. ($0.03 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "defi-protocol-tvl"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "protocols": "aave,lido"
            },
            "output": {
              "example": {}
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "protocols": {
                  "type": "string"
                }
              },
              "required": [
                "protocols"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/tvl_batch",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "tvl_batch",
      "description": "Batch protocol TVL: up to 10 comma-separated DefiLlama slugs resolved in one cached DeFiLlama call (10 min TTL), each with name, TVL and lead chain. ($0.03 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "30000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "defi-protocol-tvl",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "tvl_batch",
              "arguments": {
                "protocols": "aave,lido"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "protocols": {
                  "type": "string"
                }
              },
              "required": [
                "protocols"
              ]
            }
          }
        }
      }
    },
    {
      "url": "https://defi-protocol-tvl.restockalarm.workers.dev/v1/defi-tvl-chain",
      "method": "GET",
      "mimeType": "application/json",
      "description": "Chain TVL overview for any chain DeFiLlama tracks (solana, ton, sui, avalanche, ...): total TVL, native symbol. Other chains where free data exists. ($0.01 USDC per call via x402 on Base)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "defi-protocol-tvl"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "chain": "solana"
            },
            "output": {
              "example": {}
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "chain": {
                  "type": "string"
                }
              },
              "required": [
                "chain"
              ]
            }
          }
        }
      }
    },
    {
      "url": "mcp://tool/defi_tvl_chain",
      "endpoint": "https://defi-protocol-tvl.restockalarm.workers.dev/mcp",
      "tool": "defi_tvl_chain",
      "description": "Chain TVL overview for any chain DeFiLlama tracks (solana, ton, sui, avalanche, ...): total TVL, native symbol. Other chains where free data exists. ($0.01 USDC per call via x402 for MCP)",
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "payTo": "0x7B97303d62517eA9E26D1E1b199Eac42a487F430",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "10000",
          "maxTimeoutSeconds": 120
        }
      ],
      "tags": [
        "variant",
        "defi-protocol-tvl",
        "mcp"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "mcp",
              "transport": "streamable-http",
              "tool": "defi_tvl_chain",
              "arguments": {
                "chain": "solana"
              }
            },
            "output": {
              "type": "json"
            }
          },
          "schema": {
            "input": {
              "type": "object",
              "properties": {
                "chain": {
                  "type": "string"
                }
              },
              "required": [
                "chain"
              ]
            }
          }
        }
      }
    }
  ]
}