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)

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clear, distinct purpose covering different aspects of prediction market integrity (market analysis, wallet analysis, AML/KYC, alerting, reporting). There is minimal overlap risk, as even related tools (e.g., pg_insider_signal_scan vs. pg_information_advantage_score) are differentiated by input (market vs. wallet) and output type.

Naming Consistency4/5

All tools share the 'pg_' prefix and use descriptive snake_case names, making the set predictable. However, the verb/noun order is inconsistent (e.g., pg_whale_add vs. pg_market_details). The pattern is still clear and functional, so minor deviation from a strict verb_noun pattern.

Tool Count4/5

With 33 tools, the set is large but well-scoped for a comprehensive platform covering market analysis, wallet intelligence, compliance, and reporting. Each tool serves a distinct function, and the count is justified by the breadth of the domain, though it pushes the upper bound of 'reasonable'.

Completeness5/5

The toolset covers the full lifecycle of prediction market integrity work: from market discovery and integrity scanning to wallet analysis, entity resolution, AML/KYC, watchlist management, alerting, and SAR reporting. There are no obvious gaps for the stated purpose.

Resources