|
| 1 | +defmodule Sanbase.MCP.UseCasesCatalog do |
| 2 | + @moduledoc """ |
| 3 | + Catalog of analytical use cases with execution steps. |
| 4 | + Each use case includes plain English instructions referencing specific MCP tools. |
| 5 | + """ |
| 6 | + |
| 7 | + def all_use_cases do |
| 8 | + [ |
| 9 | + identify_market_tops() |
| 10 | + ] |
| 11 | + end |
| 12 | + |
| 13 | + defp identify_market_tops do |
| 14 | + %{ |
| 15 | + id: "identify_market_tops", |
| 16 | + title: "Identify Market Tops Using Santiment Metrics", |
| 17 | + description: """ |
| 18 | + Multi-signal approach combining social volume, sentiment, network activity, |
| 19 | + and on-chain metrics to identify potential market tops. This framework |
| 20 | + emphasizes using multiple indicators together rather than relying on any |
| 21 | + single metric. |
| 22 | + """, |
| 23 | + category: "market_timing", |
| 24 | + difficulty: "intermediate", |
| 25 | + estimated_time: "5-10 minutes", |
| 26 | + applies_to: "Any crypto asset with sufficient data history", |
| 27 | + steps: """ |
| 28 | + Step 1: Check for social volume spikes during rallies |
| 29 | + Use the fetch_metric_data tool with these parameters: |
| 30 | + - metric: "social_volume_total" |
| 31 | + - slugs: [your target asset, e.g., "bitcoin"] |
| 32 | + - time_period: "30d" |
| 33 | + - interval: "1d" |
| 34 | +
|
| 35 | + Look for extreme spikes in social volume (3x or more above the 30-day baseline) |
| 36 | + that occur during price rallies. This is especially reliable for mid-cap and |
| 37 | + small-cap coins. Extreme social attention during rallies often marks local tops. |
| 38 | +
|
| 39 | + Step 2: Analyze sentiment for overbought crowd conditions |
| 40 | + Use the fetch_metric_data tool to check positive sentiment: |
| 41 | + - metric: "sentiment_positive_total" |
| 42 | + - slugs: [your target asset] |
| 43 | + - time_period: "7d" |
| 44 | + - interval: "1d" |
| 45 | +
|
| 46 | + When the crowd is overly bullish, it can indicate a top. Look for: |
| 47 | + - Positive sentiment representing > 70% of total mentions |
| 48 | + - This elevated sentiment sustained for 3+ consecutive days |
| 49 | +
|
| 50 | + Optionally also fetch "sentiment_negative_total" and "sentiment_balance_total" |
| 51 | + for a more complete picture. Strongly positive sentiment balance (>+0.5) |
| 52 | + during rallies is a bearish signal. |
| 53 | +
|
| 54 | + Step 3: Check for network activity vs. price behavior divergence |
| 55 | + Use the fetch_metric_data tool to check network activity: |
| 56 | + - metric: "daily_active_addresses" |
| 57 | + - slugs: [your target asset] |
| 58 | + - time_period: "30d" |
| 59 | + - interval: "1d" |
| 60 | +
|
| 61 | + Compare the trend in daily active addresses with price movement. If price has |
| 62 | + risen 20% or more but daily active addresses remain flat or are declining, |
| 63 | + this divergence signals a potential top. Healthy rallies are supported by |
| 64 | + increasing on-chain activity. |
| 65 | +
|
| 66 | + Optionally also check "network_growth" (new addresses) for additional confirmation. |
| 67 | +
|
| 68 | + Step 4: Check MVRV ratio for overbought valuation |
| 69 | + Use the fetch_metric_data tool to check valuation: |
| 70 | + - metric: "mvrv_usd" |
| 71 | + - slugs: [your target asset] |
| 72 | + - time_period: "90d" |
| 73 | + - interval: "1d" |
| 74 | +
|
| 75 | + MVRV (Market Value to Realized Value) ratio indicates whether holders are |
| 76 | + in profit. High MVRV suggests many holders are sitting on gains and may |
| 77 | + take profits. Thresholds vary by asset: |
| 78 | + - Bitcoin: MVRV > 2.5 indicates overbought (bull market: > 3.5) |
| 79 | + - Other assets: Research historical MVRV levels for the specific asset |
| 80 | +
|
| 81 | + Step 5: Check Mean Dollar Invested Age for long-term holder distribution |
| 82 | + Use the fetch_metric_data tool to check coin age: |
| 83 | + - metric: "mean_dollar_invested_age" |
| 84 | + - slugs: [your target asset] |
| 85 | + - time_period: "180d" |
| 86 | + - interval: "1d" |
| 87 | +
|
| 88 | + MDIA tracks how long funds have stayed in addresses. Rising MDIA indicates |
| 89 | + hodler accumulation, while dips suggest movement of previously idle coins. |
| 90 | +
|
| 91 | + Every major Bitcoin top has been accompanied by a significant drop in MDIA |
| 92 | + as long-term holders distribute coins. Look for sharp drops (>10%) during |
| 93 | + price rallies. This is particularly relevant for Bitcoin and major assets |
| 94 | + with long history. |
| 95 | + """, |
| 96 | + interpretation: """ |
| 97 | + ## How to Interpret Combined Signals |
| 98 | +
|
| 99 | + This framework uses multiple indicators. Assess the overall picture: |
| 100 | +
|
| 101 | + **Strong Top Signal (High Confidence)** |
| 102 | + When you observe 4-5 of these conditions together: |
| 103 | + - Social volume spike 3x+ baseline during rally |
| 104 | + - Positive sentiment > 70% sustained 3+ days |
| 105 | + - Network activity declining while price rises 20%+ |
| 106 | + - MVRV > 2.5 (or asset-specific threshold) |
| 107 | + - MDIA drops > 10% during rally |
| 108 | +
|
| 109 | + Action: Consider taking profits or tightening stop losses |
| 110 | +
|
| 111 | + **Moderate Top Signal** |
| 112 | + When 2-3 bearish signals are present with mixed signals across categories. |
| 113 | +
|
| 114 | + Action: Monitor closely, consider reducing position size |
| 115 | +
|
| 116 | + **Weak/No Top Signal** |
| 117 | + When 0-1 bearish signals present and most metrics show healthy conditions. |
| 118 | +
|
| 119 | + Action: Continue holding, no immediate concern |
| 120 | +
|
| 121 | + ## Important Context |
| 122 | + - **Small/mid-cap coins**: Social volume spikes are more reliable indicators |
| 123 | + - **Large-cap coins (BTC, ETH)**: MDIA and network activity more important |
| 124 | + - **Bull markets**: Higher thresholds needed (MVRV > 3.5 for BTC) |
| 125 | + - **Bear markets**: Lower thresholds (MVRV > 1.5 may indicate local top) |
| 126 | + - **No single metric**: Always combine multiple data points for robust analysis |
| 127 | +
|
| 128 | + ## Setting Up Alerts |
| 129 | + On Sanbase, you can subscribe to alerts for surges in social volume to catch |
| 130 | + potential corrections early. Use the Social Trends tool to visualize momentum. |
| 131 | + """, |
| 132 | + references: [ |
| 133 | + %{ |
| 134 | + title: "Getting started with Santiment", |
| 135 | + url: "https://academy.santiment.net/santiment-introduction/" |
| 136 | + }, |
| 137 | + %{ |
| 138 | + title: "Getting started for traders", |
| 139 | + url: "https://academy.santiment.net/for-traders/" |
| 140 | + }, |
| 141 | + %{ |
| 142 | + title: "Understanding Short-Term Market Trends", |
| 143 | + url: |
| 144 | + "https://academy.santiment.net/education-and-use-cases/understanding-short-term-market-trends/" |
| 145 | + }, |
| 146 | + %{ |
| 147 | + title: "Sentiment metrics", |
| 148 | + url: "https://academy.santiment.net/metrics/sentiment-metrics/" |
| 149 | + } |
| 150 | + ] |
| 151 | + } |
| 152 | + end |
| 153 | +end |
0 commit comments