{"uid":"cap_zXkInsWybUx9HC7-1QpFi","slug":"flash-loan-vulnerability-check-26dc9f18","name":"Flash Loan Vulnerability Check","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://mcp-gateway.agentdiet.dev settling in USDC on Base.","url":"https://mcp-gateway.agentdiet.dev/v1/flashloan-vuln-check?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","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"address":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"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_Nhjsr0E7hux6apgB74wry","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":"Checks a given smart contract or address for flash loan vulnerability patterns on-chain","exampleAgentPrompt":"Can you check whether the contract at 0xABC123... is vulnerable to flash loan attacks?","exampleUseCases":[{"title":"DeFi protocol pre-launch security audit","prompt":"Before we go live, can you check if our smart contract at 0x4e68Ccd3E89f51C3074ca5072bbAC773960dFa36 has any flash loan vulnerabilities?"},{"title":"Investigating a suspicious contract","prompt":"I found this contract address 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D on-chain and want to know if it's exploitable via flash loans before I interact with it."},{"title":"Routine DeFi security monitoring","prompt":"Run a flash loan vulnerability check on 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B so I can confirm it's still safe after the latest protocol upgrade."}],"resultDescription":"Returns a JSON object with a status field ('ok'), a data object containing vulnerability findings, and an roi_proof object including a compression_ratio_pct metric. Agents can use the status and data fields to determine whether the checked address exhibits flash loan vulnerability patterns.","failureModes":["Missing or invalid address query parameter returns an error or empty data","Non-existent or non-contract address may return empty findings","Payment failure (insufficient USDC on Base) results in 402 response blocking the call","Malformed request without required 'type' and 'method' fields in input returns validation error","Network or gateway downtime may return 5xx errors"],"whenToPreferThis":"Use this endpoint when you need a quick, low-cost ($0.01 USDC) automated check of a smart contract address for flash loan vulnerabilities, especially within an agentic workflow that already settles payments via x402/USDC on Base. Prefer this over manual audits when you need programmatic, machine-readable results for DeFi security pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:21.931Z","isFirstParty":false,"canonicalSlug":"flash-loan-vulnerability-check-26dc9f18"}