waiaas_pm_get_markets
Retrieve Polymarket prediction markets with category, status, keyword, or limit filters to analyze crypto market insights.
Instructions
Browse Polymarket prediction markets with optional filters.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Market category filter. | |
| status | No | Market status filter (e.g., active, resolved). | |
| keyword | No | Search keyword. | |
| limit | No | Maximum number of markets to return. |
Implementation Reference
- Implementation of the 'waiaas_pm_get_markets' tool in the Polymarket MCP tool set. It handles the registration, input schema, and executes an API call to the polymarket service.
// pm_get_markets server.tool( 'waiaas_pm_get_markets', 'Browse Polymarket prediction markets with optional filters.', { category: z.string().optional().describe('Market category filter.'), status: z.string().optional().describe('Market status filter (e.g., active, resolved).'), keyword: z.string().optional().describe('Search keyword.'), limit: z.string().optional().describe('Maximum number of markets to return.'), }, async (args) => { const params = new URLSearchParams(); if (args.category) params.set('category', args.category); if (args.status) params.set('status', args.status); if (args.keyword) params.set('keyword', args.keyword); if (args.limit) params.set('limit', args.limit); const qs = params.toString(); const result = await apiClient.get(`/v1/polymarket/markets${qs ? '?' + qs : ''}`); return toToolResult(result); }, );