Skip to main content
Glama

Check a Candle Order

check_candle_order
Read-onlyIdempotent

Before the next order. Required: the trader's levelPrice, invalidationPrice and targetPrice (aliases level, stop, target). Optional feePctPerSide is a percent per side; default 0.1, 0.2 round trip. The response echoes the applied cost assumption; 0 gives gross outcomes. Do not invent a missing price from P10, P90 or any band. One search, then which of those prices printed first on similar candles: the closest touched day, counts for target first, invalidation first, both in one bar and neither, and a chart permalink. The median of priced round trips appears only at 10 or more touches, after a 0.1 percent fee per side. Under 10 touches the sample is too small. NO_TRADE. Not a win rate. Not a side. Direction after similar windows is a coin flip.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "levelPrice": "<levelPrice>",
      "invalidationPrice": "<invalidationPrice>",
      "targetPrice": "<targetPrice>"
    },
    "name": "check_candle_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
fNoForward horizon in bars from the anchor: 5, 10, 30 or 50. Default 10
qNoPattern length: 3, 5, 8 or 12. Default 5
symbolNoBTCUSDT, ETHUSDT, SOLUSDT or ZECUSDT. Default BTCUSDTBTCUSDT
riskUsdNoOptional risk budget in USD to compute units and notional USD between levelPrice and invalidationPrice.
anchorTsNoOptional historical snapshot time in Unix milliseconds
intervalNoChart timeframe. Default 1h. Alias: timeframe1h
clusterIdNoOptional Memory Constellation cluster filter: 0 = Bullish Expansion, 1 = Range / Chop, 2 = Pullback / Fade. Omit to evaluate across all 20 analogues.
levelPriceYesThe trader's entry level. Required. Alias: level. Do not take this from a band.
targetPriceYesThe trader's target. Required. Aliases: target, targetLevel. Do not take this from a band.
feePctPerSideNoExplicit fee percent per side, charged at entry and exit. Default 0.1 (0.2 percent round trip); set 0 for gross outcomes. Not your exchange's verified fee tier.
invalidationPriceYesThe trader's invalidation. Required. Aliases: stop, stopPrice, invalidation. Do not take this from a band.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / clusterId
      Added value: +{
      +  "description": "Optional Memory Constellation cluster filter: 0 = Bullish Expansion, 1 = Range / Chop, 2 = Pullback / Fade. Omit to evaluate across all 20 analogues.",
      +  "enum": [
      +    0,
      +    1,
      +    2
      +  ],
      +  "type": "number"
      +}
    • addedInput schema / properties / riskUsd
      Added value: +{
      +  "description": "Optional risk budget in USD to compute units and notional USD between levelPrice and invalidationPrice.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 1000000,
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / feePctPerSide
      Added value: +{
      +  "default": 0.1,
      +  "description": "Explicit fee percent per side, charged at entry and exit. Default 0.1 (0.2 percent round trip); set 0 for gross outcomes. Not your exchange's verified fee tier.",
      +  "maximum": 5,
      +  "minimum": 0,
      +  "type": "number"
      +}
  3. 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"
      +]
  4. Added

TDQS

B3.3/5.0
Behavior4/5

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

Annotations only declare readOnly/idempotent/non-destructive; the description goes well beyond them by disclosing what the response contains (first-touch counts per outcome, closest touched day, chart permalink), that the applied fee assumption is echoed back, and the 10-touch minimum before a median round-trip figure is shown. It also warns that direction after similar windows is a coin flip, which prevents misreading. The statistical caveats are genuinely useful, though the phrasing is fragmented.

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?

Nearly every clause carries information, but the delivery is a stream of fragments rather than front-loaded prose: the lead sentence is cryptic, and the description alternates between inputs, cost assumptions, response contents and caveats without a clear order. Readable but harder to parse than it needs to be.

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 carries the burden of describing returns, and it does so reasonably: outcome counts, closest touched day, permalink, and the conditional median. The main gap is what makes a candle "similar" (analogue selection, and how f/q/clusterId shape the match), which the agent must infer, but for an 11-param read-only tool the coverage is close to sufficient.

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 all 11 parameters are already documented, giving a baseline of 3. The description adds meaning for the three required prices via aliases and the explicit rule not to source them from P10/P90 bands, and clarifies feePctPerSide as per-side percent with 0 producing gross outcomes, but says nothing about f, q, symbol, riskUsd, anchorTs, interval or clusterId.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opener "Before the next order" is a situational cue rather than a statement of what the tool does; the actual purpose only emerges mid-paragraph from "One search, then which of those prices printed first on similar candles." Combined with the title the agent can infer a pre-trade historical outcome check, but the verb+resource are never stated cleanly up front and no sibling is named for contrast.

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?

"Before the next order" implies a pre-trade usage context, and "Do not invent a missing price from P10, P90 or any band" plus "NO_TRADE. Not a win rate. Not a side" give real interpretive constraints. However there is no explicit when-to-use versus alternatives (e.g. evaluate_candle_hypothesis), so the routing guidance stays implicit.

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