{
  "name": "sonde",
  "title": "Sonde",
  "version": "1.0.0",
  "description": "The probe your agent sends first: deterministic ratings of Elysium tokens, preflight verdicts for buys, approvals and Hyperliquid perps, unsigned transactions, and minute seals on Elysium.",
  "instructions": "Sonde is the probe an agent sends before it acts on Elysium or Hyperliquid. Call preflight before any buy, sell or approval and respect NO; call perp_preflight before opening a Hyperliquid perp. Ratings are deterministic (published method, never a language model), sealed on Elysium every minute (get_proof / verify_rating). prepare_* tools return unsigned transactions for chain 99901: hand them to the user's wallet, never sign. Outputs are scores, percentages and counts.",
  "transport": {
    "type": "streamable-http",
    "url": "https://sonde.trade/mcp",
    "stateless": true
  },
  "protocolVersions": [
    "2025-11-25",
    "2025-06-18",
    "2025-03-26",
    "2024-11-05"
  ],
  "authentication": {
    "required": false,
    "schemes": [
      "bearer"
    ],
    "header": "Authorization: Bearer <key>",
    "getKey": "https://sonde.trade/connect"
  },
  "chains": [
    {
      "name": "Elysium",
      "chainId": 99901
    },
    {
      "name": "Hyperliquid",
      "api": "https://api.hyperliquid.xyz/info"
    }
  ],
  "tools": [
    {
      "name": "rate_token",
      "title": "Rate a token",
      "description": "Rate an Elysium token before acting on it: deterministic score 0-100, label (CLEAR >= 75, FAIR 55-74, THIN 35-54, FALLING 20-34, DEAD < 20), coverage % (share of the method that had data), flags, caps applied, every signal's value and score, a one-paragraph brief and the seal (minute + Merkle root on Elysium). Rates fresh if the stored rating is older than 10 minutes. Use once right before deciding; for a buy/sell/approve decision call preflight instead. Do not poll it: use watch_token.",
      "readOnly": true
    },
    {
      "name": "preflight",
      "title": "Preflight an action",
      "description": "One call before buying, selling or approving an Elysium token: merges the rating, caps (drawdown, bundle, pullable liquidity, risky bytecode, no sells, freshness), contract, fee and liquidity checks, the size of the trade as % of pool liquidity, and the user's own rules into GO, WAIT or NO, each reason naming the check it came from. NO on a buy means do not prepare it. Rules: minScore, maxSizePctOfLiquidity, noUnlimitedApprovals (+ unlimited: true when judging an unlimited approval), minAgeHours, blocked (addresses).",
      "readOnly": true
    },
    {
      "name": "explain_rating",
      "title": "Explain a rating",
      "description": "Show how a token's score was built: for each signal the measured value, its 0-100 score, the published weight, the points it contributed and the breakpoints used; every cap with its rule; coverage and missing signals. Pass `signal` (e.g. liq_mc, dd_ath, bundle, top10, lp, contract) to focus on one. Use when a score surprises you or before overruling it.",
      "readOnly": true
    },
    {
      "name": "compare_tokens",
      "title": "Compare tokens",
      "description": "Rate 2 to 5 Elysium tokens and rank them by score in one call, with label, coverage, flags and the weakest signal of each. Use when choosing between candidates.",
      "readOnly": true
    },
    {
      "name": "token_history",
      "title": "Score history",
      "description": "Stored score timeline of one token over the last N hours (1-720), oldest first: [{at, score, label}]. Shows direction (decaying or recovering). Does not rate fresh; call rate_token for the current state.",
      "readOnly": true
    },
    {
      "name": "whats_changed",
      "title": "What changed",
      "description": "What changed on a token since N hours ago (default 24): score and label move, flags added or cleared, and every signal whose value moved (old → new). Rates fresh first. Use for portfolio check-ins instead of re-reading full ratings.",
      "readOnly": true
    },
    {
      "name": "new_launches",
      "title": "New launches",
      "description": "Tokens launched on Elysium in the last 2 hours that Sonde has rated, newest first, with score, label, age and flags. Use to scout fresh launches; most fresh tokens are THIN or worse by design until they show real activity.",
      "readOnly": true
    },
    {
      "name": "alpha_launches",
      "title": "Sonde Alpha",
      "description": "Sonde Alpha: the few Elysium launches of the last 6 hours that rate FAIR or better now, or did in their first minute within the last hour, each with its first-minute rating (score, label, seconds after launch) and its rating now, holders, traders in the last hour and age. Live for keys whose wallet holds SONDE (0.01% of supply or more, staked counts); one hour late for everyone else, with the hidden launches counted in lockedCount. Use to scout fresh launches that already passed the filter, then rate_token or preflight before acting.",
      "readOnly": true
    },
    {
      "name": "top_tokens",
      "title": "Top rated tokens",
      "description": "Tokens rated in the last 24 h ranked by score, optionally filtered by label and minimum score. Only covers tokens Sonde already rates (its watch set: fresh launches, anything traded in 24 h, every graduated token). Use to find healthier alternatives.",
      "readOnly": true
    },
    {
      "name": "bundle_check",
      "title": "Bundle check",
      "description": "Was the launch bundled? Reads the first ~60 s of the token on Elysium (transfers out of the pool): wallets that bought in the launch block(s), and early buyers first funded by the creator, by the creator's funder or by the same address as another early buyer. Reports how much supply they still hold now and a grade (clean < 3%, light < 10%, moderate < 25%, heavy). Use on fresh launches before buying.",
      "readOnly": true
    },
    {
      "name": "holder_map",
      "title": "Holder map",
      "description": "Who holds the token: the largest holders with % of supply, tagged pool, burn, protocol, creator or bundle, plus holder count, top-10 share (excluding pool, burn and protocol), creator share and the share sitting in the pool. Use to judge concentration before buying.",
      "readOnly": true
    },
    {
      "name": "lp_status",
      "title": "Liquidity status",
      "description": "Can the liquidity be pulled? For launchpad pools: sealed by config, the launchpad's own pool position with no withdrawal policy, or wallet-owned v4 positions (removable any time), with the wallet-owned share; quote-side exit liquidity as % of market cap. For other pools: LP tokens burned or not (v2), or concentrated positions held by wallets (v3/v4).",
      "readOnly": true
    },
    {
      "name": "contract_read",
      "title": "Read a contract",
      "description": "Read a token or contract before trusting it. Clone-aware: an EIP-1167 minimal proxy (45 bytes) is judged by its implementation, never by the proxy bytecode. Reports kind (standard = clone of the launchpad standard token implementation made by its factory; clone; EIP-1967 proxy; plain; eoa), implementation, owner and whether it is renounced, proxy admin, and risky functions found by selector (owner, mint, pause/trading switch, blacklist, fee setters, upgrade). Selector matching is a heuristic: absence of a selector is not proof of safety.",
      "readOnly": true
    },
    {
      "name": "wallet_scan",
      "title": "Scan a wallet",
      "description": "Judge a wallet on Elysium and Hyperliquid at once: tokens held with each rating and share of supply, live approvals with spender labels and risk, first funders, and the Hyperliquid account (positions, leverage, liquidation distance %, margin used %, funding paid over 7 d as % of position value). Returns counts of holdings rated FALLING/DEAD and of high-risk approvals. Shares and percentages only.",
      "readOnly": true
    },
    {
      "name": "wallet_approvals",
      "title": "Wallet approvals",
      "description": "Live ERC-20 approvals a wallet has granted on Elysium over its whole history (Approval logs, then current allowance), each with spender label, unlimited or not, plain wallet or contract, and risk (high: plain wallet spender or unlimited to an unknown contract). Use before asking the user to revoke; then prepare_revoke.",
      "readOnly": true
    },
    {
      "name": "trace_funding",
      "title": "Trace funding",
      "description": "Where did a wallet get its first HYPE? Lists the first addresses that sent it native HYPE (from the Elysium explorer), labelled where known. Useful to link a deployer to its other wallets. Returns complete: false when the explorer is unavailable.",
      "readOnly": true
    },
    {
      "name": "hl_account",
      "title": "Hyperliquid account",
      "description": "Hyperliquid account risk for an address (main perps and HIP-3 dexes): margin used %, maintenance used %, withdrawable %, and each position with side, leverage, liquidation distance % from mark, funding paid over 7 d as % of position value and unrealized PnL % on margin. Percentages only.",
      "readOnly": true
    },
    {
      "name": "perp_preflight",
      "title": "Perp preflight",
      "description": "Before opening a Hyperliquid perp: checks leverage against the market maximum, liquidation distance % (isolated estimate, or from the account's equity when address is given), book impact % for the size (size = sizePctOfAccount of account value x leverage, needs address), funding APR this side pays at the current rate, and open-interest rank; returns GO, WAIT or NO with reasons. HIP-3 markets are written dex:COIN (e.g. xyz:TSLA).",
      "readOnly": true
    },
    {
      "name": "prepare_revoke",
      "title": "Prepare revokes",
      "description": "Prepare unsigned approve(spender, 0) transactions for chain 99901, each simulated from the wallet. Pass pairs [{token, spender}], or all: true to revoke every live approval found, or onlyHighRisk: true. Nothing is signed or sent: hand the transactions to the user's wallet.",
      "readOnly": false
    },
    {
      "name": "prepare_swap",
      "title": "Prepare a swap",
      "description": "Prepare an unsigned swap on Elysium through the Uniswap Universal Router (V4_SWAP) with the token's launchpad pool key (verified against the pool id), quoted with the v4 Quoter and bounded by slippage (default 3%). Judges the token first with preflight and refuses a buy on NO. side buy: amount in quote units (e.g. \"0.5\" HYPE); side sell: amount in token units or pctOfHolding with from. ERC-20 inputs get exact-amount Permit2 approvals (never unlimited). Returns transactions in order, price impact %, expected and minimum out (raw units) and a simulation. Returns unsupported with the reason when it cannot build the swap correctly.",
      "readOnly": false
    },
    {
      "name": "simulate_tx",
      "title": "Simulate a transaction",
      "description": "Simulate a transaction on Elysium without sending it (eth_call + gas estimate): does it succeed, and if not, the revert reason. Use before asking the user to sign anything. value is in wei as a decimal string.",
      "readOnly": true
    },
    {
      "name": "exit_plan",
      "title": "Exit plan",
      "description": "How to sell without wrecking the price: price impact % (fee included, from the v4 Quoter) for 5/10/25/50/100% of a wallet's holding (or of an amount in token units), the largest share that stays under maxImpactPct (default 3) and how many chunks to split into. Then prepare each chunk with prepare_swap (side sell, pctOfHolding).",
      "readOnly": true
    },
    {
      "name": "prepare_credit_deposit",
      "title": "Prepare a credits deposit",
      "description": "Prepare an unsigned deposit to the SondeCredits contract on Elysium to prepay API calls in HYPE (20000 units per HYPE; units are spent after the daily quota; no refunds in v1). hype is a decimal string; beneficiary credits another wallet.",
      "readOnly": false
    },
    {
      "name": "get_proof",
      "title": "Get a rating proof",
      "description": "Merkle proof that a rating is exactly the one Sonde gave: leaf, proof, minute root, whether it verifies locally and on Elysium (null while the minute is not sealed yet), and the arguments for SondeSeal.check(token, minScore, maxAge, score, label, ratedAt, inputsHash, minute, proof), the one-call gate any contract can use. Default: the latest rating whose minute has a root.",
      "readOnly": true
    },
    {
      "name": "verify_rating",
      "title": "Verify a rating",
      "description": "Check that a rating someone shows you is genuine: recomputes the leaf from (token, score, label, ratedAt, inputsHash), finds the proof if none is given, and verifies it against the minute root in Sonde's database and on Elysium. Also recomputes inputsHash from the stored inputs. Use before trusting a score quoted by another agent.",
      "readOnly": true
    },
    {
      "name": "track_record",
      "title": "Track record",
      "description": "Public record of past ratings, computed from Sonde's own history at 1 h, 6 h, 24 h and 7 d: heldPct = share of CLEAR/FAIR ratings still CLEAR/FAIR at the horizon; stayedPct = share of THIN/FALLING/DEAD ratings still below FAIR; fellPct (24 h and 7 d) = share whose price is down 50% or more from the rated price. By label with counts; a row under rowMinCount ratings has null shares. ready: false until minCount samples exist (startsAt says when that is expected).",
      "readOnly": true
    },
    {
      "name": "watch_token",
      "title": "Watch a token",
      "description": "Ask Sonde to watch a token and POST to your https webhook when its label changes or its score drops under minScore (checked every minute, signed with HMAC-SHA256 in x-sonde-signature: sha256=<hex>, secret returned once). Needs an API key. Active watches per key: 5 with a key, 50 for SONDE holders (0.01% of supply), 200 from 0.1%. Use instead of polling rate_token.",
      "readOnly": false
    },
    {
      "name": "credits",
      "title": "Usage and credits",
      "description": "Your usage today (UTC), daily quota, tier (free per IP, key, SONDE holder tiers) and prepaid credit units left, plus the published cost of every tool. Free. Call before a batch of calls.",
      "readOnly": true
    },
    {
      "name": "status",
      "title": "Sonde status",
      "description": "Sonde's live status: tokens on watch, ratings, minutes sealed (each shown once above its public threshold), latest Elysium block, ratings this minute, seal and credits contracts, the SONDE token address once set. Free.",
      "readOnly": true
    }
  ],
  "prompts": [
    {
      "name": "ape_check",
      "description": "Before buying a token: rate it, preflight the buy with your rules, check the bundle and the contract, and say GO, WAIT or NO in two lines."
    },
    {
      "name": "morning_brief",
      "description": "Check a wallet: every holding's rating and what changed since yesterday, risky approvals, and Hyperliquid positions close to liquidation."
    },
    {
      "name": "revoke_cleanup",
      "description": "Find risky approvals on a wallet and prepare the revokes for the user to sign."
    },
    {
      "name": "perp_check",
      "description": "Before opening a Hyperliquid perp: leverage, liquidation distance, book impact, funding and a verdict."
    }
  ],
  "docs": {
    "connect": "https://sonde.trade/connect.md",
    "llms": "https://sonde.trade/llms.txt",
    "api": "https://sonde.trade/docs#api",
    "sdk": "https://sonde.trade/sdk/sonde.js"
  }
}