Foresea
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FORESEA_API_KEY | No | Optional API key for an authenticated private deployment; forwarded as X-API-Key. Leave empty for the public API. | |
| FORESEA_BASE_URL | No | Foresea backend API URL. Uses the public hosted API by default; set this for a private Foresea deployment. | https://foresea.ink |
| FORESEA_MCP_TIMEOUT_S | No | Timeout in seconds for backend API requests. | 120 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Foresea gives calibrated probabilities for any resolvable future event, with evidence and the edge vs prediction markets — and it publishes a resolved track record so you can see how right it's been. Use forecast for any yes/no question, analyze_market to evaluate a specific Polymarket/Kalshi market, scan_markets / edge_board to find mispriced markets, and track_record to gauge how much to trust a forecast before acting.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| foresea_forecastA | Call this whenever the user asks about probability, likelihood, or whether something will happen. Good triggers: "Will X happen?", "What are the chances of Y?", "How likely is Z?", "What's the probability that…", "Do you think X will…", "Should I bet on…". Returns a calibrated YES/NO probability (or numeric/date range) with written rationale and supporting news evidence. If you also have a market price (market_probability) or URL (market_url), pass it to get the model-vs-market edge — how mispriced the market is. Example: question="Will the Fed cut rates by March 2026?", market_probability=0.4 → {predicted_answer:"No", confidence:0.62, rationale, evidence_sources, market_analysis:{model_probability:0.54, edge:+0.14, stance:"model_above_market"}} Handles: binary YES/NO, multiple-choice, numeric ranges, and date questions. |
| foresea_analyze_marketA | Call this when the user mentions a specific prediction market by URL, slug, or ticker — or asks whether a particular market is over/underpriced. Good triggers: "Is this Polymarket fair?", "What's the edge on kalshi:XXXXX?", "Should I buy/sell this market?", user pastes a Polymarket or Kalshi URL. Fetches the live price, gathers evidence, forecasts, computes model-vs-market edge, and returns a recommendation. Use foresea_forecast instead when there is no specific live market — just a general probability question. Example: platform="polymarket", slug="fed-rate-cut-march-2026" → {model_probability, market_probability, edge, stance, recommendation, thesis}. |
| foresea_scan_marketsA | Call this when the user wants to find mispriced or interesting markets, not evaluate a specific one. Good triggers: "What should I bet on?", "Find me trading opportunities", "Which markets are mispriced right now?", "What's Foresea's best edge today?", "Scan Polymarket for opportunities". Returns markets ranked by model-vs-market disagreement, each with model probability, market price, and edge. For a specific market, use foresea_analyze_market instead. Example: platform="kalshi", min_edge=0.1 → [{question, market_probability, model_probability, edge, market_url}]. |
| foresea_batch_quotesA | Call this when the user wants current price/volume for several markets at once -- a watchlist, a portfolio, "check on these 5 markets" -- instead of calling foresea_analyze_market once per market. Each ref is "platform:ident", e.g. "kalshi:KXFED-25JUN-H" or "polymarket:some-market-slug". Every quote carries fetched_at and age_seconds so you can judge freshness yourself -- both venues rate-limit hard, so don't assume a quote is live without checking age_seconds. One bad ref returns an error on that entry only; the rest of the batch still succeeds. Up to 50 refs per call. Example: refs=["kalshi:KXFED-25JUN-H", "polymarket:fed-cut-2026"] → {quotes: [{platform, ident, probability, volume, fetched_at, age_seconds, error}], count, truncated}. |
| foresea_check_runA | Call this after foresea_analyze_market timed out or errored with a message naming a client_run_key -- the research it started may still be running server-side. Returns {"status": "running", ...} if it's not done yet (call again in a bit), or the full report once it is. Do not call this speculatively; only use the client_run_key a prior foresea_analyze_market call actually gave you. Example: client_run_key="a1b2c3..." → {status:"running", id:"agent_run_..."} or the full report once complete. |
| foresea_track_recordA | Call this when the user asks how reliable or accurate Foresea is, or wants to know whether to trust a forecast. Good triggers: "How good is Foresea?", "What's the track record?", "Has it been right before?", "Is it calibrated?", "What's the Brier score?". Returns accuracy, Brier score, calibration (ECE), and skill-vs-market broken down by time horizon. Pass optional fields list (e.g. ['brier_score', 'accuracy', 'n_snapshots_resolved']) to reduce token usage. |
| foresea_edge_boardA | Call this when the user wants the current top trading opportunities with explicit trade directions and historical backing. Good triggers: "What are the best bets right now?", "Show me the edge board", "Which model is winning the paper-trading competition?", "What's the strongest edge today?", "Are these edges statistically significant?". Returns open markets ranked by model-vs-market disagreement, each with Buy YES/NO direction, implied odds, whether the edge is historically significant, and a multi-model comparison. Supports cursor pagination, limit, min_edge threshold, and field masking. |
| foresea_venue_dataA | Read public historical markets/candles/trades, batch books/midpoints/spreads, fees, holders, open interest, event volume, milestones and weather. Omit operation to discover operation names and schemas. No account or write access. |
| foresea_exchange_statusA | Call this to check Kalshi exchange operational status (trading active flag) and operational hours/schedule. |
| foresea_orderbookA | Call this to fetch the live bids and asks orderbook depth for a Kalshi market ticker (e.g. 'KXFED-25JUN-H') or Polymarket YES-token ID. |
| foresea_market_tagsA | Call this to sample Polymarket's category vocabulary. Each entry is a label and the slug that identifies it. |
| foresea_price_historyB | Call this to retrieve historical price series or OHLC candlesticks for a market (e.g. Kalshi ticker or Polymarket token/slug). |
| foresea_live_dataA | Call this to fetch real-time sports game statistics, play-by-play data, and live event feeds from Kalshi. Provide event_ticker for event charts, or milestone_id with data_type="game_stats" for play-by-play. |
| foresea_polymarket_metaA | Call this to fetch Polymarket metadata: event series listings, community discussion comments for a market, or sports league metadata (target: 'series', 'comments', 'sports', 'teams'). |
| foresea_recent_tradesB | Call this to fetch recent public executed trades / trade tape (prices, sizes, timestamps) on Kalshi or Polymarket. |
| foresea_market_leaderboardB | Call this to fetch the top profitable prediction market trader leaderboard and rankings from Polymarket. |
| foresea_debate_marketB | Conduct an adversarial multi-agent debate (Bull vs. Bear vs. Chief Risk Judge) to cross-examine evidence and isolate blind spots on a forecasting question. |
| foresea_optimize_portfolioB | Calculate optimal mathematical Fractional Kelly capital allocations and position sizes across live Grade A/B prediction market opportunities. |
| foresea_feed_latestB | Fetch the real-time unified Foresea Alpha & Agent Feed, combining live prediction market edge signals, autonomous agent trades & theses, and leaderboard standings. |
| foresea_weather_radarB | Scan live temperature and weather prediction markets (Kalshi KXHIGHNY, KXHIGHCHI, KXHIGHMIA, KXHIGHAUS, KXHIGHDEN, KXHIGHPHIL, etc.) against neural weather models (Google DeepMind WeatherNext 3 / MetNet) and high-resolution multi-model ensembles, calibrated with station microclimate bias profiles. Returns ranked mispricings, strike bracket probabilities, and model-vs-market edge. |
| foresea_weather_forecastB | Retrieve neural model weather forecasts (Google Maps Weather API / WeatherNext 3 / MetNet, ECMWF, GFS, GraphCast) with empirical station bias correction (e.g. KNYC Central Park, KMDW Chicago Midway, KDEN Denver) and strike bracket probability calculations for weather prediction markets. |
| foresea_batch_forecastB | Submit up to 25 forecasting questions concurrently and receive structured predictions with confidence probabilities, bull/bear factor decomposition, key catalysts, and evidence citations for each question. |
| foresea_crypto_edgeB | Scan real-time Kalshi cryptocurrency prediction markets (KXBTCD threshold contracts) scored against Black-Scholes zero-drift diffusion models and spot volatility. Returns tradeable market mispricings, implied odds, calibration reliability, and realized paper equity curves. |
| foresea_webhook_subscribeA | Subscribe an external agent HTTP callback webhook to receive real-time dispatches for new forecasts and market edge opportunities. The response contains an HMAC secret (X-Foresea-Signature) for validating incoming payloads. |
| foresea_trade_account_statusA | Check real prediction-market trading readiness, max order notional limits, and venue configuration statuses for Kalshi and Polymarket. |
| foresea_preview_orderB | Validate, normalize, and simulate guardrail checks for a real Kalshi or Polymarket order without submitting it to the exchange. |
| foresea_place_orderA | Submit a guarded real order to Kalshi or Polymarket. Live execution requires confirmation='PLACE REAL ORDER' and execute=True, and is protected by server notional ceilings and exchange guardrails. |
| foresea_cancel_orderB | Cancel an active open order on Kalshi or Polymarket using its venue order ID. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| foresea_forecast_prompt | Create a compact prompt that asks an agent to use Foresea for a forecast. |
| foresea_batch_forecast_prompt | Create a prompt asking an agent to batch-forecast multiple questions using foresea_batch_forecast. |
| foresea_crypto_edge_prompt | Scan real-time cryptocurrency prediction market arbitrage and mispricings. |
| foresea_market_risk_prompt | Evaluate macroeconomic or event risks using live prediction market probability consensus. |
| foresea_calibrate_hypothesis | Cross-examine a factual or forward-looking hypothesis against calibrated forecasting models. |
| foresea_system_prompt | Returns the recommended system prompt snippet for Claude Desktop and agent harnesses. Paste this into your configuration to make the agent proactively use Foresea tools. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Foresea live weather radar | Live weather prediction market radar with neural model mispricings. |
| Foresea track record | Foresea's public resolved-forecast track record. |
| Foresea live edge board | Live prediction market edge board with model-vs-market mispricings. |
| Foresea trending markets | Top trending and active prediction markets across Polymarket and Kalshi. |
| Foresea OpenAPI schema | Foresea's public OpenAPI schema. |
| Foresea agent trading leaderboard | Live agent shadow trading leaderboard and model returns. |
| Foresea live market radar | Live prediction market radar and mispriced opportunities. |
| Foresea live crypto edge and calibration | Live Kalshi crypto prediction market mispricings and calibration data. |
TDQS
Scored across 28 tools
The forecast/analyze_market/debate_market trio is well-separated by descriptions, but several clusters genuinely overlap: scan_markets vs edge_board both return markets ranked by model-vs-market edge, and venue_data is a catch-all whose stated operations (candles, trades, books, weather, milestone) duplicate price_history, recent_trades, orderbook, live_data and market_tags. Weather_radar vs weather_forecast is also thin, distinguishable mainly by 'scan markets' vs 'get forecast'.
Every tool carries the foresea_ prefix and uses snake_case, with a dominant verb_noun shape (analyze_market, cancel_order, place_order, batch_forecast, track_record). A handful are noun-first (edge_board, venue_data, orderbook, exchange_status, crypto_edge) but these remain readable and predictable.
28 tools is heavy for the surface, and a few earn questionable place given overlaps (venue_data swallowing several single-purpose tools, edge_board vs scan_markets, weather_radar vs weather_forecast). The trading and forecasting tooling is substantive, so it is over-scoped rather than bloated for its own sake.
Order lifecycle has preview/place/cancel plus account status and portfolio optimization, and read-side market data is rich. However, there is no tool to list open orders, positions, balances or order status by market, so an agent that places an order cannot enumerate or reconcile its book — a significant gap for a trading server.