Skip to main content
Glama

scan_market_regimes

Read-only

Screen a crypto perpetual futures venue by market regime — trending up/down, ranging or volatile — and get each matching coin with confidence, ADX, trend strength, volatility ratio and regime age.

Instructions

Screens a whole crypto perpetual futures venue by market regime — TRENDING_UP TRENDING_DOWN RANGING VOLATILE — and returns each matching coin with confidence, trend strength, ADX, volatility ratio and how long the regime has held. Rows are the market regime classifier output for the last closed bar, sampled on Binance, Bybit, OKX and Bitget; another venue, or a timeframe a venue cannot serve, is refused with the alternatives. Billing: one call per returned row; non-matching coins are free. For a live single-coin read with cross-venue funding, call get_market_regime. Read-only.

Input Schema

NameRequiredDescriptionDefault
topNNoLens universe size, 1 to 1000 (default 100 with rankBy). Without rankBy it selects the top coins by open interest.
coinsNoRestrict to these symbols, e.g. ["BTC","ETH"]. Symbols not on the venue are listed in not_found and not billed.
limitNoPage size, 1 to 100 (default 20).
offsetNoRows to skip, for paging within one snapshot. A changed as_of means the snapshot advanced between pages.
rankByNoOptional universe lens — the same lenses and aliases as scan_trade_calls rankBy; rows then echo the lens metric. Omit to screen every coin.
regimeNoKeep only these regimes (any of): TRENDING_UP, TRENDING_DOWN, RANGING, VOLATILE.
sortByNoconfidence (default), regime_age (most recent regime change first, unknown starts last), or rank (lens order; needs rankBy).confidence
oiBasisNoOI-delta basis for rankBy=oi_change: notional (default, USD) or contracts (base-coin, price-independent). Ignored by other lenses.notional
exchangeNoVenue to screen (default Binance). A venue outside the sampled set is refused with the sampled list.BINANCE
timeframeNoRegime timeframe: 1h, 4h or 1d (default 4h).4h
assetClassNoall (default), crypto, tradfi (every non-crypto class), equity, commodity, index, fx or premarket.all
minConfidenceNoOptional confidence floor, 0 to 100.
oiChangeWindowNoOI-delta window for rankBy=oi_change: 1h, 4h, or 24h (default 24h). Ignored by other lenses.24h
minLiquidityUsdNoOptional USD liquidity floor applied to the scan universe: notional open interest, or 24h volume on venues that expose no bulk OI. Omitted means no floor.
maxRegimeAgeBarsNoKeep only coins whose regime began within this many bars (1 = changed on the last closed bar). Coins whose regime start is not yet known are excluded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.32.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so the safety profile is covered. The description nonetheless adds real behavioral context beyond them: the billing model (one call per returned row, non-matching coins free), the refusal-with-alternatives behavior, and the snapshot/closed-bar freshness semantics. However, it asserts the venue is 'sampled on Binance, Bybit, OKX and Bitget' while the exchange enum exposes 15 venues, leaving the actual sampled set ambiguous.

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 purpose and regime vocabulary, then transitions to data source, billing, and the sibling alternative in a logical order. It is dense and slightly long for a single paragraph, but every sentence carries information an agent needs (regimes, fields, billing, alternative).

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 15-parameter, zero-required screening tool with no output schema, the description compensates by naming the return columns (confidence, trend strength, ADX, volatility ratio, regime age), the billing consequence, and the refusal path. Nothing essential to correct invocation is missing.

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 description coverage is 100% across all 15 parameters, so the schema already carries the semantics and a baseline of 3 applies. The description restates the regime labels and the venue/timeframe constraint but adds no syntax, default, or interaction detail beyond what the schema documents.

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?

States a specific verb (screens) and resource (crypto perpetual futures venue by market regime), enumerates the four regime labels it filters on, and lists the returned fields. It also explicitly distinguishes itself from the sibling get_market_regime ('live single-coin read'), so an agent can route without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit alternative and the condition that selects it: use get_market_regime 'for a live single-coin read with cross-venue funding.' It also states when the tool will refuse (unsupported venue or timeframe) and that the alternatives are returned, so failure behavior is anticipated rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.