Skip to main content
Glama

Polymarket Archive

polymarket_archive
Read-onlyIdempotent

Index of the bulk Polymarket L2 archive: daily Parquet files of three streams (book_events, trades, l1_quotes), cut three ways: the whole day ('flat', trades only), one Polymarket category's markets that are not up/down series ('category', e.g. sports), and one up/down series inside its category ('family': asset + tenor, e.g. btc + 5m in crypto). view='datasets' (default) lists files, filtered and paged, with bytes and rows where recorded; view='url' resolves exactly one file to a download link (give date and stream, plus asset and tenor together for a series file, or category alone for a category file; book_events and l1_quotes need one of them). This tool never downloads anything: the link is valid for 1 day (expires_at) and needs no API key, so fetch it yourself and do not share it. asset and tenor match series files ONLY; category matches a category's file and the series inside it; any of them hides the flat files. Returns {datasets, limit, offset, total} for 'datasets', one dataset row for 'url'.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "polymarket_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoview=url only. Required there. The UTC day, YYYY-MM-DD.
viewNodatasets = list files (default); url = resolve one file.datasets
assetNoFamily files only, e.g. `btc`. With view=url give it together with `tenor`, or neither.
limitNoview=datasets only. Files per page (default 50, max 1000; `total` counts every match).
tenorNoFamily files only, e.g. `5m`. Pairs with `asset`.
offsetNoview=datasets only. Skip this many matching files (default 0).
streamNoOne stream. Required for view=url.
date_toNoview=datasets only. Last UTC day, YYYY-MM-DD, inclusive (the REST route spells it `to`).
categoryNoOne category folder, e.g. `crypto`: its category file and the series inside it. With view=url, alone for the category file, or beside `asset` and `tenor` (it must be that series' category).
date_fromNoview=datasets only. First UTC day, YYYY-MM-DD, inclusive (the REST route spells it `from`).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / category
      Added value: +{
      +  "description": "One category folder, e.g. `crypto`: its category file and the series inside it. With view=url, alone for the category file, or beside `asset` and `tenor` (it must be that series' category).",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"view=datasets only. Files per page (default 50, max 200; `total` counts every match)."New value: +"view=datasets only. Files per page (default 50, max 1000; `total` counts every match)."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses critical behavior: the tool never downloads anything, the returned link expires in one day, no API key is needed, and the link should not be shared. It also explains that asset, tenor, or category filters hide flat files, which is important operational context.

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

Conciseness4/5

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

The core purpose and mode distinction are front-loaded, and every part is relevant. However, the single dense paragraph with semicolon-heavy clauses repeats some schema detail and could be easier to scan.

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

Completeness5/5

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

For a 10-parameter tool with no output schema, the description is complete enough: it explains dataset cuts, URL-resolution requirements, link lifetime, access constraints, filter interactions, and return shapes for both views.

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

Parameters5/5

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

Although schema coverage is complete, the description adds important cross-parameter meaning: book_events and l1_quotes require asset/tenor or category for URL resolution, asset and tenor match series files only, category matches both a category file and its series, and any such filter hides flat files.

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

Purpose5/5

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

The description states a specific resource and action: an index of the bulk Polymarket L2 archive, with daily Parquet files across three streams and three dataset cuts. The archive/bulk-Parquet framing clearly separates it from live-data siblings even without naming them.

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

Usage Guidelines4/5

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

It clearly explains the two modes: view='datasets' lists filtered, paged files, while view='url' resolves exactly one file. It also spells out required inputs for URL resolution, though it does not explicitly compare when to use this archive versus the live Polymarket sibling tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.