Skip to main content
Glama

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
NameRequiredDescriptionDefault
categoryNoMarket category filter.
statusNoMarket status filter (e.g., active, resolved).
keywordNoSearch keyword.
limitNoMaximum 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);
      },
    );

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/minhoyoo-iotrust/WAIaaS'

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