Skip to main content
Glama

Open-interest history (paid, x402) — $0.004

get_oi_history
Read-onlyIdempotent

Use when you need recent hourly open interest history for a Hyperliquid perp (up to 8 days). Open interest history for one Hyperliquid main-dex perp ($0.004/call, USDC on Base via x402): about-hourly points with OI in coins and USD, mark price and hourly funding rate, plus % change and min/max. From cryptofeed402's own snapshots (8-day retention; Hyperliquid has no public OI history). hours=1-192 (default 24). HIP-3 not supported. Errors: no charge. Example: GET https://cryptofeed402.site/oi/history/BTC?hours=24

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": {
      "hours": 24,
      "symbol": "BTC"
    },
    "name": "get_oi_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
symbolYesHyperliquid main-dex perp ticker, e.g. BTC

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "accepts": {
      +          "items": {
      +            "properties": {
      +              "amount": {
      +                "description": "USDC atomic units (6 decimals)",
      +                "type": "string"
      +              },
      +              "asset": {
      +                "type": "string"
      +              },
      +              "extra": {
      +                "type": "object"
      +              },
      +              "maxTimeoutSeconds": {
      +                "type": "number"
      +              },
      +              "network": {
      +                "const": "eip155:8453",
      +                "type": "string"
      +              },
      +              "payTo": {
      +                "type": "string"
      +              },
      +              "scheme": {
      +                "const": "exact",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "scheme",
      +              "network",
      +              "amount",
      +              "asset",
      +              "payTo"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "properties": {
      +            "description": {
      +              "type": "string"
      +            },
      +            "mimeType": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ],
      +      "title": "x402 PaymentRequired (what this MCP tool returns, isError=true)",
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "as_of": {
      +          "description": "ISO-8601 UTC",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "count": {
      +          "description": "Points returned",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "coverage": {
      +          "description": "{first_snapshot_at, retention_days, max_hours_per_call, note}",
      +          "properties": {
      +            "first_snapshot_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "max_hours_per_call": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "note": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "retention_days": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "disclaimer": {
      +          "description": "Not financial advice notice",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "generated_at": {
      +          "description": "Response time",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "interval": {
      +          "description": "Point spacing",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "points": {
      +          "description": "[{time, open_interest_coins, open_interest_usd, mark_px, funding_hourly}]",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "provenance": {
      +          "description": "Optional provenance on paid 200s",
      +          "properties": {
      +            "data_sha256": {
      +              "type": "string"
      +            },
      +            "fetched_at": {
      +              "type": "string"
      +            },
      +            "max_age_s": {
      +              "type": "number"
      +            },
      +            "source": {
      +              "type": "string"
      +            },
      +            "sources": {
      +              "type": "array"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "source": {
      +          "description": "Snapshot source",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "stats": {
      +          "description": "{change_pct, min_coins, max_coins, first_at, last_at}",
      +          "properties": {
      +            "change_pct": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "first_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "last_at": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "max_coins": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "min_coins": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "symbol": {
      +          "description": "Ticker",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "venue": {
      +          "description": "hyperliquid",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "window": {
      +          "description": "{from, to, hours}",
      +          "properties": {
      +            "from": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "hours": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "to": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "as_of",
      +        "count",
      +        "coverage",
      +        "disclaimer",
      +        "generated_at",
      +        "interval",
      +        "points",
      +        "source",
      +        "stats",
      +        "symbol",
      +        "venue",
      +        "window"
      +      ],
      +      "title": "Paid HTTP 200 body of GET /oi/history/{symbol}",
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "hours": 24,
      +    "symbol": "BTC"
      +  }
      +]
    • addedInput schema / properties / hours / examples
      Added value: +[
      +  24
      +]
    • addedInput schema / properties / symbol / examples
      Added value: +[
      +  "BTC"
      +]
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description's job is added context, and it delivers: cost ($0.004/call, USDC on Base via x402), the reassurance that errors are not charged, data provenance, and the 8-day retention limit. The note that Hyperliquid has no public OI history explains why this paid snapshot source exists.

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?

Dense but front-loaded: trigger first, then payload contents, then pricing, constraints, and a concrete GET example. Nearly every clause carries information, though the parenthetical pricing/route detail sits mid-sentence and could be cleaner.

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 optional, yet the description still summarizes the fields (OI in coins and USD, mark price, funding rate, % change, min/max). Pricing, error charging, retention, and unsupported markets are all covered, leaving little an agent needs to guess.

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

Parameters4/5

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

Schema coverage is 50% and the description compensates by supplying the 'hours=1-192 (default 24)' default, which the schema itself does not declare, and by framing symbol as a main-dex perp ticker (HIP-3 excluded). It adds less on symbol formatting beyond what the schema regex already states.

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 and resource ('hourly open interest history for a Hyperliquid perp') plus scope ('up to 8 days'), which separates it from funding- and candle-oriented siblings like get_funding_history or get_hl_history_1m without needing their schemas. The data provenance note ('from cryptofeed402's own snapshots') further pins down what the tool actually returns.

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?

Opens with an explicit when-to-use trigger and gives two implicit exclusions: 8-day retention ceiling and 'HIP-3 not supported'. It does not name a sibling to use instead for longer history or HIP-3 markets, so it stops short of full alternative routing.

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