Skip to main content
Glama

waiaas_pm_get_market_detail

Retrieve detailed information about a specific Polymarket prediction market using its condition ID to analyze market data and outcomes.

Instructions

Get detailed information about a specific Polymarket prediction market.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
condition_idYesMarket condition ID.

Implementation Reference

  • The implementation of the 'waiaas_pm_get_market_detail' MCP tool handler within the Polymarket tools registration. It takes 'condition_id' as an argument and performs a GET request to the Polymarket API.
    // pm_get_market_detail
    server.tool(
      'waiaas_pm_get_market_detail',
      'Get detailed information about a specific Polymarket prediction market.',
      {
        condition_id: z.string().describe('Market condition ID.'),
      },
      async (args) => {
        const result = await apiClient.get(`/v1/polymarket/markets/${args.condition_id}`);
        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