Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Trending tokens, Base DEX

dex_trending
Read-only

Trending tokens on Base now: the tokens with the most DEX swaps in the last minutes (default 5, up to 10), counted live from Uniswap v2/v3, Aerodrome and Slipstream Swap events, with swaps, pools, share of swaps, symbol, name and busiest pool. Majors (WETH, USDC, cbBTC, stables) are left out unless asked; symbolClash marks copied symbols, so match by address. Use to spot what traders buy now; check token_report before trading. Example: blocks=1500. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMost tokens to return, 1 to 25 (default 15)
blocksNoHow many recent Base blocks to count, 30 to 3000 (default 1500, about 5 minutes; Base makes a block every 0.2 s)
majorsNoexclude (default) leaves WETH, USDC, cbBTC and stables out of the list; include keeps them

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / majors / description
      Previous value: -"include to keep WETH, USDC, cbBTC and stables in the list (default: left out)"New value: +"exclude (default) leaves WETH, USDC, cbBTC and stables out of the list; include keeps them"
  2. Changed4 schema fields changed
    • changedInput schema / properties / blocks / maximum
      Previous value: -9007199254740991New value: +3000
    • changedInput schema / properties / blocks / minimum
      Previous value: --9007199254740991New value: +30
    • changedInput schema / properties / limit / maximum
      Previous value: -9007199254740991New value: +25
    • changedInput schema / properties / limit / minimum
      Previous value: --9007199254740991New value: +1
  3. Changed1 schema field changed
    • changedInput schema / properties / blocks / description
      Previous value: -"How many recent Base blocks to count, 30 to 300 (default 150, about 5 minutes; a block every 2 s)"New value: +"How many recent Base blocks to count, 30 to 3000 (default 1500, about 5 minutes; Base makes a block every 0.2 s)"
  4. Added

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false. The description adds genuinely useful behavior beyond that: pricing ($0.01/call via x402 USDC or a card key, first 10 free, failed calls free), the live-computation nature, and the symbolClash caveat about copied symbols. However, its stated default and maximum for results ('default 5, up to 10') do not match the schema (default 15, max 25), which undermines the reliability of the behavioral disclosure.

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?

The core definition and data sources are front-loaded, and the caveats, usage pointer, pricing and example are packed into a tight block with little redundancy. It is a dense run-on sentence and the parenthetical limit figures are both wrong and unnecessary given the schema, so it is not quite a 5.

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 description compensates well by enumerating the returned fields (swaps, pools, share of swaps, symbol, name, busiest pool) and by covering majors exclusion, symbol clash risk and per-call cost. The only material gap is the inaccurate limit guidance, which is the one thing an agent would rely on when setting scope.

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

Parameters2/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 all three parameters, setting a baseline of 3. The description does add real value on 'blocks' (blocks=1500 is about 5 minutes) and on why majors are excluded, but it actively misstates the 'limit' parameter's default and ceiling (5/10 versus the schema's 15/25), which is misinformation rather than added meaning.

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?

The description states a specific resource and chain (trending tokens on Base) plus the exact methodology: swap counts from Uniswap v2/v3, Aerodrome and Slipstream. It distinguishes itself from dex_new_pools and token_report (named explicitly as the pre-trade check), though the near-sibling crypto_trending is never addressed, leaving the agent to infer the difference from the chain qualifier alone.

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?

'Use to spot what traders buy now; check token_report before trading' gives an explicit use case and a follow-up step, and the majors-exclusion note tells the agent how to widen scope when needed. There is no explicit when-not-to-use clause or statement of what this tool cannot answer, so it falls short of a 5.

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