Skip to main content
Glama
yigitabi5444

Polymarket MCP Server

by yigitabi5444

get_tick_size

Retrieve the minimum price increment for Polymarket prediction market tokens to ensure accurate trading calculations and order placement.

Instructions

Get the minimum tick size (price increment) for a Polymarket token.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
token_idYesCLOB token ID

Implementation Reference

  • Registration of the get_tick_size tool.
    server.tool(
      "get_tick_size",
      "Get the minimum tick size (price increment) for a Polymarket token.",
      {
        token_id: z.string().describe("CLOB token ID"),
      },
      async (args) => {
        try {
          const data = await clob.getTickSize(args.token_id);
          return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
        } catch (error) {
          return {
            content: [{ type: "text", text: `Error: ${(error as Error).message}` }],
            isError: true,
          };
        }
      },
    );
  • Handler implementation for get_tick_size in the ClobApi class.
    async getTickSize(tokenId: string): Promise<ClobTickSize> {
      return this.client.clob<ClobTickSize>("/tick-size", {
        token_id: tokenId,
      });
    }

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