Skip to main content
Glama
yigitabi5444

Polymarket MCP Server

by yigitabi5444

get_series

Retrieve grouped collections of related prediction market events from Polymarket. Use this tool to browse event series with pagination controls for limit and offset.

Instructions

List Polymarket event series (grouped collections of related events).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of results
offsetNoPagination offset

Implementation Reference

  • The handler for the "get_series" tool, which invokes the Gamma API to list event series.
    async (args) => {
      try {
        const data = await gamma.getSeries(args);
        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 and schema definition for the "get_series" tool.
    server.tool(
      "get_series",
      "List Polymarket event series (grouped collections of related events).",
      {
        limit: z.number().min(1).max(100).default(20).describe("Number of results"),
        offset: z.number().min(0).default(0).describe("Pagination offset"),
      },
  • The API client method that performs the actual network request for getting series.
    async getSeries(params?: {
      limit?: number;
      offset?: number;
    }): Promise<GammaSeries[]> {
      const query: Record<string, string | undefined> = {};
      if (params?.limit !== undefined) query.limit = String(params.limit);
      if (params?.offset !== undefined) query.offset = String(params.offset);
      return this.client.gamma<GammaSeries[]>("/series", query);
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states it's a list operation, implying read-only behavior, but doesn't cover critical aspects like pagination behavior (implied by limit/offset parameters but not explained), rate limits, authentication needs, error conditions, or what the output looks like (e.g., list of series objects). This leaves significant gaps for an agent to use it correctly.

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 a single, efficient sentence that front-loads the core purpose ('List Polymarket event series') and adds clarifying context without waste. Every word earns its place, making it easy for an agent to parse quickly.

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

Completeness2/5

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

Given the tool's complexity (a list operation with pagination), lack of annotations, and no output schema, the description is incomplete. It doesn't explain behavioral traits like pagination, output format, or error handling, which are essential for an agent to use it effectively. The description alone leaves too many unknowns for reliable tool invocation.

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%, with clear descriptions for limit and offset parameters. The description adds no additional parameter semantics beyond what the schema provides—it doesn't explain how limit/offset interact with the listing or typical values. Since the schema does the heavy lifting, the baseline score of 3 is appropriate.

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 action ('List') and resource ('Polymarket event series'), with additional clarifying context about what series are ('grouped collections of related events'). It distinguishes from siblings like get_events or get_markets by specifying series rather than individual events or markets. However, it doesn't explicitly contrast with get_series_by_id, which might fetch a specific series by ID.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to prefer get_series over get_events or get_markets, nor does it reference the sibling get_series_by_id for fetching a specific series. There's no context about prerequisites or typical use cases.

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