Skip to main content
Glama

Weekly liquidation history (paid, x402) — $0.005

get_liquidations_weekly
Read-onlyIdempotent

Use when you need up to 7 days of hourly/daily long vs short liquidation history for one coin. Weekly crypto liquidation history ($0.005/call, USDC on Base via x402). For one symbol (OKX USDT-SWAP, recorded continuously by cryptofeed402), days=1-7 (default 7): hourly and daily long/short buckets in USD, totals, long share %, largest single liquidation and top 5 hours. Reports real coverage (hours covered vs requested). Untracked, warming or stale: error, no charge. Example: GET https://cryptofeed402.site/liquidations/weekly/BTC?days=7

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": {
      "days": 7,
      "symbol": "BTC"
    },
    "name": "get_liquidations_weekly"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
symbolYesTicker, 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": "Last collector update",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "billing": {
      +          "description": "Charged only on this 200",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "bucket": {
      +          "description": "Bucket size (1h UTC)",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "coverage": {
      +          "description": "{hours_requested, hours_covered, complete, covered_from}",
      +          "properties": {
      +            "complete": {
      +              "type": "boolean"
      +            },
      +            "covered_from": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "hours_covered": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "hours_requested": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "daily": {
      +          "description": "Per UTC day long/short counts and USD",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "disclaimer": {
      +          "description": "Not financial advice notice",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "hourly": {
      +          "description": "Every hourly bucket",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "instrument": {
      +          "description": "OKX instrument id",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "method": {
      +          "description": "{notional, side} definitions",
      +          "properties": {
      +            "notional": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "side": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "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"
      +        },
      +        "route": {
      +          "description": "Route id",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "schema": {
      +          "description": "Response schema id",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "symbol": {
      +          "description": "Ticker",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "top_hours": {
      +          "description": "Top 5 hours by USD liquidated",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "totals": {
      +          "description": "{long_count, short_count, long_usd, short_usd, total_usd, long_share_pct, net_long_minus_short_usd, largest_single_usd}",
      +          "properties": {
      +            "largest_single_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "long_count": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "long_share_pct": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "long_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "net_long_minus_short_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "short_count": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "short_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "total_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "venue": {
      +          "description": "okx",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "window_days": {
      +          "description": "Days requested",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of",
      +        "billing",
      +        "bucket",
      +        "coverage",
      +        "daily",
      +        "disclaimer",
      +        "hourly",
      +        "instrument",
      +        "method",
      +        "route",
      +        "schema",
      +        "symbol",
      +        "top_hours",
      +        "totals",
      +        "venue",
      +        "window_days"
      +      ],
      +      "title": "Paid HTTP 200 body of GET /liquidations/weekly/{symbol}",
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, and the description adds substantial context beyond them: cost ($0.005/call in USDC on Base via x402), the data source and recording method (OKX USDT-SWAP via cryptofeed402), what is returned when coverage is partial, and that untracked/warming/stale symbols produce an error with no charge. That error-without-charge guarantee is exactly the kind of behavioral detail an agent needs before spending money.

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 usage condition is front-loaded in the first sentence, followed by cost, scope, returns, and failure behavior in a logical order. The paragraph is dense but nearly every clause carries actionable information; the trailing example URL is useful but the pricing detail is repeated between title and body.

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, single-symbol history endpoint, the description covers cost and payment rail, parameter bounds and defaults, the exact shape of returned buckets and summary stats, coverage reporting, and the failure/no-charge path. With an output schema present, no return-value detail is strictly required, yet the description still gives enough for correct invocation.

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% — symbol is documented in the schema, days is not beyond min/max. The description fills that gap by stating days=1-7 with a default of 7, and clarifies that symbol maps to a single OKX USDT-SWAP ticker. It does not explain the symbol pattern or case handling, leaving a small residual gap.

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?

The description names a specific verb and resource — hourly/daily long vs short liquidation history for one coin — and bounds the scope to 'up to 7 days,' which implicitly separates it from a shorter-window liquidation sibling. It does not explicitly name the alternative tool, so differentiation relies on the agent inferring from the window limit.

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 up to 7 days of hourly/daily long vs short liquidation history for one coin' gives a clear triggering condition, and the symbol constraint (OKX USDT-SWAP) tells the agent which assets qualify. There is no explicit when-not guidance or named alternative for other windows.

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