Skip to main content
Glama

Recent DEX trades

get_recent_trades
Read-onlyIdempotent

Latest DEX swaps, newest first, for exactly one of: a token (unit), a pool (poolId) or a wallet (address). Each trade has the time, DEX, side (buy/sell of the base token), amounts in and out (decimal-adjusted), price in ADA, value in ADA and USD, the trader's stake address and the transaction hash.

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": "get_recent_trades"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoToken unit: trades of this token. Give exactly one of unit, poolId, address.
limitNoHow many trades to return (1-50, default 10).
cursorNoValue of `nextCursor` from the previous call, to get the next page.
poolIdNoPool id: trades in this pool.
addressNoWallet (addr1…, stake1… or $handle): trades made by this wallet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds value beyond that: result ordering ('newest first'), and an enumeration of what each trade contains, including that amounts are decimal-adjusted and that ADA and USD valuations are included. It stops short of stating data freshness/latency or that paging requires the returned nextCursor.

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?

Two sentences, zero filler. Scope and ordering are front-loaded, and the second sentence spends its length only on return shape, which matters because no output schema exists.

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?

With no output schema, the field enumeration compensates well, and the exclusivity rule plus ordering covers the main invocation risk. Minor gaps remain around pagination behavior via cursor and data freshness, but nothing that would cause a wrong call.

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 every parameter (unit, poolId, address, limit, cursor) is already documented with patterns, defaults, and ranges. The description's 'exactly one of' mirrors what the schema descriptions already say, adding little new semantics. Baseline 3 applies when the schema carries the load.

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

Purpose4/5

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

States a concrete verb and resource ('Latest DEX swaps') plus ordering ('newest first') and the three mutually exclusive scoping modes (token, pool, wallet). An agent can immediately tell it retrieves trade history. It does not differentiate itself from the similarly-named sibling list_market_trades, which keeps it from a 5.

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 'exactly one of unit, poolId or address' constraint gives clear invocation guidance and prevents the common mistake of passing multiple filters. What's absent is any routing advice versus alternatives such as list_market_trades, get_token_candles, or get_wallet_activity, so there are no explicit exclusions.

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