Skip to main content
Glama

A token's daily DEX volume

get_token_dex_volume
Read-only

A token's DEX trading per UTC day over the last days days (30 by default, up to 365; today included and still being counted), oldest first — the USD volume and the swaps by the token's position in the pair (swapsAsToken0 / swapsAsToken1: the pair position, not a buy or sell direction) — with the totals. A day's USD volume adds the hours that could be priced: a day with swaps but no priced hour has no volumeUsd and is counted in unpricedDays (then totalVolumeUsd is a partial sum); a day priced only in part is not marked. A day without swaps has no entry. Only the pools TraceFast decodes are counted, which may lag a newly created pool. Use it to chart how much a token trades. Not for where it trades: use get_token_pools. Not for the whole chain's DEX volume: use get_dex_volume_daily. Not for the tokens that trade most: use get_top_dex_tokens.

Arguments: token; optional days. chain_id defaults to 1 (Ethereum mainnet, the only chain served). Freshness: a daily aggregate; the window ends at the latest day it holds, and the answer states no block (meta.asOfBlock is absent). meta.cached is true when the answer came from the TraceFast response cache (refreshed within minutes); meta.timestamp is when it was produced, in Unix milliseconds.

Minimum plan: Intelligence; the Investigation plan includes it. Rate class: core. Documentation: https://docs.tracefast.xyz/api/token-dex-volume

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

Input Schema

NameRequiredDescriptionDefault
daysNo1 to 365, default 30.
tokenYesThe token contract, `0x` + 40 hex, any case.
chain_idNoChain id. Only 1 (Ethereum mainnet) is served; the default.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered, but the description adds substantial behavioral context on its own: partial sums via `unpricedDays`, days with swaps but no priced hour yielding no `volumeUsd`, days without swaps absent entirely, decoding lag for new pools, cache freshness via `meta.cached`, and the absence of `meta.asOfBlock`. It also discloses plan gating and rate class, which annotations never carry.

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?

Despite its density, the description is front-loaded with the per-day semantics the agent most needs, then the disambiguation block, then operational metadata. Em-dash clauses carry the edge cases without padding, and no sentence is redundant filler.

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 a 3-parameter aggregate tool with an output schema, this covers everything an agent needs: window semantics, ordering, partial-sum caveats, decoding coverage limits, freshness, plan/rate gating, and doc link. Nothing material is left to inference.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning to `days` beyond the schema: today is included and still being counted, and rows are ordered oldest first. It also clarifies that `chain_id` defaults to mainnet and only chain 1 is served, reinforcing rather than merely repeating the schema.

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 opens with a specific verb-and-resource statement ('A token's DEX trading per UTC day over the last `days` days'), pins the scope to one token, and explicitly names the three siblings it is not (get_token_pools, get_dex_volume_daily, get_top_dex_tokens). An agent can distinguish it from every nearby tool 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?

It states the positive use case ('Use it to chart how much a token trades') and then gives three explicit exclusions, each paired with the alternative tool that covers it. This is the when/when-not/alternative pattern at full strength.

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