Skip to main content
Glama

Agent Data Tools: Prices and DeFi

Token flows pack: who bought, who sold, net flow and price

pack_token_flows
Read-only

Token flows in one call: USD price, net DEX buy and sell flow in time buckets, the top buyers and sellers, and an OFAC screen of the top three of each, on Base (default), Ethereum, Arbitrum, Optimism or Polygon. A failed part is listed in failed. Use before trading a token, for a trading agent's context, or to watch a launch. 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": "pack_token_flows"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNobase (default), ethereum, arbitrum, optimism or polygon
limitNoBuyers and sellers to return each, 1 to 10 (default 5)
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. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld and non-idempotent, so the safety profile is covered; the description still adds real value with the payment model (x402 USDC or card key via /credits, $0.01/call, first 10 free), the fact that failed calls are free, and that partial failures are reported in a `failed` field. That partial-failure behavior is not derivable from any structured field. It stops short of stating latency, rate limits, or what the flow buckets look like.

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?

Content is front-loaded: the returned data comes first, then usage, then example and pricing. A few clauses are redundant with structured fields -- repeating the five chains already enumerated in the schema, and 'changes nothing' which readOnlyHint already covers -- but there is no filler or vague marketing language.

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 carries the burden of describing returns and does so at a component level (price, net flow buckets, buyer/seller lists, OFAC screen, `failed`), which is enough to decide to call it. It does not describe the shape of individual records or the bucket boundaries, a modest gap for an agent that must consume the output.

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 chain values, the limit range and the block range with defaults and timing notes. The description only restates the chain list and supplies one example token address, adding no meaning beyond the schema, so the baseline 3 applies.

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?

The description names a specific verb-plus-resource bundle: USD price, net DEX buy/sell flow in time buckets, top buyers and sellers, and an OFAC screen over the top three of each, across five named chains. 'In one call' distinguishes it from the single-purpose siblings like token_buyers, token_flow and price_token without requiring the agent to open any schema.

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?

Three concrete usage contexts are given (before trading a token, trading-agent context, watching a launch), which is clear when-to-use guidance. No when-not condition or explicit alternative is named -- it never says to use token_buyers if you only want buyers, or token_flow for narrower flow data -- so routing against siblings is left to inference.

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.