Skip to main content
Glama

MEXC Global Spot & Orderbook Markets MCP

Get MEXC OHLCV klines

get_mexc_klines_candles
Read-onlyIdempotent

Fetch historical OHLCV candlestick bars for a MEXC spot trading pair across minute, hourly, daily, weekly, or monthly intervals.

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_klines_candles"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of candles to return (1-100, default 24).
symbolNoUppercase MEXC spot pair symbol (default "BTCUSDT").
intervalNoCandle interval (default "60m"; "1h" maps to "60m").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so safety and repeatability are covered. The description adds that the data is historical and spans multiple interval families, but says nothing about response shape, pagination, or whether requests are rate limited — modest added value on top of the annotations.

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 that identifies the data type, venue, market, and interval coverage with no filler. Nothing could be trimmed without losing information.

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

Completeness3/5

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

For a three-parameter read-only tool with full schema coverage and rich annotations, the description is nearly sufficient. However, with no output schema, it never describes the shape of a returned candle or ordering, and it omits the 100-candle cap and defaults that affect how an agent should call it.

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 description coverage is 100%, with symbol, interval enum, and limit bounds (1-100, default 24) all documented in the schema. The description only restates the interval families already listed in the enum and adds no syntax or format detail beyond the schema.

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 states a specific verb and resource ('Fetch historical OHLCV candlestick bars for a MEXC spot trading pair') and enumerates interval granularities, which clearly separates it from ticker, orderbook-depth, and recent-trades siblings by virtue of the word 'historical' and 'OHLCV'. It stops short of naming which sibling to use for live prices, so it is clear but not fully differentiated.

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?

'Historical' implies this is for backtesting or charting rather than current pricing, which is only implicit routing guidance. There is no explicit statement of when to prefer this over get_mexc_24hr_ticker or get_mexc_recent_trades, and no mention of prerequisites or exclusions.

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.