Skip to main content
Glama

compare_markets

Read-onlyIdempotent

The same perp markets on two DEXs side by side, from their public data: decibel, hyperliquid, lighter, gmx. Per market: price, hourly funding in bps (positive = longs pay shorts) and annualized at the current rate (x 8760, not a forecast), open interest in USD, price and funding gaps, and cheaper_to_hold_long (null for GMX: its rate is the paying side's only, without the borrow fee). market: one symbol such as "BTC" (empty = all). sort: funding_gap (biggest first), price_gap, oi, name, funding_a, funding_b. a="all": every DEX in one table, one row per market listed on at least two, with cheapest_long (never GMX) and funding_spread (sort: funding_spread, oi, name, venues). Every answer says when each DEX's data is from. Data, not advice. No registration needed.

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

Input Schema

NameRequiredDescriptionDefault
aNodecibel
bNohyperliquid
sortNofunding_gap
limitNo
marketNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and closed-world, so the safety profile is settled; the description adds real behavior: data provenance is disclosed per answer ('Every answer says when each DEX's data is from'), the annualization formula is stated and explicitly flagged as not a forecast, and the GMX null case is explained (rate is the paying side's only, without the borrow fee). Remaining gaps are minor, such as no mention of rate limits or failure modes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Almost every clause carries information, and the primary framing is front-loaded, which is good. But it is delivered as one dense run-on block mixing return fields, parameter values and edge cases across five lines, forcing the agent to parse rather than scan; some ordering and separation would buy clarity at no cost.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be spelled out, yet the description still explains the notable fields (funding in bps, annualized rate, open interest, gaps, cheapest_long, funding_spread), giving an agent enough to interpret results. With no required parameters and defaults present, the missing pieces are the limit parameter and explicit sibling routing.

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 0%, so the description must carry the load, and it largely does: it defines the market symbol format and empty-means-all, and enumerates the sort values (funding_gap, price_gap, oi, name, funding_a, funding_b, plus funding_spread/oi/name/venues in all mode). The a and b parameters are only implicitly identified as the two DEXs via the venue list, and limit is never explained, which keeps it short of a 5.

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 opening sentence names a specific verb and resource ('The same perp markets on two DEXs side by side') and enumerates the supported venues (decibel, hyperliquid, lighter, gmx), plus the per-market fields returned. An agent can distinguish this from decibel_markets or decibel_data because this one is explicitly a cross-venue comparison.

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?

It gives concrete usage context: 'market: one symbol such as "BTC" (empty = all)', the a="all" mode with its own sort keys, and the note that only markets on at least two venues appear. It does not name when to prefer a sibling tool, but it does clearly delineate its two operating modes.

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