Skip to main content
Glama

analyze_market

Analyze prediction market bets by initiating deep research pipelines for platforms like Kalshi and Polymarket. Provides market intelligence through causal analysis to support informed trading decisions.

Instructions

Start a deep research analysis pipeline for a prediction market bet.

Returns immediately with an analysis_id. Poll with check_analysis_status every 5 seconds until complete, then retrieve results with get_analysis.

Args: bet_text: Description of the bet or market question to analyze. platform: Source platform hint: "kalshi", "polymarket", or "".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bet_textYes
platformNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The analyze_market tool handler, which triggers a deep research analysis pipeline by making a POST request to the /v1/insights endpoint.
    @mcp.tool()
    async def analyze_market(bet_text: str, platform: str = "") -> str:
        """Start a deep research analysis pipeline for a prediction market bet.
    
        Returns immediately with an analysis_id. Poll with check_analysis_status
        every 5 seconds until complete, then retrieve results with get_analysis.
    
        Args:
            bet_text: Description of the bet or market question to analyze.
            platform: Source platform hint: "kalshi", "polymarket", or "".
        """
        body: dict = {"bet_text": bet_text}
        if platform:
            body["platform"] = platform
        return await _request("POST", "/v1/insights", json=body)
Behavior4/5

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

With no annotations, description carries full burden and successfully discloses critical async behavior (immediate return, polling required, completion state). Lacks details on rate limits, concurrency constraints, or error conditions, but covers the essential lifecycle.

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?

Well-structured with clear sections for purpose, return behavior, workflow, and parameters. No wasted sentences. Minor deduction for slightly informal 'Args:' formatting, but remains highly readable and appropriately sized.

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 async complexity and 0% schema coverage, description successfully documents parameters and explains the polling workflow. Output schema exists (per context signals), so detailed return value explanation isn't required; mentioning analysis_id is sufficient.

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

Parameters5/5

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

Schema has 0% description coverage. Description fully compensates by documenting both parameters: bet_text is defined as the 'Description of the bet or market question' and platform as a 'Source platform hint' with specific valid values ('kalshi', 'polymarket', or empty string).

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?

States specific action ('Start a deep research analysis pipeline') and resource ('prediction market bet'). Clearly distinguishes from siblings like get_analysis or check_analysis_status by emphasizing this initiates the pipeline rather than retrieving results.

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?

Provides explicit workflow guidance: returns immediately with analysis_id, poll with check_analysis_status every 5 seconds, then retrieve with get_analysis. Names specific sibling tools to use in sequence, making the async pattern unambiguous.

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/Rekko-AI/rekko-mcp'

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