Skip to main content
Glama
Rekko-AI
by Rekko-AI

get_strategy

Analyze prediction markets to generate trading strategies with causal decomposition, supporting platforms like Kalshi and Polymarket for informed decision-making.

Instructions

Run a full analysis and return a strategy signal with causal decomposition.

This is a blocking call that takes 30-90 seconds. For async control, use analyze_market + check_analysis_status + get_analysis instead.

Args: market_query: Description of the bet or market question to analyze. risk_limit: Reserved for position sizing constraints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
market_queryYes
risk_limitNo

Implementation Reference

  • The `get_strategy` tool is registered using `@mcp.tool()` and implemented as an asynchronous handler that makes an HTTP POST request to the `/v1/signals` endpoint.
    @mcp.tool()
    async def get_strategy(market_query: str, risk_limit: float = 0.0) -> str:
        """Run a full analysis and return a strategy signal with causal decomposition.
    
        This is a blocking call that takes 30-90 seconds. For async control, use
        analyze_market + check_analysis_status + get_analysis instead.
    
        Args:
            market_query: Description of the bet or market question to analyze.
            risk_limit: Reserved for position sizing constraints.
        """
        body: dict = {"market_query": market_query}
        if risk_limit > 0:
            body["risk_limit"] = risk_limit
        return await _request("POST", "/v1/signals", json=body)

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