Skip to main content
Glama

Pool transactions

getPoolTransactions
Read-onlyIdempotent

Get one pool's recent individual swap transactions, newest first, returned under 'transactions' (paginate with page, or a cursor). Read-only. Runs on the caller's own Dev, Pro or Enterprise API key, set as the Authorization header on the connection to this server; without one it returns DP401_API_KEY_REQUIRED and sends nothing upstream, and a free key gets 403. In either case getPoolDetails still gives the pool's 24h transaction counts and volume. These are per-trade records, not aggregated candles (use getPoolOHLCV) or a summary snapshot (use getPoolDetails). Use for 'recent trades on this pool', 'who swapped in the last hour', or 'raw transaction feed'. Params: network (required); pool_address (required); limit (default 10, max 100); page (default 1, up to 100 pages) or cursor (a transaction id); from (optional, inclusive: a relative offset such as '-1h', Unix seconds, RFC3339 or YYYY-MM-DD; capped to the last 7 days); to (optional, exclusive, same formats, must be after from).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "network": "<network>",
      "pool_address": "<pool_address>",
      "rationale": "<rationale>"
    },
    "name": "getPoolTransactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoOPTIONAL: Filter transactions up to this time (exclusive), same formats as from. Must be after 'from'.
fromNoOPTIONAL: Filter transactions starting from this time (inclusive): a relative offset such as '-1h' or '-24h', Unix seconds, RFC3339 or YYYY-MM-DD. Results always capped to last 7 days.
pageNoOPTIONAL: Page number, 1-indexed. Up to 100 pages. Server accepts page=0 (treated as page=1) for backward compatibility.
limitNoOPTIONAL: Number of items per page (default: 10, max: 100)
cursorNoOPTIONAL: Transaction ID used for cursor-based pagination
networkYesREQUIRED: Network ID from getNetworks (e.g., 'ethereum', 'solana')
rationaleYesREQUIRED. 1-2 sentence rationale for this call (e.g. "User asked for X; calling Y to fetch Z"). Logged for MCP improvement, never shown to end users. No PII or secrets. See the server `instructions` field for the full convention and worked examples.
pool_addressYesREQUIRED: Pool address or identifier

Output Schema

NameRequiredDescriptionDefault
page_infoYes
transactionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedOutput schema / properties / page_info / additionalProperties
      Removed value: -true
    • addedOutput schema / properties / page_info / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "limit": {
      +        "description": "Items per page in the request.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "page": {
      +        "description": "Current page number (1-indexed).",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "total_items": {
      +        "description": "Total number of items across all pages.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "total_pages": {
      +        "description": "Total number of pages available.",
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / page_info / properties
      Removed value: -{
      -  "limit": {
      -    "description": "Items per page in the request.",
      -    "type": "number"
      -  },
      -  "page": {
      -    "description": "Current page number (1-indexed).",
      -    "type": "number"
      -  },
      -  "total_items": {
      -    "description": "Total number of items across all pages.",
      -    "type": "number"
      -  },
      -  "total_pages": {
      -    "description": "Total number of pages available.",
      -    "type": "number"
      -  }
      -}
    • removedOutput schema / properties / page_info / type
      Removed value: -"object"
    • removedOutput schema / properties / transactions / items / additionalProperties
      Removed value: -true
    • addedOutput schema / properties / transactions / items / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "amount_usd": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "block_number": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "block_timestamp": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "pool_id": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "token0": {},
      +      "token1": {}
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / transactions / items / properties
      Removed value: -{
      -  "amount_usd": {
      -    "type": "number"
      -  },
      -  "block_number": {
      -    "type": "number"
      -  },
      -  "block_timestamp": {
      -    "type": "string"
      -  },
      -  "id": {
      -    "type": "string"
      -  },
      -  "pool_id": {
      -    "type": "string"
      -  },
      -  "token0": {},
      -  "token1": {}
      -}
    • removedOutput schema / properties / transactions / items / type
      Removed value: -"object"
  2. Changed4 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"OPTIONAL: Start of time-range filter, Unix epoch SECONDS (inclusive). Window is capped to last 7 days. Note: getPoolOHLCV uses `start` (string) for the same concept; getPoolTransactions uses numeric epoch for tighter filtering."New value: +"OPTIONAL: Filter transactions starting from this time (inclusive): a relative offset such as '-1h' or '-24h', Unix seconds, RFC3339 or YYYY-MM-DD. Results always capped to last 7 days."
    • changedInput schema / properties / from / type
      Previous value: -"number"New value: +"string"
    • changedInput schema / properties / to / description
      Previous value: -"OPTIONAL: Filter transactions up to this UNIX timestamp (exclusive). Must be after 'from'."New value: +"OPTIONAL: Filter transactions up to this time (exclusive), same formats as from. Must be after 'from'."
    • changedInput schema / properties / to / type
      Previous value: -"number"New value: +"string"
  3. Changed2 schema fields changed
    • changedInput schema / properties / from / description
      Previous value: -"OPTIONAL: Start of time-range filter, Unix epoch SECONDS (inclusive). Window is capped to last 7 days. Note: getPoolOHLCV uses `start` (string) for the same concept — getPoolTransactions uses numeric epoch for tighter filtering."New value: +"OPTIONAL: Start of time-range filter, Unix epoch SECONDS (inclusive). Window is capped to last 7 days. Note: getPoolOHLCV uses `start` (string) for the same concept; getPoolTransactions uses numeric epoch for tighter filtering."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "page_info": {
      +      "additionalProperties": true,
      +      "properties": {
      +        "limit": {
      +          "description": "Items per page in the request.",
      +          "type": "number"
      +        },
      +        "page": {
      +          "description": "Current page number (1-indexed).",
      +          "type": "number"
      +        },
      +        "total_items": {
      +          "description": "Total number of items across all pages.",
      +          "type": "number"
      +        },
      +        "total_pages": {
      +          "description": "Total number of pages available.",
      +          "type": "number"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "transactions": {
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "amount_usd": {
      +            "type": "number"
      +          },
      +          "block_number": {
      +            "type": "number"
      +          },
      +          "block_timestamp": {
      +            "type": "string"
      +          },
      +          "id": {
      +            "type": "string"
      +          },
      +          "pool_id": {
      +            "type": "string"
      +          },
      +          "token0": {},
      +          "token1": {}
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "transactions",
      +    "page_info"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds substantial behavior beyond them: the caller's own API key in the Authorization header, failure modes DP401_API_KEY_REQUIRED (nothing sent upstream) and 403 for free keys, plus the 7-day window cap and pagination modes. That is the kind of preconditions and failure semantics an agent needs before calling.

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?

Front-loaded with purpose, then pagination, auth, failure fallback, sibling disambiguation, use cases and params in a sensible order. It is dense but nearly every clause carries information; the trailing params clause is the one segment that largely duplicates the schema.

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 an 8-parameter, auth-gated, paginated read tool with an output schema and full annotations, the description covers prerequisites, failure modes, time-window limits and pagination options. Nothing an agent needs to invoke it correctly is missing.

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%, so the schema already documents network, pool_address, limit, page, cursor, from and to in equivalent detail. The description restates those constraints almost verbatim; the only real addition is presenting page and cursor as alternative pagination modes ('page ... or a cursor'), and it never mentions the required rationale parameter. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Opens with a specific verb+resource+scope: 'Get one pool's recent individual swap transactions, newest first', and names the return key ('transactions'). It explicitly distinguishes itself from getPoolOHLCV (candles) and getPoolDetails (summary snapshot), so an agent can select it without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use phrasings ('recent trades on this pool', 'who swapped in the last hour', 'raw transaction feed') and explicit when-not-to-use routing to two named alternatives. It also names a fallback path (getPoolDetails) when the call cannot succeed.

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