Skip to main content
Glama

list_markets

Retrieve current prediction markets from Kalshi and Polymarket platforms. Filter by source or set a limit to find specific markets for analysis and trading decisions.

Instructions

List current prediction markets from Kalshi and Polymarket.

Args: source: Filter by platform: "kalshi", "polymarket", or "" for all. limit: Maximum number of markets to return (1-100).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The list_markets tool is defined and registered as an MCP tool using the @mcp.tool() decorator, and it dispatches the request to the /v1/markets endpoint.
    @mcp.tool()
    async def list_markets(source: str = "", limit: int = 30) -> str:
        """List current prediction markets from Kalshi and Polymarket.
    
        Args:
            source: Filter by platform: "kalshi", "polymarket", or "" for all.
            limit: Maximum number of markets to return (1-100).
        """
        params: dict = {"limit": limit}
        if source:
            params["source"] = source
        return await _request("GET", "/v1/markets", params=params)
Behavior2/5

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

No annotations provided, so description carries full burden. It mentions 'current' markets but lacks disclosure on caching, rate limits, authentication requirements, or what happens when no markets match the filter. With output schema present, it correctly omits return structure details, but other behavioral traits are missing.

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?

Front-loaded with a clear purpose statement followed by a structured Args section. No redundant or wasted sentences, though the docstring-style formatting is slightly verbose compared to inline prose.

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

Completeness3/5

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

Adequate for a simple listing tool with 2 parameters and an output schema (which handles return documentation). However, gaps in behavioral transparency and sibling differentiation leave it incomplete given the rich ecosystem of 20+ related tools.

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 description coverage is 0%, but the Args section excellently compensates by documenting both parameters: it specifies valid string values for 'source' ('kalshi', 'polymarket', or empty for all) and the valid range for 'limit' (1-100), adding crucial semantic meaning absent from the raw schema.

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

Purpose4/5

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

States specific verb (List) + resource (prediction markets) + scope (Kalshi and Polymarket platforms). However, it does not differentiate from siblings like 'search_markets' or 'screen_markets' which likely overlap in functionality.

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

Usage Guidelines2/5

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

Provides no guidance on when to use this tool versus alternatives such as 'search_markets', 'get_market', or 'screen_markets'. No prerequisites or exclusions are mentioned.

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