{"uid":"cap_PBV8I3fdZn-XvgZ6puqeG","slug":"heurist-mesh-defi-protocol-metrics-via-defillama-98fb8efb","name":"Heurist Mesh: DeFi Protocol Metrics via DefiLlama","description":"Get metrics for a DeFi protocol including TVL, fees, volume (for DEXes), revenue, deployed chains, and growth trend. Use this tool when you want to analyze a DeFi project. You must input the defillama slug obtained from project knowledge base.","url":"https://mesh.heurist.xyz/x402/solana/agents/DefiLlamaAgent/get_protocol_metrics","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["protocol"],"properties":{"debug":{"type":"boolean","default":false,"description":"Debug mode flag. ALWAYS use false."},"protocol":{"type":"string","description":"Protocol slug (e.g., 'aave-v3', 'curve-dex')"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"object","additionalProperties":true}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vm1AzPMf6yW2ZoRLhLcGP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves DeFi protocol metrics including TVL, fees, volume, revenue, deployed chains, and growth trend from DefiLlama data for a given protocol slug.","exampleAgentPrompt":"Can you pull up the DeFi metrics for Uniswap — I want to see its TVL, fees, volume, revenue, and which chains it's deployed on? The DefiLlama slug is 'uniswap'.","exampleUseCases":[{"title":"Comparing DeFi lending protocols","prompt":"I'm evaluating Aave and Compound for a research report — can you get me the TVL, revenue, fees, and growth trend for each? The DefiLlama slugs are 'aave' and 'compound-finance'."},{"title":"DEX volume and fee analysis","prompt":"Can you look up the trading volume, fees, and TVL for Curve Finance using its DefiLlama slug 'curve-dex'? I want to understand how active it is across its deployed chains."},{"title":"Tracking protocol growth over time","prompt":"I want to know whether Lido is growing — pull its TVL, revenue, and growth trend from DefiLlama using the slug 'lido'."}],"resultDescription":"Returns structured metrics for the requested DeFi protocol including TVL (total value locked), generated fees, trading volume (for DEXes), protocol revenue, list of deployed blockchain networks, and a growth trend indicator derived from DefiLlama data.","failureModes":["Invalid or unknown DefiLlama slug returns an error or empty result","Protocol not indexed by DefiLlama returns no data","Network timeout or upstream DefiLlama API unavailability","Payment failure if USDC balance is insufficient for the $0.003 fee","DEX-specific fields like volume absent for non-DEX protocols"],"whenToPreferThis":"Use this endpoint when you need structured on-chain DeFi protocol analytics (TVL, fees, revenue, volume, chain coverage) sourced from DefiLlama. Prefer it over general web search when you need numeric, machine-readable protocol metrics rather than narrative summaries. It is particularly suited for comparing DeFi protocols, tracking growth trends, or building DeFi research reports where DefiLlama slugs are known.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:44:50.600Z","isFirstParty":false}