Skip to main content
Glama
yigitabi5444

Polymarket MCP Server

by yigitabi5444

get_clob_market

Retrieve detailed trading parameters for a specific Polymarket prediction market, including token information, reward structures, tick sizes, and order book configurations using the condition ID.

Instructions

Get CLOB-specific market details by condition ID. Returns tokens, rewards, tick sizes, and trading parameters.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
condition_idYesMarket condition ID

Implementation Reference

  • The handler function for the "get_clob_market" tool, which calls the clob API.
    async (args) => {
      try {
        const data = await clob.getMarket(args.condition_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,
        };
      }
    },
  • Registration of the "get_clob_market" tool using the MCP server.
    server.tool(
      "get_clob_market",
      "Get CLOB-specific market details by condition ID. Returns tokens, rewards, tick sizes, and trading parameters.",
      {
        condition_id: z.string().describe("Market condition ID"),
      },
      async (args) => {
        try {
          const data = await clob.getMarket(args.condition_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,
          };
        }
      },
    );
  • The underlying API client call for "get_clob_market".
    async getMarket(conditionId: string): Promise<ClobMarket> {
      return this.client.clob<ClobMarket>(`/markets/${conditionId}`);
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It states this is a read operation ('Get') and describes the return data (tokens, rewards, tick sizes, trading parameters), but doesn't disclose important behavioral traits like whether it requires authentication, rate limits, error conditions, or pagination behavior for the returned data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise with two sentences that each earn their place. The first sentence states the core purpose, and the second sentence provides valuable information about the return data without any wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read tool with no output schema, the description provides basic purpose and return information but lacks important context. It doesn't explain the relationship to sibling tools, doesn't provide usage guidance, and with no annotations, leaves behavioral aspects like authentication and error handling unspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already fully documents the single parameter. The description adds marginal value by emphasizing this is specifically for CLOB markets and mentioning what details are returned, but doesn't provide additional parameter semantics beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Get CLOB-specific market details by condition ID' specifies the verb (get) and resource (CLOB-specific market details), and distinguishes it from general market tools like get_market. However, it doesn't explicitly differentiate from all siblings like get_market_trades or get_order_book.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. With many sibling tools like get_market, get_market_trades, and get_order_book, the description doesn't indicate when this CLOB-specific tool is preferred over those general market tools or what makes it unique in context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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