Skip to main content
Glama

Scan Market Memory for Event Evidence

scan_market_memory
Read-onlyIdempotent

Start here when the question is open: which fixed catalogue conditions have historical evidence, and does any of it hold right now? Tests a fixed catalogue of thirteen conditions (falls and rises of 3/5/8% inside 24 bars, a 5% close move over 12 bars, 3x and 5x volume, a range squeeze, new 180-bar highs and lows) and every two-step sequence of them on the whole stored history, corrects all results together for the number of things tried, and returns only what survives: each finding with its number of separate occasions, its effect against the neighbouring period, whether it also held in the most recent 30% of history, and whether its condition holds at the last closed bar. Smallest call: {symbol: "BTCUSDT"}. Results are cached until the next bar closes. Most findings are about the size of the move that follows, a few about where price closed. The shift test rejects about 8% of directionless synthetic GARCH at nominal 5%; borderline q is weak evidence. Allow 100 seconds for cold scans; as_of_ms pins older history. Historical description only: NO_TRADE, no direction call.

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

Input Schema

NameRequiredDescriptionDefault
limitNoPage size after the active findings. Follow next_page to retrieve every finding.
chainsNoAlso test two-step sequences 'first, then second within 24 bars'. Default true, except ZECUSDT 15m defaults to single events (false) to fit the interactive budget on its larger archive. Set explicitly to override.
offsetNoOffset into historical findings; use next_page from the previous response.
symbolNoStored symbol, for example BTCUSDT, ETHUSDT, SOLUSDT or ZECUSDT. BTC, ETH, SOL and ZEC are accepted.BTCUSDT
as_of_msNoPin the closed-candle snapshot; omit or use 0 for server time. Required when researching older stored history.
horizonsNoBars observed after the condition. Default [4, 24, 72].
intervalNoBar size. The catalogue thresholds are in bars, so 'fell 5% in 24' is a day on 1h and four days on 4h.1h
active_onlyNoReturn only findings whose condition holds at the last closed bar.
direction_onlyNoReturn only findings about where price closed, leaving out those about the size of the move alone.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / chains / description
      Previous value: -"Also test two-step sequences 'first, then second within 24 bars'. Default true."New value: +"Also test two-step sequences 'first, then second within 24 bars'. Default true, except ZECUSDT 15m defaults to single events (false) to fit the interactive budget on its larger archive. Set explicitly to override."
    • changedInput schema / properties / symbol / description
      Previous value: -"Stored symbol, for example BTCUSDT, ETHUSDT or SOLUSDT. BTC, ETH and SOL are accepted."New value: +"Stored symbol, for example BTCUSDT, ETHUSDT, SOLUSDT or ZECUSDT. BTC, ETH, SOL and ZEC are accepted."
  2. Changed3 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"Most findings to list after the active ones."New value: +"Page size after the active findings. Follow next_page to retrieve every finding."
    • changedInput schema / properties / limit / maximum
      Previous value: -60New value: +200
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Offset into historical findings; use next_page from the previous response.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already establish read-only, idempotent and non-destructive behavior, and the description goes well beyond them: caching until the next bar closes, ~100 seconds for cold scans, multiple-testing correction across all results, a stated ~8% false-positive rate on directionless synthetic GARCH, and the warning that borderline q is weak evidence. It also discloses defaults the agent would otherwise have to probe, such as chains defaulting to false for ZECUSDT 15m.

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?

It is a single dense paragraph, but the most decision-relevant guidance ('Start here when the question is open', smallest call, timing) is front-loaded and almost every sentence carries information. The statistical caveats and caching notes are justified for a tool of this complexity.

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?

With no output schema, the description still explains the return shape: each finding's occasion count, its effect against the neighbouring period, whether it held in the most recent 30% of history, and whether it holds at the last closed bar. Combined with the timing, caching and pagination notes, nothing essential for 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 coverage is 100%, so the schema already documents every parameter including as_of_ms, horizons and chains. The description reinforces a few of these ('as_of_ms pins older history', 'Smallest call: {symbol: "BTCUSDT"}') but adds little semantic detail the schema does not already carry, so the baseline of 3 is right.

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 uses a specific verb and resource ('start here when the question is open', 'tests a fixed catalogue of thirteen conditions ... on the whole stored history') and enumerates the catalogue contents, the correction for multiple tests, and how the results are narrowed. An agent can distinguish this broad survey tool from narrower hypothesis-testing siblings 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 Guidelines4/5

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

It states clearly when to reach for it ('Start here when the question is open: which fixed catalogue conditions have historical evidence, and does any of it hold right now?') and bounds the scope ('Historical description only: NO_TRADE, no direction call'). It offers no explicit alternatives or exclusions, so it stays short of a full when/when-not map.

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