Skip to main content
Glama
TeleKashOracle

telekash-mcp-server

generate_api_key

Create a TeleKash API key to access prediction market intelligence tools, including probability data, market analysis, and arbitrage detection across 500+ live markets.

Instructions

Generate a free TeleKash API key for rate-limited access to prediction market intelligence.

Free tier: 100 calls/day, 7 core tools (probability, markets, search, history, sentiment, stats, trending). Calibration tier ($99/mo): 1,000 calls/day + arbitrage, divergence, and performance tracking tools. Edge tier ($499/mo): Unlimited + TPF signals, Kelly sizing, and market creation.

The API key is returned ONCE — save it immediately. Set it as TELEKASH_API_KEY environment variable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
owner_idYesYour agent or user identifier (used for key management)
owner_emailNoContact email (optional, for billing if upgrading)

Implementation Reference

  • The handler function that generates, hashes, and stores the API key in Supabase.
    async function generateApiKey(
      supabase: SupabaseClient,
      args: { owner_id: string; owner_email?: string },
    ): Promise<ToolResult> {
      const key = `tk_${crypto.randomUUID().replace(/-/g, "")}`;
      const encoder = new TextEncoder();
      const hashBuffer = await crypto.subtle.digest("SHA-256", encoder.encode(key));
      const keyHash = Array.from(new Uint8Array(hashBuffer))
        .map((b) => b.toString(16).padStart(2, "0"))
        .join("");
    
      const { error } = await supabase.from("telekash_api_keys").insert({
        key_hash: keyHash,
        owner_id: args.owner_id,
        owner_email: args.owner_email,
        tier: "free",
        daily_limit: 100,
        status: "active",
      });
    
      if (error) throw new Error(`API key generation failed: ${error.message}`);
    
      return json({
        api_key: key,
        tier: "free",
        daily_limit: 100,
        _warning: "Save this key now — it cannot be retrieved later.",
        usage: "Set header: Authorization: Bearer <key>",
      });
  • Tool dispatching logic that calls the generateApiKey handler.
    case "generate_api_key":
      return generateApiKey(
        supabase,
        args as { owner_id: string; owner_email?: string },
      );
  • Tool definition including description and input schema.
    {
      name: "generate_api_key",
      description: `Generate a free TeleKash API key. Free tier: 100 calls/day. Save the key — shown once.`,
      inputSchema: {
        type: "object",
        properties: {
          owner_id: { type: "string", description: "Agent or user identifier" },
          owner_email: {
            type: "string",
            description: "Contact email (optional)",
          },
Behavior4/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 key behaviors: the API key is returned only once (ephemeral nature), requires immediate saving, and outlines rate limits and tier differences (free vs. paid). It misses details like error handling or authentication requirements, but covers critical operational aspects.

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 the core purpose. However, the tier details (free, calibration, edge) could be more concise, as they occupy multiple lines without adding critical guidance for tool invocation. Most sentences earn their place, but some trimming would improve efficiency.

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 no annotations and no output schema, the description does a good job covering key aspects: purpose, behavioral traits (key generation, one-time return, tier limits), and usage context. It lacks details on output format or error cases, but for a tool with simple parameters and clear intent, it is largely complete.

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 (owner_id and owner_email). The description does not add any parameter-specific semantics beyond what the schema provides (e.g., it doesn't clarify format or usage examples). Baseline score of 3 is appropriate as the schema handles parameter documentation adequately.

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: 'Generate a free TeleKash API key for rate-limited access to prediction market intelligence.' It specifies the verb ('Generate'), resource ('API key'), and distinguishes it from sibling tools (which are data retrieval tools, not key generation tools).

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

Usage Guidelines4/5

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

The description provides clear context on when to use this tool: to obtain API access for using other tools. It implicitly suggests alternatives (upgrading tiers for more features) but does not explicitly name when NOT to use it or compare to specific sibling tools. The guidance is practical but lacks explicit exclusion criteria.

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