Skip to main content
Glama

Instruments

instruments
Read-onlyIdempotent

OKX crypto exchange, list instruments by type: 'SPOT', 'MARGIN', 'SWAP', 'FUTURES', or 'OPTION'. Returns instrument IDs, tick sizes, lot sizes, and trading rules for each.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "instType": "SPOT"
    },
    "name": "instruments"
  }
}

Input Schema

NameRequiredDescriptionDefault
ulyNo
instIdNo
instTypeYes
instFamilyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds that results include instrument IDs, tick sizes, lot sizes and trading rules, which is useful context about result content, but says nothing about volume of results, pagination, or filtering behavior of the optional parameters.

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?

Two tight sentences: the exchange and action come first, the type enumeration second, and the return contents last. Nothing is redundant and nothing is padded.

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?

An output schema exists, so return values need not be described, and annotations cover safety. However, with four parameters at 0% schema coverage, the definition leaves the role of uly, instId and instFamily unexplained, which is a meaningful gap for a filtering-style lookup tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry the parameter burden, yet it only clarifies instType and its allowed values. uly, instId and instFamily are never explained; the agent must infer from the schema examples that uly is an underlying and instFamily an instrument family, and whether they act as filters.

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?

"OKX crypto exchange, list instruments" is a specific verb plus resource, and the enumerated instType values ('SPOT', 'MARGIN', 'SWAP', 'FUTURES', 'OPTION') scope it precisely. It does not explicitly contrast with adjacent market-data siblings like okx_tickers or market_24hr, but no sibling appears to do reference-data listing, so the purpose is unambiguous.

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 implied by "list instruments by type" and the caller is told which type values are acceptable, which is enough to pick the tool for symbol/tick-size lookup. There is no explicit statement of when to prefer this over quote-oriented siblings (okx_ticker, okx_tickers) or when not to call it.

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.