Skip to main content
Glama

Liquidations (paid, x402) — $0.003

get_liquidations
Read-onlyIdempotent

Use when you need recent crypto liquidations (long vs short, USD notional) for one coin in the last 15 min to 24h. Recent crypto liquidations for one coin ($0.003/call, USDC on Base via x402). OKX USDT-SWAP public liquidation orders over the last hours=0.25-24 (default 1): count and USD notional split long/short, contract value, and each event (time, price, size, notional, side). Unknown symbol or upstream error: no charge. Example: GET https://cryptofeed402.site/liquidations/BTC?hours=1

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": 1,
      "symbol": "BTC"
    },
    "name": "get_liquidations"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNo
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": "ISO-8601 UTC",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "billing": {
      +          "description": "Charged only on this 200",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "contract_value": {
      +          "description": "{ct_val, ct_val_ccy} OKX contract size",
      +          "properties": {
      +            "ct_val": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "ct_val_ccy": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "count": {
      +          "description": "Number of liquidation events",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "disclaimer": {
      +          "description": "Not financial advice notice",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "events": {
      +          "description": "[{time, price, size_contracts, size_coins, notional_usd, side, venue}]",
      +          "items": {
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "long_liquidations": {
      +          "description": "{count, notional_usd} longs liquidated",
      +          "properties": {
      +            "count": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "notional_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "notional_usd_total": {
      +          "description": "Total liquidated USD",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        },
      +        "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"
      +        },
      +        "short_liquidations": {
      +          "description": "{count, notional_usd} shorts liquidated",
      +          "properties": {
      +            "count": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            },
      +            "notional_usd": {
      +              "type": [
      +                "number",
      +                "null"
      +              ]
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "symbol": {
      +          "description": "Ticker",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "venue": {
      +          "description": "okx",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "window_hours": {
      +          "description": "Window actually used",
      +          "type": [
      +            "number",
      +            "null"
      +          ]
      +        }
      +      },
      +      "required": [
      +        "as_of",
      +        "billing",
      +        "contract_value",
      +        "count",
      +        "disclaimer",
      +        "events",
      +        "long_liquidations",
      +        "notional_usd_total",
      +        "short_liquidations",
      +        "symbol",
      +        "venue",
      +        "window_hours"
      +      ],
      +      "title": "Paid HTTP 200 body of GET /liquidations/{symbol}",
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, but the description adds substantial behavior beyond them: per-call pricing ($0.003 USDC on Base via x402), billing exception ('Unknown symbol or upstream error: no charge'), the upstream data source (OKX USDT-SWAP public liquidation orders), and the default window (hours default 1). These are exactly the operational facts an agent needs before spending money on a call.

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?

Front-loaded with the use case, followed by pricing, data source, output shape and a concrete example URL — all useful. There is mild redundancy between the first sentence and the second ('recent crypto liquidations ... for one coin' restated), but nothing that wastes meaningful space.

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?

For a paid, two-parameter tool with an output schema, the definition covers trigger, price, billing failure mode, source, defaults and output fields, so an agent can call it confidently. The only uncovered ground is the x402 payment handshake itself (how the 402 challenge is settled), which is gestured at but not explained.

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 only 50%, and the undocumented parameter is `hours`; the description compensates by giving its valid range (0.25–24), its default (1), and its unit interpretation ('last hours'). The `symbol` parameter is only restated as 'one coin', but the schema already carries the ticker example and pattern.

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 names a specific verb and resource (recent crypto liquidations for one coin), quantifies the scope (last 15 min to 24h), and specifies the returned content (long vs short USD notional, contract value, per-event time/price/size/notional/side). The bounded time window also implicitly separates it from the weekly sibling, so an agent can pick between them without opening a 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 opens with an explicit trigger condition ('Use when you need recent crypto liquidations ... in the last 15 min to 24h'), which is clear usage context. It offers no explicit when-not guidance or named alternative (e.g. get_liquidations_weekly), leaving that inference to the agent.

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.