Skip to main content
Glama
TeleKashOracle

telekash-mcp-server

get_probability

Get real-time probability, odds, and likelihood for prediction market outcomes from Kalshi and Polymarket. Use for elections, crypto prices, sports, economics, weather, and entertainment forecasts.

Instructions

Get real-time probability, odds, and likelihood for any prediction market outcome.

Returns YES/NO probabilities (0-100%), trading volume, liquidity depth, and market metadata from Kalshi (CFTC-regulated) and Polymarket. Use this when asked about chances, odds, likelihood, forecasts, or predictions for any event — elections, crypto prices, sports, economics, weather, entertainment.

Example queries:

  • "What are the odds Trump wins 2028?" → election forecasting

  • "What's the probability BTC hits $200K?" → crypto price prediction

  • "Will the Fed cut rates?" → economic forecasting, interest rates

  • "What's the chance of rain in NYC?" → weather betting

  • "Who will win the Super Bowl?" → sports odds

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
market_idNoThe market UUID or external_id (ticker) to query
queryNoNatural language query to search for a market (alternative to market_id)

Implementation Reference

  • The core handler function implementing the logic for retrieving probability data.
    async function getProbability(
      supabase: SupabaseClient,
      args: { market_id?: string; query?: string },
    ): Promise<ToolResult> {
      if (!args.market_id && !args.query) return err("Provide market_id or query");
      const market = await findMarket(supabase, args.market_id, args.query);
      if (!market) return err("Market not found");
    
      const yesProb = Math.round((market.external_odds?.yes || 0.5) * 100);
      const volume = market.raw_data?.volume_24h || market.raw_data?.volume || 0;
      const liquidity = market.raw_data?.liquidity || 0;
      const confidence = computeConfidence({
        volume,
        liquidity,
        yesProbability: yesProb,
        closesAt: market.closes_at,
      });
      const jurisdictionInfo =
        SOURCE_JURISDICTION[market.source] || SOURCE_JURISDICTION.demo;
    
      return json({
        market_id: market.id,
        title: market.title,
        source: market.source,
        yes_probability: yesProb,
        no_probability: Math.round((market.external_odds?.no || 0.5) * 100),
        volume_24h: volume,
        liquidity,
        status: market.status,
        closes_at: market.closes_at,
        last_updated: market.updated_at,
        confidence,
        jurisdiction: jurisdictionInfo,
      });
    }
    
    async function listMarkets(
      supabase: SupabaseClient,
      args: {
  • The registration/invocation of getProbability inside the tool dispatch switch statement.
    case "get_probability":
      return getProbability(
        supabase,
        args as { market_id?: string; query?: string },
      );
  • Schema definition for the get_probability tool including input parameters and description.
    {
      name: "get_probability",
      description: `Get real-time probability for any prediction market outcome. Returns YES/NO probabilities (0-100%), volume, liquidity, and market metadata from Kalshi and Polymarket.`,
      inputSchema: {
        type: "object",
        properties: {
          market_id: {
            type: "string",
            description: "Market UUID or external_id",
          },
          query: {
            type: "string",
            description:
              "Natural language search query (alternative to market_id)",
          },
        },
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It effectively describes the tool's function and data sources (Kalshi and Polymarket), but lacks details on rate limits, authentication requirements, error handling, or response format specifics. It provides basic context but misses deeper behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and front-loaded with core functionality, followed by usage guidelines and examples. While slightly longer due to examples, every sentence adds value by clarifying scope and application, avoiding redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description provides good contextual completeness. It covers purpose, usage, data sources, and examples, though it could benefit from more detail on response structure or error cases to fully compensate for the lack of output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters (market_id and query). The description doesn't add specific parameter semantics beyond implying that 'query' can be a natural language search, which is already covered in the schema. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with specific verbs ('Get real-time probability, odds, and likelihood') and resources ('prediction market outcome'), distinguishing it from siblings like get_history or get_sentiment by focusing on current probability data rather than historical trends or sentiment analysis.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when to use this tool ('when asked about chances, odds, likelihood, forecasts, or predictions for any event') and includes specific examples across domains (elections, crypto, sports, etc.), clearly differentiating it from alternative tools like list_markets or search_markets that might handle broader market discovery.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TeleKashOracle/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server