Skip to main content
Glama

open_interest

Open interest per chain: latest value, the value at the start of the window, change in percent, high and low inside the window and a sampled series. window in hours, default 24, max 720. Omit chain for all nine. Price: 2 cents per call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNo
windowNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultsYes
dataGapsNoPresent only when the window of the answer overlaps a recorded data gap. Figures inside each listed period are incomplete. periods are the recorded gaps (end null while still open); atCall is measured against the window of this call and is left out of meta.contentHash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"670f7504e3de5031beccee25a2d24e4515f68b893295f6d5b0d3a0665498b2c9"New value: +"25cc80db6d8e9eac73d47a50f7ad6333a21f1972d008a8fed0159de8bfb4b519"
  2. Changed2 schema fields changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"e5b4290024a229f2bdf97f8fc6a0079c3fe13b77267f41fdcffeb8b26aa1c41e"New value: +"670f7504e3de5031beccee25a2d24e4515f68b893295f6d5b0d3a0665498b2c9"
    • changedInput schema / x-lexicon / version
      Previous value: -"0.1.0"New value: +"0.2.0"
  3. Changed4 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedOutput schema / properties / dataGaps
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Present only when the window of the answer overlaps a recorded data gap. Figures inside each listed period are incomplete. periods are the recorded gaps (end null while still open); atCall is measured against the window of this call and is left out of meta.contentHash.",
      +  "properties": {
      +    "gaps": {
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "atCall": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "note": {
      +                "type": "string"
      +              },
      +              "periodsInWindow": {
      +                "items": {
      +                  "additionalProperties": false,
      +                  "properties": {
      +                    "end": {
      +                      "type": "number"
      +                    },
      +                    "ongoing": {
      +                      "type": "boolean"
      +                    },
      +                    "start": {
      +                      "type": "number"
      +                    }
      +                  },
      +                  "required": [
      +                    "start",
      +                    "end"
      +                  ],
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "shareOfWindowPct": {
      +                "type": "number"
      +              },
      +              "windowEnd": {
      +                "type": "number"
      +              },
      +              "windowStart": {
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "windowStart",
      +              "windowEnd",
      +              "periodsInWindow",
      +              "shareOfWindowPct",
      +              "note"
      +            ],
      +            "type": "object"
      +          },
      +          "chain": {
      +            "type": "string"
      +          },
      +          "data": {
      +            "type": "string"
      +          },
      +          "periods": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "end": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "ongoing": {
      +                  "type": "boolean"
      +                },
      +                "start": {
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "start",
      +                "end"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "records": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "lost": {
      +                  "type": [
      +                    "number",
      +                    "null"
      +                  ]
      +                },
      +                "lostUnit": {
      +                  "type": [
      +                    "string",
      +                    "null"
      +                  ]
      +                },
      +                "record": {
      +                  "type": "string"
      +                },
      +                "source": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "source",
      +                "record"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "section": {
      +            "type": "string"
      +          },
      +          "window": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "section",
      +          "chain",
      +          "data",
      +          "window",
      +          "periods",
      +          "records",
      +          "atCall"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "statement": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "statement",
      +    "gaps"
      +  ],
      +  "type": "object"
      +}
    • removedOutput schema / properties / meta
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "contentHash": {
      -      "type": "string"
      -    },
      -    "generated": {
      -      "type": "number"
      -    },
      -    "priceUsd": {
      -      "type": "number"
      -    },
      -    "validUntil": {
      -      "type": "number"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedOutput schema / properties / receipt
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "bytes": {
      -      "type": "number"
      -    },
      -    "covers": {
      -      "type": "string"
      -    },
      -    "issuedAt": {
      -      "type": "number"
      -    },
      -    "lookup": {
      -      "type": "string"
      -    },
      -    "network": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "nonce": {
      -      "type": "string"
      -    },
      -    "seq": {
      -      "type": "number"
      -    },
      -    "settleTx": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "sha256": {
      -      "type": "string"
      -    },
      -    "tool": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}
  4. Changed1 schema field changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"a1c2e10fd3177d6b4d59ca78693e8fb36880165cf0f735f680dd86a510411178"New value: +"e5b4290024a229f2bdf97f8fc6a0079c3fe13b77267f41fdcffeb8b26aa1c41e"
  5. Changed1 schema field changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"1eeb782ee15fe69fc80776948e0556fa6b795e210e6305935b2c97b73d955cda"New value: +"a1c2e10fd3177d6b4d59ca78693e8fb36880165cf0f735f680dd86a510411178"
  6. Changed1 schema field changed
    • changedInput schema / x-lexicon / bundleSha256
      Previous value: -"c014292cad7497ce9fd68c33345ac32cb42b672c8e77d6c749c26e162cc207e4"New value: +"1eeb782ee15fe69fc80776948e0556fa6b795e210e6305935b2c97b73d955cda"
  7. Changed2 schema fields changed
    • addedInput schema / x-lexicon
      Added value: +{
      +  "bundleSha256": "c014292cad7497ce9fd68c33345ac32cb42b672c8e77d6c749c26e162cc207e4",
      +  "name": "ChainHelix Agentic Lexicon",
      +  "resolve": "lexicon_resolve",
      +  "spec": "lexicon_spec",
      +  "version": "0.1.0"
      +}
    • addedInput schema / x-vocab
      Added value: +{
      +  "chain": "onchain.chain",
      +  "window": "market.window"
      +}
  8. Changed1 schema field changed
    • addedOutput schema / properties / results / items / properties / source
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  9. Changed3 schema fields changed
    • addedOutput schema / properties / meta
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "contentHash": {
      +      "type": "string"
      +    },
      +    "generated": {
      +      "type": "number"
      +    },
      +    "priceUsd": {
      +      "type": "number"
      +    },
      +    "validUntil": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / receipt
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "bytes": {
      +      "type": "number"
      +    },
      +    "covers": {
      +      "type": "string"
      +    },
      +    "issuedAt": {
      +      "type": "number"
      +    },
      +    "lookup": {
      +      "type": "string"
      +    },
      +    "network": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "nonce": {
      +      "type": "string"
      +    },
      +    "seq": {
      +      "type": "number"
      +    },
      +    "settleTx": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "sha256": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / results / items / properties / latestAt
      Added value: +{
      +  "type": [
      +    "number",
      +    "null"
      +  ]
      +}
  10. Added

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose a genuinely useful behavioral fact — 'Price: 2 cents per call' — plus the window default and cap, which are helpful constraints. However, it says nothing about rate limits, auth requirements, or error behavior on out-of-range windows, leaving real gaps for an unannotated tool.

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?

Four short clauses, front-loaded with the metric and its outputs, then parameter rules, then cost. No filler and every sentence adds an actionable detail.

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?

An output schema exists, so return values need not be documented (though the description helpfully summarizes them). It covers both parameters, defaults, the cap, and the cost, which is strong for a two-param tool; the only omissions are failure modes and any access prerequisites.

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 description coverage is 0%, so the description must carry parameter meaning, and it largely does: window is defined in hours with a default of 24 and a max of 720, and chain omission is explicitly defined as returning all nine chains (matching the nine-value enum). Only minor gaps remain, e.g. behavior on an invalid or fractional window.

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?

Names a specific metric and scope ('Open interest per chain') and enumerates the returned quantities (latest, window-start, percent change, high/low, sampled series), so the agent knows exactly what it fetches. It does not name a sibling or contrast itself with related market tools like market_state or prices, but the resource 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?

Gives operational guidance for the optional parameters ('window in hours, default 24, max 720', 'Omit chain for all nine'), which tells the agent how to invoke it. There is no when-to-use vs. alternative guidance, no mention of which market conditions warrant this call, and no exclusions relative to the many sibling market tools.

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