Skip to main content
Glama

get_liquidity

Compare market depth and TVL for a trading pair across venues on a chain. See pool depth, top liquidity venue, and each venue's share of total depth.

Instructions

Market depth and TVL for a trading pair, broken down per venue: how deep the pools are, which venue holds the most liquidity, and each venue share of total depth.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairYesPair as SYM/SYM, e.g. WETH/USDC. Either side may be a 0x address.
chainNoChain to query. Defaults to bsc.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It does not mention whether the operation is read-only, any side effects, authentication requirements, rate limits, or error behavior. Given the lack of annotations, this is a significant gap.

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 two sentences and efficiently packs the tool's purpose and key output details without any redundant or promotional language. It is well-structured and easy to parse.

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?

The description outlines the nature of the return data (per-venue depth, TVL, best venue, share of total depth), which is helpful given the absence of an output schema. However, it omits details such as expected format, units, or any caveats about data freshness or availability, though the absence is not critical. Overall it provides sufficient context for basic usage.

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?

Both parameters are fully described in the schema. 'pair' specifies the format (SYM/SYM) with a concrete example and notes that either side may be a 0x address. 'chain' provides an explicit enum of allowed values and a default. The schema coverage is 100%.

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 tool returns market depth and TVL for a trading pair, per venue, and explicitly lists the key outputs (pool depth, best venue, share of total depth). The verb 'get' and resource 'liquidity' are unambiguous, and it distinguishes itself from the many sibling tools that focus on a single venue or different metrics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains what the tool does but does not explicitly state when to choose it over similar siblings like 'get_pool_reserves' or 'get_best_venue'. It implies use for per-venue liquidity breakdowns, but this guidance is implicit rather than explicit, leaving room for ambiguity.

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

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/donnywin85/dex-data-mcp'

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