Skip to main content
Glama

MEXC Global Spot & Orderbook Markets MCP

Get MEXC orderbook depth

get_mexc_orderbook_depth
Read-onlyIdempotent

Fetch live MEXC L2 orderbook bids and asks along with best bid, best ask, mid-price, and spread in basis points.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of price levels per side (1-100, default 20).
symbolNoUppercase MEXC spot pair symbol (default "BTCUSDT").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare this a read-only, idempotent, non-destructive open-world call, so the safety profile is covered. The description adds real value by specifying what payload comes back (bids, asks, best bid/ask, mid-price, spread in bps) — important since no output schema exists. It stops short of noting snapshot-vs-stream behavior, rate limits, or auth requirements.

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?

A single front-loaded sentence with zero redundant wording, leading with the verb and resource before listing the returned metrics, all of which earn their place.

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?

For a two-parameter read-only market-data tool with full schema descriptions and complete annotations, the definition covers purpose and return fields adequately. Minor gaps remain around snapshot semantics and market coverage, but nothing essential to calling it correctly is missing.

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?

Schema coverage is 100%: 'limit' documents its 1-100 range and default 20, and 'symbol' documents the default pair and uppercase requirement. The description adds nothing about either parameter, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Fetch') and a precise resource ('MEXC L2 orderbook bids and asks'), and enumerates the derived fields returned. The resource itself distinguishes it from siblings like get_mexc_24hr_ticker or get_mexc_recent_trades, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus alternatives such as recent trades or klines, and no exclusions. 'Live' hints at a real-time snapshot use case, but the agent must infer when orderbook depth is the right call.

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.