Skip to main content
Glama
okx-spot-derivatives-mcp

okx-spot-derivatives-mcp

Get OKX live ticker

get_okx_ticker
Read-onlyIdempotent

Fetch live OKX spot or perpetual swap ticker data—last price, best bid/ask, spread in bps, 24h high/low, and volume—to support real-time market monitoring and trading decisions.

Instructions

Fetch live OKX spot or perpetual swap ticker including last price, best bid, best ask, spread in basis points, 24h high/low, and volume.

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

Input Schema

NameRequiredDescriptionDefault
inst_idNoOKX instrument ID such as "BTC-USDT" (default), "ETH-USDT", or "BTC-USDT-SWAP".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description adds value beyond that by specifying the exact data returned, including derived fields like spread in basis points and 24h high/low/volume, which tells the agent what analysis it can do without a follow-up call. It does not mention latency/staleness of 'live' data or behavior on an invalid instrument ID.

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 the action and resource first and the returned fields after; no filler, no repetition of the title.

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?

With one optional parameter and no output schema, the description carries the return-value burden well by listing the fields returned. Minor gaps remain: it doesn't state the default instrument behavior or what happens with an unrecognized inst_id, though the schema covers the default.

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% and the single inst_id parameter already documents the format plus concrete examples (BTC-USDT default, ETH-USDT, BTC-USDT-SWAP). The description's phrase 'spot or perpetual swap' only loosely reinforces that SWAP IDs are valid, adding little beyond the schema, so the baseline of 3 applies.

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 gives a specific verb (fetch) and a precisely scoped resource (live OKX spot or perpetual swap ticker), then enumerates the returned fields. An agent can immediately tell this apart from get_okx_candles, get_okx_orderbook, or get_okx_funding_rate because it is explicitly a point-in-time ticker snapshot.

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?

Usage is only implied: 'live' signals a current-snapshot tool, and 'spot or perpetual swap' tells the agent both instrument classes are supported. There is no explicit when-to-use versus alternatives (e.g. use get_okx_orderbook for depth) and no stated exclusions or error conditions.

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