Skip to main content
Glama
yigitabi5444

Polymarket MCP Server

by yigitabi5444

get_sampling_markets

Retrieve Polymarket markets currently eligible for liquidity rewards sampling to identify opportunities for participation.

Instructions

Get currently sampled Polymarket markets that are eligible for liquidity rewards.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the getSamplingMarkets method in the ClobApi class.
    async getSamplingMarkets(): Promise<ClobMarket[]> {
      return this.client.clob<ClobMarket[]>(
        "/sampling-markets",
        undefined,
        CACHE_TTLS.samplingMarkets,
      );
    }
  • Registration and tool handler wrapper for get_sampling_markets in the MCP server.
    server.tool(
      "get_sampling_markets",
      "Get currently sampled Polymarket markets that are eligible for liquidity rewards.",
      {},
      async () => {
        try {
          const data = await clob.getSamplingMarkets();
          return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
        } catch (error) {
          return {
            content: [{ type: "text", text: `Error: ${(error as Error).message}` }],
            isError: true,
          };
        }
      },
    );

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/yigitabi5444/yigit_polymarket_mcp'

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