Skip to main content
Glama

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

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.005/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.3/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent/non-destructive annotations: it discloses per-call pricing ($0.005 USDC on Base via x402), the snapshot source and 8-day retention, that Hyperliquid has no public OI history, and that errors are not charged. Payment and failure-charge behavior are exactly the traits annotations cannot express.

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 trigger condition is front-loaded, followed by payload, pricing/source, limits, and an example endpoint. Dense but nearly every sentence carries signal, with only mild redundancy repeating the $0.005 price from the title.

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 paid, read-only history tool with two parameters and an output schema, everything an agent needs to call it correctly is present: cost, retention window, granularity, defaults, exclusions, error charging, and a call example.

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?

The description supplies the meaning the schema lacks for hours (range 1-192, default 24) and clarifies symbol as a main-dex perp ticker. With only 50% schema coverage, this is the compensating detail an agent needs, though the regex/ticker constraints are left to the schema.

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?

States a specific verb and resource: hourly open interest history for one Hyperliquid main-dex perp, capped at 8 days. It also scopes the payload (OI in coins and USD, mark price, funding, % change, min/max). It never explicitly contrasts with get_funding_history or get_history, so sibling differentiation is implied rather than stated.

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?

"Use when you need recent hourly open interest history" plus the 8-day ceiling and "HIP-3 not supported" give a clear use condition and a hard exclusion. No named alternative tool is offered for cases outside the 8-day window, which is the main gap.

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.