Skip to main content
Glama

classify_market_segment

Classify one stretch of market: a date range, or a catalog window by file name. Explicit date ranges require daily (1d) candles; catalog windows retain their stored interval. Returns its direction band, volatility band, trend character and the three features behind them, using the same labels the sweep catalog carries. Use it for a period the person names, or to see what a window a sweep selected contains. For an asset's current conditions use get_market_regime instead. Volatility reads unscored when no fitted band covers the stretch's length; the bands come back with it. For an exact crypto market, supply quote_token and market_data_venue together. A date range covers crypto and the stocks, ETFs, commodities and bonds in Oracle's regime catalog: SPY, QQQ, DIA, IWM, AAPL, AMD, AMZN, COST, GOOGL, HD, JNJ, JPM, META, MSFT, NFLX, NVDA, PG, TSLA, UNH, WMT, XOM, GLD, SLV, USO, GOLD (gold futures), CRUDE (crude oil futures) and TLT. Without explicit source arguments, those tickers are read from their exchange-session daily series, even where a crypto token shares one (DIA and META are the ETF and the stock here); any other ticker is read as crypto, so a stock not named here cannot be read. Explicit market or provider arguments select the crypto history path. venue says which feed was read. A listed ticker needs at least 15 sessions with a close, about three weeks; anything shorter is refused as too little history.

[Access: pay 0.02 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]

Input Schema

NameRequiredDescriptionDefault
assetNoAsset symbol, e.g. BTC or ETH.
end_dateNoISO end of the window.
providerNoOptional upstream override; omitted uses the existing server default.
start_dateNoISO start of the window, e.g. 2026-01-01.
candle_sizeNoDuration of one candle, e.g. 1h or 1d.1d
quote_tokenNoQuote currency of the requested market.
window_fileNoA catalog window's file name, classified as it stands. Supply this or the asset with both dates, not both.
market_data_venueNoExact venue of the requested market.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does: it discloses the 'unscored' volatility fallback with bands returned alongside, refuses windows shorter than 15 sessions with a close, explains ticker resolution defaults (listed tickers read from exchange-session daily series, everything else as crypto), notes that venue reports which feed was read, and states the x402/API-key payment paths.

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 the sibling routing before the ticker list and payment note. The enumerated ticker universe and the doubled venue-feed explanations run long, but nearly every sentence carries operative constraints rather than filler.

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 an 8-parameter, no-output-schema, no-annotation tool this is thorough: it describes return shape, degraded-return behavior, minimum history, ticker coverage and exclusions, auth/payment, and the interaction between the two input modes. An agent could call it correctly from this text alone.

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 baseline is 3, but the description adds real meaning the schema lacks: quote_token and market_data_venue must be supplied together for an exact crypto market, candle_size is constrained to 1d on explicit ranges, and the asset/catalog-window mutual exclusivity plus ticker-universe fallback rules go beyond the field text.

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 and resource ('Classify one stretch of market: a date range, or a catalog window by file name') and immediately names the deliverable — direction band, volatility band, trend character plus the three features. It also distinguishes itself from get_market_regime in the same breath, 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 explicit when-to-use ('a period the person names', 'to see what a window a sweep selected contains') and an explicit when-not with the alternative ('For an asset's current conditions use get_market_regime instead'). It also spells out the input-mode split — explicit date ranges require 1d candles, catalog windows keep their stored interval.

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.