Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Token buyers and sellers

token_buyers
Read-only

Who bought and who sold a token lately: the wallets that took the most of an ERC-20 from DEX pools and routers (buyers) or sent the most to them (sellers) over recent blocks, from its live Transfer logs on Base (default), Ethereum, Arbitrum, Optimism or Polygon, with bought, sold, net and transfers. Contracts are left out; plain wallet-to-wallet moves only count in netAll. Use to see who accumulates or dumps a token before you trade it. Example: token=0x940181a94A35A4569E4529A3CDfB74e38FD98631. 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

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": {
      "token": "<token>"
    },
    "name": "token_buyers"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, arbitrum, optimism or polygon
limitNoBuyers and sellers to return each, 1 to 20 (default 10)
tokenYesToken: 0x ERC-20 address, or a ticker such as AERO, DEGEN or USDC
blocksNoHow many recent blocks to read, 100 to 10000 (default 1800: about 6 hours on Ethereum); on Base, which makes a block every 0.2 s, ten times that (default 18000, about an hour, up to 100000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / blocks / maximum
      Previous value: -9007199254740991New value: +100000
    • changedInput schema / properties / blocks / minimum
      Previous value: --9007199254740991New value: +100
    • changedInput schema / properties / limit / maximum
      Previous value: -9007199254740991New value: +20
    • changedInput schema / properties / limit / minimum
      Previous value: --9007199254740991New value: +1
  2. Changed1 schema field changed
    • changedInput schema / properties / blocks / description
      Previous value: -"How many recent blocks to read, 100 to 10000 (default 1800: about an hour on Base, 6 hours on Ethereum)"New value: +"How many recent blocks to read, 100 to 10000 (default 1800: about 6 hours on Ethereum); on Base, which makes a block every 0.2 s, ten times that (default 18000, about an hour, up to 100000)"
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/destructive/openWorld, and the description goes well beyond them: pricing model ($0.01/call via x402 USDC or card key, first 10 free, failed calls free), the fact that repeats are billed and therefore not free, and the accounting rule that contracts are excluded and wallet-to-wallet moves count only in netAll. The paid-per-call note also usefully explains the non-idempotent hint.

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?

Purpose is front-loaded in the first clause, and the closing sentences cover use case, cost and side-effect profile without redundancy. The opening sentence is long and clause-stacked, but every element (exclusions, chains, pricing) carries information an agent needs.

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 does name the returned measures (bought, sold, net, transfers) and covers cost, failure behavior, exclusions and defaults — enough to call it correctly. It could be slightly more explicit about these returned fields' meaning or ordering, but nothing essential 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 coverage is 100%, so chain, limit and blocks are already documented with defaults and ranges. The description supplies a worked token-address example and clarifies the accounting rule affecting what the limit returns, but adds no syntax or format detail for chain/blocks beyond the schema. Baseline 3 is appropriate.

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 names a specific resource and metric: the wallets that accumulated the most of an ERC-20 from DEX pools/routers (buyers) or sent the most to them (sellers) over recent blocks. It also states its scope boundaries (contracts excluded, wallet-to-wallet moves only in netAll), which separates it from plain transfer-listing siblings, but no sibling is named explicitly.

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 see who accumulates or dumps a token before you trade it" gives a concrete decision context for invoking it, plus default chain and block-window guidance. It stops short of stating when a different tool (e.g. a transfer list or flow tool) would be the better choice, so 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