Skip to main content
Glama

Crypto Bot Audit + Market Data (x402 paid)

OKX spot ticker

market_okx_ticker
Read-onlyIdempotent

Last, bid, ask, 24h open/high/low and both base and quote volume for one OKX instrument. Costs $0.001 USDC per call. Byte-identical to GET /market/okx-ticker?instId=BTC-USDT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instIdYesOKX instrument id, BASE-QUOTE (BTC-USDT, ETH-USDT-SWAP) [required]

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tsNo
lastNo
noteNo
askPxNo
askSzNo
bidPxNo
bidSzNo
foundNo
staleNo
caveatNo
instIdNo
lastSzNo
low24hNo
reasonNo
sourceNo
high24hNo
open24hNo
sodUtc0No
sodUtc8No
instTypeNo
venueTsMsNo
volume24hNo
quoteVolume24hNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "askPx": {
      +      "type": "string"
      +    },
      +    "askSz": {
      +      "type": "string"
      +    },
      +    "bidPx": {
      +      "type": "string"
      +    },
      +    "bidSz": {
      +      "type": "string"
      +    },
      +    "caveat": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "found": {
      +      "type": "boolean"
      +    },
      +    "high24h": {
      +      "type": "string"
      +    },
      +    "instId": {
      +      "type": "string"
      +    },
      +    "instType": {
      +      "type": "string"
      +    },
      +    "last": {
      +      "type": "string"
      +    },
      +    "lastSz": {
      +      "type": "string"
      +    },
      +    "low24h": {
      +      "type": "string"
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "open24h": {
      +      "type": "string"
      +    },
      +    "quoteVolume24h": {
      +      "type": "string"
      +    },
      +    "reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sodUtc0": {
      +      "type": "string"
      +    },
      +    "sodUtc8": {
      +      "type": "string"
      +    },
      +    "source": {
      +      "type": "string"
      +    },
      +    "stale": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "ts": {
      +      "type": "string"
      +    },
      +    "venueTsMs": {
      +      "type": "integer"
      +    },
      +    "volume24h": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false, and the description adds two genuinely non-redundant traits: the $0.001 USDC per-call cost and the byte-identical contract with the OKX REST endpoint, which lets the agent predict the exact response shape. This is real added context, though it stops short of disclosing failure modes or rate limits.

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?

Three short sentences, each earning its place: the data payload is front-loaded, followed by the cost disclosure and the exact endpoint contract. Zero filler or repetition of what the schema/annotations already state.

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

Completeness5/5

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

For a single-parameter tool with a rich annotation set, a documented parameter schema, and an output schema present, the description is complete: the agent knows what data it receives, what it costs, what endpoint contract to expect, and how to specify instId. Nothing needed for a correct call 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 description coverage is 100%, and the instId description is already strong (BASE-QUOTE format with BTC-USDT and ETH-USDT-SWAP examples plus [required]). The tool description adds nothing about the parameter beyond referencing 'one OKX instrument,' so the schema carries the load and the baseline 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 precisely enumerates the data payload (last, bid, ask, 24h open/high/low, both volumes) for 'one OKX instrument,' which unambiguously identifies this as a single-instrument spot ticker fetch. The OKX naming and the ticker-specific fields clearly distinguish it from sibling tools like market_okx_candles, market_okx_depth, and other exchanges' ticker tools.

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 scope is clear: the agent knows it gets one instrument's ticker snapshot, which implies when to call it. However, there are no explicit when-not-to-use statements or named alternatives (e.g., no guidance to use market_okx_candles for history or market_okx_depth for order book data), so routing decisions are left to inference.

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.

Resources