Skip to main content
Glama

Gate.io Spot & Perpetual Futures Markets MCP

Get Gate.io spot orderbook

get_gateio_spot_orderbook
Read-onlyIdempotent

Fetch live Gate.io spot 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_gateio_spot_orderbook"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of price levels per side (1-100, default 20).
currency_pairNoGate.io spot pair with underscore (default "BTC_USDT").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so safety is covered. The description adds real value by disclosing that the data is 'live' and by enumerating the returned fields (bids/asks L2 plus best bid/ask, mid-price, spread bps), which matters because no output schema exists; it stops short of rate limits, snapshot-vs-stream semantics, or error behavior.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; the resource and returned fields come first. It could be marginally tighter, but every clause carries information.

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-optional-parameter read tool with full annotation coverage, the definition covers purpose and returned fields, offsetting the absence of an output schema. Remaining gaps—freshness cadence, error cases, and how limit interacts with the computed spread—are minor for this complexity.

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 the 1-100 range and default 20, and 'currency_pair' documents the underscore format and default. The description adds no parameter-level meaning (e.g., whether limit changes spread precision or per-side depth), 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 gives a specific verb ('Fetch') and resource ('Gate.io spot L2 orderbook bids and asks') and enumerates derived values (best bid, best ask, mid-price, spread in bps). This clearly separates it from a ticker or funding-rate tool by content, though it never explicitly contrasts itself with the sibling get_gateio_spot_ticker.

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 explicit when-to-use or when-not-to-use guidance and no named alternative (e.g., use the ticker tool for last-traded price). Usage is only implied by the described payload, leaving the agent to infer selection criteria among the sibling market-data tools.

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.