search_polymarket
Find prediction markets on Polymarket by searching keywords to identify events with current odds for informed decision-making.
Instructions
Search Polymarket events by keyword.
Args: query: Search query limit: Number of results to return
Returns: Matching prediction markets with current odds.
Price: $0.20
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| limit | No |
Implementation Reference
- coinrailz_mcp/__init__.py:842-858 (handler)The search_polymarket function is defined as an MCP tool, accepting a query and limit, and calling the 'polymarket-search' service via 'call_coinrailz_service'.
@mcp.tool() async def search_polymarket(query: str, limit: int = 10) -> str: """ Search Polymarket events by keyword. Args: query: Search query limit: Number of results to return Returns: Matching prediction markets with current odds. Price: $0.20 """ payload = {"query": query, "limit": limit} result = await call_coinrailz_service("polymarket-search", payload) return json.dumps(result, indent=2)