Skip to main content
Glama
ymylive
by ymylive

get_exchange_markets

List all trading pairs (markets) for any exchange. View symbols, base/quote currencies, contract types, and active status. Use to check if an exchange offers a specific pair like SOL/USDC or enumerate perpetual contracts.

Instructions

List all trading pairs (markets) supported by a specific exchange.

Use to discover what symbols an exchange trades (e.g. "does Kraken list SOL/USDC?"), or to enumerate available perpetual contracts.

Args: exchange_id: CCXT exchange ID (lowercase). See list_supported_exchanges. active_only: If true, exclude delisted/inactive markets.

Returns: Object with exchange, count, and markets — each market has symbol, base, quote, settle, type (spot/swap/future/option), linear, inverse, contract, active.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
exchange_idYes
active_onlyNo
Behavior4/5

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

With no annotations, the description carries the full burden. It explains the effect of active_only parameter and details the return structure including fields like symbol, base, quote, settle, type, etc. This is transparent for a listing tool, though it omits potential authentication or rate limit implications.

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 concise and well-structured: purpose sentence, usage example, Args section with both parameters explained, and Returns section with object shape. No redundant information, and front-loaded with the core purpose.

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?

Given the tool's low complexity, no output schema (but return described fully), and absence of annotations, the description is complete. It covers purpose, parameters, return type, and usage context, leaving no critical gaps for an agent to invoke it correctly.

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?

Input schema defines two parameters (exchange_id, active_only). The description adds significant value: for exchange_id, it specifies 'CCXT exchange ID (lowercase)' and refers to list_supported_exchanges; for active_only, it explains 'If true, exclude delisted/inactive markets.' This goes well beyond 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 clearly states the verb 'List' and resource 'trading pairs (markets) supported by a specific exchange.' It distinguishes from siblings like get_exchange_info (exchange metadata) and get_exchange_ticker (ticker prices) by focusing on market list discovery.

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 provides explicit usage context: 'Use to discover what symbols an exchange trades... or to enumerate available perpetual contracts.' It also references list_supported_exchanges for valid exchange IDs. However, it does not explicitly state when not to use this tool or compare to alternatives like get_exchange_ticker.

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