Skip to main content
Glama
pmxt-dev

pmxt-mcp

Official
by pmxt-dev

fetchEventsPaginated

Read-only

Retrieve paginated event listings from prediction markets using a cursor for efficient multi-page access. Returns compact summaries by default.

Instructions

Paginated variant of {@link fetchEvents}. On the first call (no cursor), all events are fetched from the exchange and cached in an in-memory snapshot. A cursor is returned along with the first page. Subsequent calls with that cursor serve additional pages directly from the cached snapshot -- no additional API calls are made. The snapshot is invalidated after snapshotTTL ms (configured via ExchangeOptions in the constructor). A request using a cursor from an expired snapshot throws 'Cursor has expired'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchangeYesThe prediction market exchange to target.
limitNo
cursorNo
filterNo
verboseNoReturn full uncompacted response. Default false returns a compact, agent-friendly summary.
Behavior5/5

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

Discloses caching behavior, snapshot invalidation after ttl, and error condition ('Cursor has expired'). Annotations (readOnlyHint) are consistent, and description adds significant value beyond annotations.

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?

Well-structured with logical flow, but slightly verbose. Could be more concise while retaining clarity.

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?

Covers pagination and caching behavior, but lacks details on limit (page size?), filter criteria, and return structure. With 5 parameters and no output schema, the description is not fully complete.

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 coverage is 40% with descriptions only for exchange and verbose. The description adds meaning to the cursor parameter (explains pagination flow) but does not address limit or filter semantics. Partial compensation for low schema coverage.

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?

Clearly identifies as a paginated variant of fetchEvents, describing the caching mechanism and cursor usage, distinguishing it from the non-paginated sibling.

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?

Provides clear guidance on first call (no cursor) vs subsequent calls (with cursor). Does not explicitly mention when not to use or alternatives, but the context implies using fetchEvents for non-paginated needs.

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/pmxt-dev/pmxt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server