Skip to main content
Glama

defillama_open_interest

Read-only

List perpetual venues with open-interest summaries including 24h, 7d, and all-time values, optionally scoped to one chain from the unscoped response's allChains list. Use defillama_options for options volume, which is a different upstream dataset.

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": "defillama_open_interest"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoOptional chain name from the unscoped response's allChains field, e.g. Ethereum; omit for every chain.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties
      Added value: +{
      +  "chain": {
      +    "description": "Optional chain name from the unscoped response's allChains field, e.g. Ethereum; omit for every chain.",
      +    "type": "string"
      +  }
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, openWorldHint=true, idempotentHint=false), so the description doesn't need to restate them. It adds real workflow context by implying a two-step pattern: call unscoped first, read the allChains list, then narrow via the chain parameter. Rate limits and freshness of the open-interest figures are not disclosed, which keeps it from a 5.

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?

Two sentences, zero filler: the capability and its time windows lead, the sibling disambiguation follows. Nothing needs trimming and nothing needed is buried.

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 an output schema present, return values need not be explained, and the description still flags the allChains workflow that makes the single optional parameter usable. A minor gap is that it never clarifies granularity (per-venue rows vs aggregate) beyond the phrase 'summaries'.

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 the schema's chain description already names allChains and gives an example, so the description's equivalent wording adds little new meaning. Baseline 3 is appropriate when the single parameter is fully documented structurally.

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 description gives a specific verb plus resource ('List perpetual venues with open-interest summaries') and enumerates the included measures (24h, 7d, all-time), so an agent can tell exactly what data comes back. It also names a distinct sibling dataset (defillama_options for options volume), separating perp open interest from options volume without opening either schema.

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 states the alternative explicitly ('Use defillama_options for options volume, which is a different upstream dataset') and explains the omit-to-get-all behavior for the chain parameter. What's missing is when-not-to-use framing beyond the options/perp distinction, e.g. whether it fits single-protocol lookups versus market-wide aggregation.

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.