Skip to main content
Glama

Bitquery Dex Trades

bitquery_dex_trades
Read-onlyIdempotent

Recent DEX trades for a token — swaps involving an ERC-20 token across DEXs on an EVM chain (Bitquery). Returns trade time, DEX/protocol, buy & sell currency + amounts, price, tx hash, and maker. Example: bitquery_dex_trades({ token: "0xdAC17F958D2ee523a2206206994597C13D831ec7", network: "eth", limit: 20, _apiKey: "your-bitquery-token" })

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax trades to return (default 20, max 50).
tokenYesERC-20 token contract address (e.g. "0xdAC17F958D2ee523a2206206994597C13D831ec7"). Required.
_apiKeyYesBitquery OAuth access token (Bearer). Generate at bitquery.io (free Developer tier).
networkNoEVM network enum (default "eth"). Options: eth, bsc, matic, arbitrum, base, optimism, avalanche, fantom, cronos, gnosis, klaytn, moonbeam, opbnb.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, and non-destructive behavior. The description adds the return contract—trade time, DEX/protocol, currencies, amounts, price, tx hash, and maker—which is valuable because there is no output schema. It does not contradict the annotations.

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?

The description is compact and front-loaded: purpose first, then return fields, then a concrete example. Every sentence earns its place without redundancy.

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?

No output schema exists, so the description appropriately explains return values. Combined with fully documented parameters and annotations covering safety, the description is complete enough for an agent to invoke the tool correctly.

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 the baseline is 3. The description's example mirrors the schema values but does not add new parameter semantics beyond what the schema already documents for token, network, limit, and _apiKey.

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 states a specific verb and resource: recent DEX trades for an ERC-20 token across DEXs on an EVM chain. It clearly differentiates from sibling tools like bitquery_token_holders and bitquery_token_transfers by focusing on swaps and the exact returned fields.

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?

The description gives a clear use case: retrieving recent DEX trade activity for a token. It does not name alternatives or exclusions, but the scoped language makes it inferable when this tool is appropriate relative to transfer and holder siblings.

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.