{"uid":"cap__Ep3siDvibCl8iuZiNjpP","slug":"keeperhub-emporia-cbri-score-stablecoin-depeg-risk-scorer-24b879d6","name":"KeeperHub Emporia CBRI Score - Stablecoin Depeg Risk Scorer","description":"Build powerful blockchain workflow automations with a visual, node-based editor. Built with Next.js and React Flow.","url":"https://app.keeperhub.com/api/mcp/workflows/emporia-cbri-score/call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["poolAddress","token0Address","token1Address","depegPoolAddress"],"properties":{"tau":{"type":"number","description":"Reference firing threshold, returned for comparison. This workflow never acts on it. DERIVED from the March 2023 USDC depeg; calibrated on ONE event."},"ofiWeight":{"type":"number","description":"Noisy-OR weight for OFI. Ships at 0: non-discriminant on the reference crash, diagnostic only."},"ofiWindow":{"type":"integer","description":"Rolling window in candles for OFI."},"depegWeight":{"type":"number","description":"Noisy-OR weight for depeg."},"drainWeight":{"type":"number","description":"Noisy-OR weight for drain. 0 disables the signal."},"drainWindow":{"type":"integer","description":"Rolling window in candles. A FULL window is required; a partial one invents a drain spike."},"poolAddress":{"type":"string","description":"Uniswap v3 pool to score. Drain and order-flow signals are read from this pool."},"ofiSteepness":{"type":"number","description":"Sigmoid steepness for OFI."},"ofiThreshold":{"type":"number","description":"Order-flow imbalance knee."},"candleSeconds":{"type":"integer","description":"Candle size in seconds. The calibration assumes 300."},"token0Address":{"type":"string","description":"token0 of the scored pool."},"token1Address":{"type":"string","description":"token1 of the scored pool."},"depegSteepness":{"type":"number","description":"Sigmoid steepness for depeg."},"depegThreshold":{"type":"number","description":"Depeg knee, |1 - price|. THE CONFIRMATION SIGNAL."},"drainSteepness":{"type":"number","description":"Sigmoid steepness for drain."},"drainThreshold":{"type":"number","description":"Liquidity-drain knee, fraction of TVL per hour. THE EARLY-WARNING SIGNAL."},"token0Decimals":{"type":"integer","description":"Decimals of token0. Wrong values silently rescale the drain signal."},"token1Decimals":{"type":"integer","description":"Decimals of token1."},"depegPoolAddress":{"type":"string","description":"Stable/stable pool used to price the distressed asset DIRECTLY. The depeg signal is only meaningful if this is a genuine stable pair."},"depegToken0Decimals":{"type":"integer","description":"Decimals of the depeg pool's token0."},"depegToken1Decimals":{"type":"integer","description":"Decimals of the depeg pool's token1."}}},"responseSchema":{"status":"running","executionId":"exec_abc123"},"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_hKARxcck2JehQlVb9Ht94","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":"Computes a composite blockchain risk index (CBRI) score for a Uniswap v3 pool using order-flow imbalance, depeg, and liquidity-drain signals to detect stablecoin depeg risk.","exampleAgentPrompt":"Score the depeg risk on the USDC/ETH Uniswap v3 pool at 0xabc...123 — token0 is USDC (6 decimals) at 0xA0b...eB48, token1 is WETH (18 decimals) at 0xC02...6Cc2, and use the USDC/USDT depeg reference pool at 0xdef...456, with 5-minute candles, a drain threshold of 0.05 and depeg threshold of 0.01.","exampleUseCases":[{"title":"Early warning for stablecoin depeg event","prompt":"Run the CBRI depeg risk score on the USDC/USDT Uniswap v3 pool at 0x3416cf6C708Da44DB2624D63ea0AAef7113527C6 — token0 is USDC (6 decimals) at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, token1 is USDT (6 decimals) at 0xdAC17F958D2ee523a2206206994597C13D831ec7, depeg reference pool at 0x3416cf6C708Da44DB2624D63ea0AAef7113527C6, 300-second candles, drain threshold 0.05, depeg threshold 0.01."},{"title":"Monitor DeFi pool for liquidity drain spike","prompt":"I want to check whether there's unusual liquidity draining from the DAI/USDC Uniswap v3 pool at 0x5777d92f208679DB4b9778590Fa3CAB3aC9e2168 — token0 is DAI (18 decimals) at 0x6B175474E89094C44Da98b954EedeAC495271d0F, token1 is USDC (6 decimals) at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, depeg pool at 0x5777d92f208679DB4b9778590Fa3CAB3aC9e2168, 5-minute candles, drain threshold 0.04, drain window 12 candles, depeg threshold 0.005."},{"title":"Post-event risk audit for a crashed stablecoin pool","prompt":"Run the CBRI risk scorer on the FRAX/USDC Uniswap v3 pool at 0xc63B0708E2F7e69CB8A1df0e1389A98C35A76D52, token0 FRAX (18 decimals) at 0x853d955aCEf822Db058eb8505911ED77F175b99e, token1 USDC (6 decimals) at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, depeg pool 0xc63B0708E2F7e69CB8A1df0e1389A98C35A76D52, 300-second candles, depeg threshold 0.02, drain threshold 0.06, and tell me the composite score and which signals fired."}],"resultDescription":"Returns a JSON object with a run status ('running') and an executionId that can be used to poll for the completed composite CBRI score, individual signal values (depeg, drain, OFI), and whether the firing threshold was exceeded.","failureModes":["Missing required addresses (poolAddress, token0Address, token1Address, depegPoolAddress) returns a validation error","Partial drain window data causes an inflated/invented drain spike — ensure drainWindow candles are fully available","Wrong token decimals silently rescale the drain signal, producing incorrect scores","Misconfigured sigmoid parameters (steepness/threshold) can suppress or over-amplify signals","Pool address not indexed on-chain returns a data-unavailable error","Network congestion may delay execution result availability"],"whenToPreferThis":"Use this endpoint when you need a quantitative, multi-signal composite risk score for a specific Uniswap v3 stablecoin pool — particularly when you want early-warning drain detection combined with depeg confirmation in a single automated workflow. Prefer this over generic on-chain data queries when you want a pre-calibrated noisy-OR scoring model rather than raw price or liquidity feeds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:18.838Z","isFirstParty":false,"canonicalSlug":"keeperhub-emporia-cbri-score-stablecoin-depeg-risk-scorer-24b879d6"}