Skip to main content
Glama
ymylive
by ymylive

get_dex_token_pairs

Discover every DEX pair trading a token contract across all supported chains, sorted by liquidity, to analyze trading venues and liquidity concentration.

Instructions

Get all DEX pairs trading a given token contract, across every chain.

Use this when you have an EVM/Solana contract address and want to see every venue where it's traded — useful for "which DEX has the deepest liquidity for this token?" and for finding the canonical pair on a specific chain. Pairs are returned sorted by USD liquidity desc.

Prefer this over dex_search when you already have the contract address; prefer get_price (CoinGecko) when the token is large and listed on CEXes.

Args: token_address: Token contract address. EVM addresses like "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" (USDC on Ethereum) and Solana mint addresses both work. limit: Max pairs to return (1..30 typical). chain: Optional chain filter — only return pairs on this chain. Common values: "ethereum", "bsc", "solana", "polygon", "arbitrum", "base", "optimism", "avalanche". Leave empty for all chains.

Returns: Array of trimmed pair objects (same shape as dex_search). On API failure returns {"error": "..."}.

Note: token_address is validated against EVM hex or Solana base58 (rejects anything containing /, ?, #, .., %, or whitespace).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
token_addressYes
limitNo
chainNo
Behavior4/5

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

No annotations provided, but description discloses key behaviors: returns sorted by USD liquidity, validates token address, returns error on API failure. Could mention rate limits or data freshness, but sufficient for a read operation.

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?

Well-structured: purpose upfront, then usage, then param details, return format, validation note. Every sentence adds value; front-loaded with core function.

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?

Covers purpose, usage, parameters, return format, error handling, and validation. No output schema or annotations, but description is fully self-contained for a tool with 3 parameters.

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

Parameters5/5

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

Schema description coverage is 0%, but description explains all three parameters with examples and allowed values (limit range, chain common values). Adds significant meaning beyond 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?

Clearly states the tool gets all DEX pairs for a given token contract across chains. Uses specific verb 'Get' and resource 'DEX pairs'. Distinguishes from siblings like dex_search and get_price in usage guidelines.

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?

Explicitly recommends using this over dex_search when contract address is known, and get_price for large CEX-listed tokens. Provides clear when-to-use and when-not-to-use context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ymylive/coin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server