{"uid":"cap_XgOPVaFhMj04zD9aEidyV","slug":"aayat-ai-defi-protocol-safety-tvl-lookup-cc713684","name":"Aayat AI DeFi Protocol Safety & TVL Lookup","description":"DeFi protocol safety check: TVL and its 1h/1d/7d change, chains, category, audits and audit links, oracles, age, forks, market cap/TVL, and every past hack from DefiLlama's database, rolled into flags, a 0-100 score and a verdict. Pass ?name=aave-v3 (slug or name).","url":"https://aayatai.com/defi/protocol?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["name"],"properties":{"name":{"type":"string","maxLength":80,"minLength":2,"description":"Protocol name or DefiLlama slug, e.g. Aave V3 or aave-v3."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["name","slug","tvlUsd","safety"],"properties":{"name":{"type":"string"},"slug":{"type":"string"},"hacks":{"type":"array","description":"Past hacks of this protocol (DefiLlama)."},"trust":{"type":"object","description":"Third-party text, cleaned: read trust.notice; removed = what we stripped."},"audits":{"type":["number","null"]},"chains":{"type":"array"},"change":{"type":"object","description":"TVL % change over 1h, 1d, 7d."},"events":{"type":"array","description":"Notable events on DefiLlama's timeline."},"safety":{"type":"object","description":"verdict (high-risk, caution, low-risk), 0-100 score, flags."},"tvlUsd":{"type":["number","null"]},"ageDays":{"type":["integer","null"]},"oracles":{"type":"array"},"category":{"type":["string","null"]},"auditLinks":{"type":"array"},"suggestions":{"type":"array","description":"Other protocols matching the name."}}}}}}},"responseSchema":{"type":"json","example":{"url":"https://aave.com","name":"Aave V3","slug":"aave-v3","hacks":[],"audits":2,"chains":["Ethereum","Base","Arbitrum"],"change":{"d1":-1.1,"d7":-1.6,"h1":-0.9},"events":[{"date":"2026-04-18","event":"KelpDAO hack"}],"parent":"aave","safety":{"flags":[{"code":"audited","level":"info","message":"Multiple audits listed (1 link)."}],"score":100,"verdict":"low-risk"},"source":"DefiLlama","tvlUsd":18061335722,"ageDays":1641,"mcapUsd":null,"oracles":["Chainlink"],"twitter":"aave","category":"Lending","listedAt":"2022-04-01","checkedAt":"2026-09-28T12:00:00.000Z","mcapToTvl":null,"auditLinks":["https://aave.com/security"],"forkedFrom":[],"suggestions":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ykLg4i6xNqLpfRuElm1AF","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns safety verdict, TVL, audit status, hacks history, and on-chain metrics for a named DeFi protocol using DefiLlama data","exampleAgentPrompt":"Can you check if Aave V3 is safe — I want to know its TVL, whether it's been hacked before, how many audits it has, and what chains it runs on?","exampleUseCases":[{"title":"Vetting a protocol before depositing funds","prompt":"Before I put any money into Curve Finance, can you check its safety score, whether it's ever been hacked, and how much TVL it currently has?"},{"title":"Comparing protocol risk for a research report","prompt":"I'm writing a DeFi risk overview — can you pull the safety verdict, audit count, and TVL change over the last 7 days for Compound V3?"},{"title":"Checking oracle exposure for a lending strategy","prompt":"Which oracles does Lido use, and is there anything in its safety flags I should be worried about before integrating it into my yield strategy?"}],"resultDescription":"A JSON object containing the protocol's canonical name, DefiLlama slug, current TVL in USD, safety verdict (high-risk/caution/low-risk), safety score 0–100, safety flags, number of audits, audit links, list of past hacks, supported chains, oracle list, TVL percentage changes over 1h/1d/7d, protocol category, age in days, parent protocol, market cap to TVL ratio, and any alternative protocol suggestions if the name is ambiguous.","failureModes":["Protocol name not found — returns empty suggestions array or 404-equivalent if slug cannot be resolved","Ambiguous name matches multiple protocols — response includes a suggestions array with alternatives instead of a single result","DefiLlama data unavailable or stale — checkedAt timestamp may be outdated","Very new or obscure protocols may have null TVL or null ageDays","Payment failure (x402) if USDC balance is insufficient — request not processed"],"whenToPreferThis":"Use this endpoint when an AI agent needs structured, pre-scored DeFi protocol safety data without building a custom DefiLlama integration. It is ideal for DeFi due-diligence flows, risk dashboards, or agent-driven investment tools that need a single call returning safety verdict, TVL, audit info, and hack history together. Prefer this over raw DefiLlama API calls when you need a normalized safety score and flags already computed. Not suitable for token-level price feeds or wallet balance lookups (use sibling endpoints for those).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:47:06.530Z","isFirstParty":false,"canonicalSlug":"aayat-ai-defi-protocol-safety-tvl-lookup-cc713684"}