Skip to main content
Glama

Forced closes (liquidations)

liquidations
Read-onlyIdempotent

Forced closes. scope: coin (recorded long vs short closes for one coin, the default when a coin is named), market (the whole market, long/short split, the default otherwise), lending (on-chain lending liquidations with both wallets, never added to perp), projected (modelled levels, not trades), heat (where closes hit by price band). A long is force-closed by selling.

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

Input Schema

NameRequiredDescriptionDefault
coinNoCoin symbol, e.g. BTC. A pair like ETH/USD works too.
chainNoethereum, base or arbitrum. Omit for all.
hoursNoHow many hours back to read.
limitNoRows to return (usually up to 1000; more is clamped and said).
scopeNoWhich lane; see the description.
cursorNoNext page: the cursor from the previous answer.
detailNobrief (default): the answer, key numbers and top rows. full: every row, paged with cursor.
questionNoThe question to answer, as it was asked (e.g. "why is ETH down today"). `answer` is then written for it.
since_msNoOnly rows newer than this Unix-ms time (polling cursor).

Output Schema

NameRequiredDescriptionDefault
as_ofNoData time, ISO.
caveatNoA real limit, when non-null.
cursorNoNext page (detail full).
delayedNoSet when not live.
summaryNoThe answer in one sentence.
as_of_msNoData time, Unix ms.
availableNoFalse: no data; note says why.
truncatedNoLists shortened to their top rows; trimmed has shown of all per list and note says it in words.
next_toolsNoFollow-up calls {tool,args,why}.
access_noteNoWhat this connection could not return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / question
      Added value: +{
      +  "description": "The question to answer, as it was asked (e.g. \"why is ETH down today\"). `answer` is then written for it.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / truncated / description
      Previous value: -"Lists cut to fit; trimmed has kept of total per list and note says it in words."New value: +"Lists shortened to their top rows; trimmed has shown of all per list and note says it in words."
  2. Changed1 schema field changed
    • changedOutput schema / properties / truncated / description
      Previous value: -"Rows held back; see trimmed."New value: +"Lists cut to fit; trimmed has kept of total per list and note says it in words."
  3. Changed49 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / additionalProperties
      Added value: +{}
    • addedInput schema / properties / chain
      Added value: +{
      +  "description": "ethereum, base or arbitrum. Omit for all.",
      +  "type": "string"
      +}
    • changedInput schema / properties / coin / description
      Previous value: -"Alias for pair."New value: +"Coin symbol, e.g. BTC. A pair like ETH/USD works too."
    • addedInput schema / properties / cursor
      Added value: +{
      +  "description": "Next page: the cursor from the previous answer.",
      +  "type": "string"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "brief (default): the answer, key numbers and top rows. full: every row, paged with cursor.",
      +  "enum": [
      +    "brief",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / hours / description
      Previous value: -"Look back this many hours, up to 720. Omit for the most recent events."New value: +"How many hours back to read."
    • changedInput schema / properties / hours / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / limit / description
      Previous value: -"Max rows returned. Capped at 25 on the free plans and 1000 on a paid plan; asking for more returns the cap, and the payload says so in `capped`. count and the *_usd totals always cover the whole window regardless."New value: +"Rows to return (usually up to 1000; more is clamped and said)."
    • removedInput schema / properties / limit / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / limit / minimum
      Removed value: --9007199254740991
    • removedInput schema / properties / pair
      Removed value: -{
      -  "description": "e.g. ETH/USD. A bare symbol like ETH also works.",
      -  "type": "string"
      -}
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "Which lane; see the description.",
      +  "enum": [
      +    "coin",
      +    "market",
      +    "lending",
      +    "projected",
      +    "heat"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / since_ms / description
      Previous value: -"Polling cursor: only rows newer than this Unix-ms timestamp, applied before the row cap. Pass back the next_since_ms from the previous answer so a timer never re-reads the same rows."New value: +"Only rows newer than this Unix-ms time (polling cursor)."
    • removedInput schema / properties / since_ms / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / since_ms / minimum
      Removed value: --9007199254740991
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / properties / access_note / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedOutput schema / properties / access_note / description
      Previous value: -"What this connection could not return and what lifts it. Always pass this on to the user: it is the only place that information appears."New value: +"What this connection could not return."
    • addedOutput schema / properties / as_of
      Added value: +{
      +  "description": "Data time, ISO."
      +}
    • addedOutput schema / properties / as_of_ms
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Data time, Unix ms."
      +}
    • removedOutput schema / properties / available / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedOutput schema / properties / available / description
      Previous value: -"False when this lane could not answer: a producer is dark, the pair sits outside this plan, or the argument named something we do not carry. Absent or true means the numbers are a real reading, not a guess."New value: +"False: no data; note says why."
    • addedOutput schema / properties / available / type
      Added value: +"boolean"
    • removedOutput schema / properties / capped
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": false,
      -      "properties": {
      -        "applied": {
      -          "description": "The value actually used.",
      -          "type": "number"
      -        },
      -        "argument": {
      -          "description": "Which argument was cut down, for example limit or hours.",
      -          "type": "string"
      -        },
      -        "by": {
      -          "description": "Why it was cut: keyless for the free ceiling, plan_max for a paid ceiling, tool_max for a ceiling no plan raises.",
      -          "type": "string"
      -        },
      -        "max": {
      -          "description": "The ceiling that applied.",
      -          "type": "number"
      -        },
      -        "requested": {
      -          "description": "The value the caller asked for.",
      -          "type": "number"
      -        }
      -      },
      -      "required": [
      -        "argument",
      -        "requested",
      -        "applied",
      -        "max",
      -        "by"
      -      ],
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Present only when an argument was cut down to a ceiling. Absent means nothing was clamped, so a smaller number than you asked for is the data and not a limit."
      -}
    • addedOutput schema / properties / caveat
      Added value: +{
      +  "description": "A real limit, when non-null."
      +}
    • removedOutput schema / properties / count
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "How many events fired in the whole window, not how many rows came back."
      -}
    • addedOutput schema / properties / cursor
      Added value: +{
      +  "description": "Next page (detail full)."
      +}
    • addedOutput schema / properties / delayed
      Added value: +{
      +  "description": "Set when not live."
      +}
    • removedOutput schema / properties / history_included
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "True when the recorded series was merged in, so a restart has not erased earlier events."
      -}
    • removedOutput schema / properties / liquidations
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "items": {},
      -      "type": "array"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The events themselves, newest first: price, size in base and quote, side (long_liquidated or short_liquidated), exchange and time. A sample of the window when truncated is true."
      -}
    • removedOutput schema / properties / long_liquidations
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "COUNT of longs force-closed. For dollars read long_usd."
      -}
    • removedOutput schema / properties / long_usd
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Dollars of longs force-closed across the window."
      -}
    • addedOutput schema / properties / next_tools
      Added value: +{
      +  "description": "Follow-up calls {tool,args,why}.",
      +  "items": {
      +    "additionalProperties": {},
      +    "properties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / note
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "One line saying what the numbers cover, or why there are none. Read it before reporting any zero as a market reading."
      -}
    • removedOutput schema / properties / pair
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The pair these events belong to."
      -}
    • removedOutput schema / properties / requested_hours
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The period asked for, so a page can be told apart from a period."
      -}
    • removedOutput schema / properties / rows_returned
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "How many event rows are actually in this reply."
      -}
    • removedOutput schema / properties / rows_span_minutes
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "How far back the returned rows themselves reach."
      -}
    • removedOutput schema / properties / short_liquidations
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "COUNT of shorts force-closed. For dollars read short_usd."
      -}
    • removedOutput schema / properties / short_usd
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Dollars of shorts force-closed across the window."
      -}
    • removedOutput schema / properties / sources
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "additionalProperties": {},
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "How the events split between the streamed exchanges and Hyperliquid, and whether the Hyperliquid part is a sample."
      -}
    • addedOutput schema / properties / summary
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The answer in one sentence."
      +}
    • removedOutput schema / properties / total_in_window
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "How many events the window holds in total."
      -}
    • removedOutput schema / properties / total_volume_usd
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "Dollars forced out across the whole window."
      -}
    • removedOutput schema / properties / truncated / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedOutput schema / properties / truncated / description
      Previous value: -"True when more rows matched than were returned, so what you have is a page and not the whole set."New value: +"Rows held back; see trimmed."
    • removedOutput schema / properties / window_hours
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The period the totals cover, in hours."
      -}
    • removedOutput schema / properties / window_minutes
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "description": "The same period in minutes."
      -}
  4. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max rows returned. Capped at 25 keyless and 1000 on a paid plan; asking for more returns the cap, and the payload says so in `capped`. count and the *_usd totals always cover the whole window regardless."New value: +"Max rows returned. Capped at 25 on the free plans and 1000 on a paid plan; asking for more returns the cap, and the payload says so in `capped`. count and the *_usd totals always cover the whole window regardless."
  5. Changed1 schema field changed
    • addedInput schema / properties / since_ms
      Added value: +{
      +  "description": "Polling cursor: only rows newer than this Unix-ms timestamp, applied before the row cap. Pass back the next_since_ms from the previous answer so a timer never re-reads the same rows.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
  6. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max rows returned. Capped at 25 keyless and 1000 on a developer plan; asking for more returns the cap, and the payload says so in `capped`. count and the *_usd totals always cover the whole window regardless."New value: +"Max rows returned. Capped at 25 keyless and 1000 on a paid plan; asking for more returns the cap, and the payload says so in `capped`. count and the *_usd totals always cover the whole window regardless."
  7. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max rows returned. Capped at 50 keyless and 1000 on a developer plan; asking for more returns the cap, and the payload says so in `capped`. count and the *_usd totals always cover the whole window regardless."New value: +"Max rows returned. Capped at 25 keyless and 1000 on a developer plan; asking for more returns the cap, and the payload says so in `capped`. count and the *_usd totals always cover the whole window regardless."
  8. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "access_note": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "What this connection could not return and what lifts it. Always pass this on to the user: it is the only place that information appears."
      +    },
      +    "available": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "False when this lane could not answer: a producer is dark, the pair sits outside this plan, or the argument named something we do not carry. Absent or true means the numbers are a real reading, not a guess."
      +    },
      +    "capped": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "applied": {
      +              "description": "The value actually used.",
      +              "type": "number"
      +            },
      +            "argument": {
      +              "description": "Which argument was cut down, for example limit or hours.",
      +              "type": "string"
      +            },
      +            "by": {
      +              "description": "Why it was cut: keyless for the free ceiling, plan_max for a paid ceiling, tool_max for a ceiling no plan raises.",
      +              "type": "string"
      +            },
      +            "max": {
      +              "description": "The ceiling that applied.",
      +              "type": "number"
      +            },
      +            "requested": {
      +              "description": "The value the caller asked for.",
      +              "type": "number"
      +            }
      +          },
      +          "required": [
      +            "argument",
      +            "requested",
      +            "applied",
      +            "max",
      +            "by"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Present only when an argument was cut down to a ceiling. Absent means nothing was clamped, so a smaller number than you asked for is the data and not a limit."
      +    },
      +    "count": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "How many events fired in the whole window, not how many rows came back."
      +    },
      +    "history_included": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "True when the recorded series was merged in, so a restart has not erased earlier events."
      +    },
      +    "liquidations": {
      +      "anyOf": [
      +        {
      +          "items": {},
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The events themselves, newest first: price, size in base and quote, side (long_liquidated or short_liquidated), exchange and time. A sample of the window when truncated is true."
      +    },
      +    "long_liquidations": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "COUNT of longs force-closed. For dollars read long_usd."
      +    },
      +    "long_usd": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Dollars of longs force-closed across the window."
      +    },
      +    "note": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "One line saying what the numbers cover, or why there are none. Read it before reporting any zero as a market reading."
      +    },
      +    "pair": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The pair these events belong to."
      +    },
      +    "requested_hours": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The period asked for, so a page can be told apart from a period."
      +    },
      +    "rows_returned": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "How many event rows are actually in this reply."
      +    },
      +    "rows_span_minutes": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "How far back the returned rows themselves reach."
      +    },
      +    "short_liquidations": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "COUNT of shorts force-closed. For dollars read short_usd."
      +    },
      +    "short_usd": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Dollars of shorts force-closed across the window."
      +    },
      +    "sources": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {},
      +          "propertyNames": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "How the events split between the streamed exchanges and Hyperliquid, and whether the Hyperliquid part is a sample."
      +    },
      +    "total_in_window": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "How many events the window holds in total."
      +    },
      +    "total_volume_usd": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Dollars forced out across the whole window."
      +    },
      +    "truncated": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "True when more rows matched than were returned, so what you have is a page and not the whole set."
      +    },
      +    "window_hours": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The period the totals cover, in hours."
      +    },
      +    "window_minutes": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The same period in minutes."
      +    }
      +  },
      +  "type": "object"
      +}
  9. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety profile is covered. The description adds genuinely useful semantic context beyond that: 'projected' is modelled levels and not trades, lending liquidations are never folded into perp totals, and 'a long is force-closed by selling' fixes the sign convention an agent would otherwise misread.

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 core purpose in two words, then a compact scope list with no filler. The telegraphic 'scope: x (…), y (…)' style is efficient but slightly cryptic in places, e.g. 'heat (where closes hit by price band)'.

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 9-parameter, none-required, read-only tool with a full input schema and an existing output schema, the definition covers the parts the schema does not: lane semantics, default precedence, and the perp-vs-lending accounting caveat. An agent can pick a scope and call it correctly without further clarification.

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 100%, so 3 is the floor, but the description earns more: the schema's own scope field says only 'Which lane; see the description', making the description the sole source of meaning for the five enum values and the default-precedence rules. The remaining parameters (hours, limit, cursor, detail, question) are left entirely 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?

The description names a specific data domain (forced closes) and then enumerates five distinct lanes with what each returns (long/short split, both wallets, modelled levels vs. actual trades, price-band heat). That is far more than a restatement of the title, though it never explicitly contrasts itself with siblings like market_screener or signals.

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 gives concrete selection logic: 'coin' is the default when a coin is named, 'market' the default otherwise, and 'lending' is on-chain only and 'never added to perp'. That resolves the main ambiguity about which lane to pick. It stops short of naming an alternative tool or stating when not to use this one.

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