Skip to main content
Glama

Describe Candle Windows

describe_candle_windows
Read-onlyIdempotent

Describe the form of a set of candle windows and draw it for a terminal. Pass timestamps (bar open time in Unix ms; set windowBars to 1 for a single print) or one close rule: forwardCloseMaxPct -10 with windowBars 12 means the close 12 bars later is at least 10% lower. Quote brief. It counts down bars, where the low sat, volume versus the bars before the window, and what the next horizonBars did, with ordinary windows of the same length beside them. terminal and brief also contain a monospace chart of the median candles and volume. Show that chart in a code block with every line, including the header, the legend line under it and the footer, and do not reflow it. Quote NO_TRADE verbatim. The caller supplies the times. A move that was retraced before the named close is not included. NO_TRADE. Not a side.

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

Input Schema

NameRequiredDescriptionDefault
symbolNoBTCUSDT, ETHUSDT, SOLUSDT or ZECUSDT. Default BTCUSDT.BTCUSDT
intervalNo5m, 15m, 1h, 4h or 1d. Default 1h.1h
timestampsNoBar open times in Unix milliseconds. The caller supplies these. Set windowBars to 1 for the print bar itself.
windowBarsNoBars inside each window. Use 1 for a single print bar. Default 12.
horizonBarsNoBars after the window whose path is described. Default 12.
lookbackBarsNoBars before each window used as the volume and range baseline. Default 96.
forwardCloseMaxPctNoKeep a window when the close this many bars later is at or below this percent. A 10% drop over 12 bars is -10.
forwardCloseMinPctNoKeep a window when the close this many bars later is at or above this percent. A 10% rise over 12 bars is 10.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / symbol / description
      Previous value: -"BTCUSDT, ETHUSDT or SOLUSDT. Default BTCUSDT."New value: +"BTCUSDT, ETHUSDT, SOLUSDT or ZECUSDT. Default BTCUSDT."
    • changedInput schema / properties / symbol / enum
      Previous value: -[
      -  "BTCUSDT",
      -  "ETHUSDT",
      -  "SOLUSDT"
      -]New value: +[
      +  "BTCUSDT",
      +  "ETHUSDT",
      +  "SOLUSDT",
      +  "ZECUSDT"
      +]
  2. Added

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses what is computed (bar countdown, where the low sat, volume versus prior bars, next horizonBars, peer windows of the same length) and an important inclusion rule: 'A move that was retraced before the named close is not included.' It also specifies that output contains a monospace chart to be reproduced verbatim.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Content is dense and front-loaded, but it reads as run-on clauses mixing purpose, parameter coaching, and output-formatting rules. 'The caller supplies the times' duplicates the schema, and the ordering of the chart-quoting rules is scattered rather than grouped.

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?

With no output schema, the description steps in to explain that terminal and brief contain a median-candle chart and to mandate code-block rendering with header, legend, and footer intact, plus the NO_TRADE verbatim rule. That covers what an agent needs to call and present results; only the return payload shape in non-chart fields is left vague.

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 all eight parameters including windowBars=1 and forwardCloseMaxPct=-10. The description restates the same semantics with an example rather than adding new meaning, so baseline 3 applies.

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 opening states a specific verb and resource: 'Describe the form of a set of candle windows and draw it for a terminal.' That is concrete and distinguishes it from hypotheses/track-record siblings by its focus on window shape plus a rendered chart, though it never names an alternative tool directly.

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

Usage Guidelines3/5

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

It gives real input guidance ('Pass timestamps ... or one close rule') and a worked rule example, but never says when to prefer this over explain_candle_match or inspect_candle_analogue. Selection guidance is implied by the input modes rather than stated.

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