Skip to main content
Glama

dex_docs

Read-onlyIdempotent

LOOK UP a DEX's official documentation: the raw excerpts closest to your words, with their source pages (APIs, SDK, accounts, orders, margin, funding, liquidations, fees, vaults). dex: decibel, hyperliquid, lighter or gmx (empty = the DEX your words name, else Decibel). A search, not an answer: instant, nothing is published, no model involved. For an explanation written by the DEX's expert use ask_expert. No registration needed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "dex_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
dexNo
queryYes
max_charsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the operation read-only, idempotent, non-destructive, and closed-world. The description adds useful context beyond that: instant search, no publication, no model involved, no registration required, and raw excerpts with source pages. It does not describe truncation or result limits, but the supplied annotations carry much of the safety profile.

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 a single well-structured paragraph that front-loads the core action, then adds scope, the dex fallback rule, the key distinction from ask_expert, and behavioral notes. Every sentence contributes information and there is no filler.

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 the description need not explain return values. It covers purpose, alternative routing, dex selection behavior, and side-effect context; the main remaining gap is that max_chars is not described despite low schema coverage.

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?

With 0% schema description coverage, the description must define the three parameters. It explains the dex argument's allowed values and empty-string fallback clearly, and characterizes query as 'closest to your words', but max_chars is never mentioned, leaving one parameter undocumented.

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: 'LOOK UP a DEX's official documentation' and returns 'raw excerpts closest to your words' with source pages. It also explicitly distinguishes itself from ask_expert, so an agent can tell the two apart.

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?

It gives clear when-to-use guidance by saying this is a raw documentation search and directing users to ask_expert for an expert-written explanation. It also defines the dex fallback behavior, leaving little ambiguity about how to choose this tool.

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