Skip to main content
Glama

F1ow Crypto Market Data & Research MCP

Open Interest

derivatives_open_interest
Read-only

Current market-wide (cross-exchange aggregate) open interest (USD) for one coin's perpetuals, with its 24h and 7d change, the 24h price change, AND the underlying 4h-bucket series. Read OI against price: price up on rising OI is new money opening positions, price up on falling OI is short covering — opposite trades off the same price move. The series makes that read available bucket by bucket instead of once per day (pair it with market_candles at 4h for the price leg), and carries the window's own low/high so the current level can be judged against where it has actually been. A 1y line ranks the level and today's 24h change against a year of daily closes (percentile, range with dates); the change rank is the better read, since the USD level mostly tracks price. Falls back to a single-venue figure if the aggregate source is offline. Set 'points' to trim the series (omit for the full ~10-day window; 0 to suppress it).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "symbol": "<symbol>"
    },
    "name": "derivatives_open_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointsNoHow many of the newest 4h buckets to emit. Omit for the full window (60 points ~ 10 days); 0 suppresses the series and returns the summary only.
symbolYesCoin symbol, e.g. "BTC".

Output Schema

NameRequiredDescriptionDefault
foundYesFalse when no provider lists the symbol; only symbol is then present
seriesNoThe open-interest series; absent when points=0 or the history feed is down
symbolYes
changesNoOpen-interest change over 24h and 7d from the 4h series; empty when the history feed is down or too short
aggregateNoFalse when the aggregate source was offline and the level is one venue's
baseline1yNoThe level and today's 24h change ranked against a year of the aggregate's daily closes
levelAsOfMsNoOpen time of that bucket (a snapshot, not live), Unix epoch milliseconds
levelSourceNoVenue whose newest 4h bucket stands in for the level when aggregate is false; absent when the level is the merged single-venue figure
seriesVenueNoSet when the level is the aggregate but changes and series come from one venue (a different book than the level)
openInterestUsdNoOpen interest, USD: the cross-exchange aggregate, or one venue's when aggregate is false
priceChangePct24hNo24h price change in percentage points; absent when there is no price

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "aggregate": {
      +      "description": "False when the aggregate source was offline and the level is one venue's",
      +      "type": "boolean"
      +    },
      +    "baseline1y": {
      +      "description": "The level and today's 24h change ranked against a year of the aggregate's daily closes",
      +      "properties": {
      +        "change24h": {
      +          "description": "The current 24h change ranked among the year's day-on-day changes; low, median and high are percent. Absent when the level is one venue's, the 4h series is not the aggregate, or the year is too short",
      +          "properties": {
      +            "atOrAboveMs": {
      +              "description": "Newest day at or above this change, Unix epoch milliseconds; absent when it tops the year",
      +              "type": "integer"
      +            },
      +            "available": {
      +              "type": "boolean"
      +            },
      +            "days": {
      +              "description": "Settled days ranked against",
      +              "type": "integer"
      +            },
      +            "high": {
      +              "description": "Year's highest day-on-day change, percent",
      +              "type": "number"
      +            },
      +            "highMs": {
      +              "description": "Day of the high, Unix epoch milliseconds",
      +              "type": "integer"
      +            },
      +            "low": {
      +              "description": "Year's lowest day-on-day change, percent",
      +              "type": "number"
      +            },
      +            "lowMs": {
      +              "description": "Day of the low, Unix epoch milliseconds",
      +              "type": "integer"
      +            },
      +            "median": {
      +              "description": "Year's median day-on-day change, percent",
      +              "type": "number"
      +            },
      +            "note": {
      +              "type": "string"
      +            },
      +            "percentile": {
      +              "description": "Rank among the year's day-on-day changes, 0-100",
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "available"
      +          ],
      +          "type": "object"
      +        },
      +        "level": {
      +          "description": "The level's rank; low, median and high are USD. Unavailable when the level is one venue's",
      +          "properties": {
      +            "atOrAboveMs": {
      +              "description": "Newest day at or above the level, Unix epoch milliseconds; absent when it tops the year",
      +              "type": "integer"
      +            },
      +            "available": {
      +              "description": "False when there is nothing to rank against; note says why",
      +              "type": "boolean"
      +            },
      +            "days": {
      +              "description": "Settled days ranked against",
      +              "type": "integer"
      +            },
      +            "high": {
      +              "description": "Year's highest daily close, USD",
      +              "type": "number"
      +            },
      +            "highMs": {
      +              "description": "Day of the high, Unix epoch milliseconds",
      +              "type": "integer"
      +            },
      +            "low": {
      +              "description": "Year's lowest daily close, USD",
      +              "type": "number"
      +            },
      +            "lowMs": {
      +              "description": "Day of the low, Unix epoch milliseconds",
      +              "type": "integer"
      +            },
      +            "median": {
      +              "description": "Year's median daily close, USD",
      +              "type": "number"
      +            },
      +            "note": {
      +              "description": "Why the baseline is missing",
      +              "type": "string"
      +            },
      +            "percentile": {
      +              "description": "Rank among the year's settled daily closes, 0-100",
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "available"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "level"
      +      ],
      +      "type": "object"
      +    },
      +    "changes": {
      +      "description": "Open-interest change over 24h and 7d from the 4h series; empty when the history feed is down or too short",
      +      "items": {
      +        "properties": {
      +          "changePct": {
      +            "description": "Change over the window, percent",
      +            "type": "number"
      +          },
      +          "nowUsd": {
      +            "description": "Open interest at the newest point, USD",
      +            "type": "number"
      +          },
      +          "priorUsd": {
      +            "description": "Open interest at the start of the window, USD",
      +            "type": "number"
      +          },
      +          "window": {
      +            "description": "24h or 7d",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "window",
      +          "priorUsd",
      +          "nowUsd",
      +          "changePct"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "found": {
      +      "description": "False when no provider lists the symbol; only symbol is then present",
      +      "type": "boolean"
      +    },
      +    "levelAsOfMs": {
      +      "description": "Open time of that bucket (a snapshot, not live), Unix epoch milliseconds",
      +      "type": "integer"
      +    },
      +    "levelSource": {
      +      "description": "Venue whose newest 4h bucket stands in for the level when aggregate is false; absent when the level is the merged single-venue figure",
      +      "type": "string"
      +    },
      +    "openInterestUsd": {
      +      "description": "Open interest, USD: the cross-exchange aggregate, or one venue's when aggregate is false",
      +      "type": "number"
      +    },
      +    "priceChangePct24h": {
      +      "description": "24h price change in percentage points; absent when there is no price",
      +      "type": "number"
      +    },
      +    "series": {
      +      "description": "The open-interest series; absent when points=0 or the history feed is down",
      +      "properties": {
      +        "intervalHours": {
      +          "description": "Bucket size, hours",
      +          "type": "number"
      +        },
      +        "points": {
      +          "description": "Oldest first",
      +          "items": {
      +            "properties": {
      +              "forming": {
      +                "description": "Bucket still open: a running estimate the feed rewrites until it closes",
      +                "type": "boolean"
      +              },
      +              "openInterestUsd": {
      +                "description": "Open interest, USD",
      +                "type": "number"
      +              },
      +              "timeMs": {
      +                "description": "Bucket open time, Unix epoch milliseconds",
      +                "type": "integer"
      +              }
      +            },
      +            "required": [
      +              "timeMs",
      +              "openInterestUsd",
      +              "forming"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "source": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "source",
      +        "points"
      +      ],
      +      "type": "object"
      +    },
      +    "seriesVenue": {
      +      "description": "Set when the level is the aggregate but changes and series come from one venue (a different book than the level)",
      +      "type": "string"
      +    },
      +    "symbol": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "found",
      +    "symbol"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond readOnlyHint=true, the description discloses substantive behavior: a fallback to a single-venue figure when the aggregate source is offline, the 4h bucket granularity, inclusion of the window's own low/high, a 1y percentile/range ranking with dates, and a caveat that the change rank is the better read than the USD level. These are exactly the operational traits an agent cannot infer from the annotation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and payload are front-loaded in sentence one, and the interpretive guidance on OI vs price earns its space. The prose is dense and jargon-heavy, with several clauses stacked into single sentences, but no sentence is pure filler.

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?

An output schema exists, so return-shape explanation is not required, yet the description still covers the summary fields, series granularity, ranking, and degradation path. Nothing an agent needs in order to call this correctly and interpret the result 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 coverage is 100% and both parameters are already documented, so the schema does the heavy lifting. The description's 'Set points to trim the series (omit for the full ~10-day window; 0 to suppress it)' largely restates the schema text, adding only mild emphasis on the summary-only case.

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 first sentence names a specific resource (market-wide cross-exchange aggregate open interest in USD for one coin's perpetuals) and enumerates the exact payload: 24h/7d change, 24h price change, and a 4h-bucket series. It also positions itself against the sibling it complements ('pair it with market_candles at 4h for the price leg'), so an agent can separate this from the price tool without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear interpretive usage — read OI against price, with the rising-OI vs falling-OI distinction spelled out — and explicitly names the companion tool for the price leg. It does not state when to prefer derivatives_flow, funding_current, or a single-venue alternative, so the guidance is context-rich but not exclusionary.

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