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

okx-spot-derivatives-mcp

Get OKX perpetual funding rate

get_okx_funding_rate
Read-onlyIdempotent

Fetches live OKX perpetual swap funding rate, annualized APR, min/max bounds, and next funding timestamp for a specified instrument.

Instructions

Fetch the live OKX perpetual swap funding rate, annualized APR, min/max bounds, and next funding timestamp.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety is fully covered. The one genuinely additive behavioral detail is the disclosure of returned fields (annualized APR, min/max bounds, next funding timestamp), but there is no mention of data freshness, rate limits, or error behavior for invalid instruments. Given the rich annotation set, this is adequate but thin.

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?

One sentence, front-loaded with the verb and resource, with zero filler. Every clause contributes information the agent can use.

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 no output schema, the description usefully enumerates the returned fields, which compensates for that gap. For a zero-required-parameter single-fetch tool with full annotation coverage, the remaining omission (failure behavior for bad inst_id) is minor.

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 single parameter is fully documented with an example and a stated default (BTC-USDT-SWAP). The description adds no additional meaning about instrument selection or format beyond what the schema already provides, which is the baseline expectation here.

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?

States a specific verb ('Fetch') plus a specific resource ('live OKX perpetual swap funding rate') and enumerates the payload (APR, min/max bounds, next funding timestamp). This is clearly separable from siblings such as get_okx_candles or get_okx_ticker without opening any schema.

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 by the narrow, single-purpose nature of the tool; there is no explicit statement of when to prefer it over get_okx_ticker or the market-listing siblings, and no exclusions or prerequisites. The word 'live' hints at real-time reads but doesn't specify polling or caching expectations.

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