Skip to main content
Glama

pg_market_trades

Raw trade access for a Polymarket market via the Polymarket Data API. Supports client-side filters: time range (from/to, ISO 8601), side (BUY/SELL), minimum trade size, or a specific wallet. Paginates server-side (max 25 pages × 1000 trades). Returns compact records with wallet, pseudonym, side, size, price, notional USD, outcome, timestamp, tx_hash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoMarket id / conditionId
toNoOnly include trades up to this ISO timestamp
fromNoOnly include trades from this ISO timestamp
sideNoOnly trades on this side
slugNoPolymarket market slug
limitNoMax trades to return after filtering (default 100, max 5000)
walletNoFilter to a single wallet address
min_sizeNoMinimum trade size (shares)
max_pagesNoHow many pages of 1000 to fetch (default 2, max 25)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral transparency. It discloses pagination behavior (max 25 pages × 1000 trades), the nature of filters (client-side), and the exact return fields (wallet, side, price, notional, etc.). This exceeds the minimum but could be enhanced by noting any rate limits or authentication requirements.

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 four sentences with high information density and zero fluff. It front-loads the core purpose, then lists filters, pagination, and return format in a logical order. Every sentence contributes substantive information.

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

Completeness4/5

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

Given 9 parameters, no output schema, and no annotations, the description covers the essential aspects: what data is returned, how filtering works, and how pagination behaves. It lacks explicit guidance on whether id or slug is required, but the schema covers parameter semantics. Overall, it is sufficiently complete for an AI agent to select and invoke the tool correctly.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value by grouping filters into time range, side, size, and wallet, and by explaining pagination semantics (pages of 1000, max pages) that are not fully captured in the schema. This gives the agent a clearer mental model of how the parameters interact.

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 clearly states the tool provides 'Raw trade access for a Polymarket market via the Polymarket Data API', identifying a specific verb ('access') and resource ('trade data for a market'). This differentiates it from sibling tools focused on market details, wallet risk, or integrity scans.

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?

The description implies use for raw trade retrieval by listing supported filters and pagination details. While it does not explicitly name alternatives or exclusionary conditions, the specification of 'client-side filters' and 'server-side pagination' gives clear context for when to use this tool versus a more curated market data tool.

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.

Resources