Skip to main content
Glama

DEX volume per day, by protocol

get_dex_volume_daily
Read-only

Per UTC day over a window of dates, oldest first: the DEX trading of each protocol — swaps, USD volume, active pools and the pools that could not be priced (unpricedPools) — and the day's totals. A USD volume adds only the pools that could be priced, so a figure beside unpricedPools is a partial sum, and it covers the pools TraceFast decodes, not every venue. from and to (YYYY-MM-DD) set the window, at most 366 days, by default the last 30; a day with no figures is absent. Days marked provisional may still change: today, and the last four days, whose USD values are revised once a day. Use it to chart DEX activity by protocol. Not for which tokens or pools traded most: use get_top_dex_tokens or get_top_pools.

Arguments: none required; optional from, to. 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: Enriched Data; the Intelligence and Investigation plans include it. Rate class: core. Documentation: https://docs.tracefast.xyz/api/network-dex-volume

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_dex_volume_daily"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoThe last UTC date, `YYYY-MM-DD`. Default: today.
fromNoThe first UTC date, `YYYY-MM-DD`.
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.6/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint=false; the description adds substantial behavior beyond that: USD volume is a partial sum over priceable pools only, coverage is limited to pools TraceFast decodes, `provisional` days (today plus last four) are revised daily, and meta fields (cached, timestamp, absent asOfBlock) are explained. It stops short of describing row shape or pagination, which is a minor gap given the output schema.

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?

Dense but front-loaded — the day granularity, oldest-first ordering and the caveats about partial sums come before the routing guidance. There is some redundancy, notably restating chain_id=1 and its schema default in the arguments line, and the many parenthetical meta notes make the prose heavier than necessary.

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 time-series aggregate with defaulted parameters, provisional data and cached responses, the description covers what an agent needs: window limits, ordering, which days may change, what partial sums mean, and the freshness semantics. Output schema exists, yet the added meta explanations resolve ambiguity rather than duplicating field definitions.

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; the description goes further by framing from/to as a bounded window with a 30-day default and confirming chain_id=1 is the only chain served. It adds no format nuance beyond YYYY-MM-DD, which the schema already supplies.

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?

Opens with a specific verb+resource+granularity: per-UTC-day DEX trading of each protocol, enumerating the returned measures (swaps, USD volume, active pools, unpricedPools, day totals). It explicitly separates itself from get_top_dex_tokens and get_top_pools, so an agent can route without opening sibling schemas.

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?

States the intended use ('chart DEX activity by protocol') and the exclusion ('Not for which tokens or pools traded most') with the two named alternatives. It also bounds the window (at most 366 days, default last 30) and notes that days without figures are absent, which shapes how an agent should request data.

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