Skip to main content
Glama

Explain Candle Match

explain_candle_match
Read-onlyIdempotent

Why this twin ranked under the reported method: distance, anatomy-token observations, and outcome vs neighbour p10/p50/p90. Shape tokens alone cannot explain a context/volume score. Similarity is not P(direction).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fNoForward horizon in bars. Only the chart presets 5, 10, 30, and 50 are supported
qNoCandles in the matched pattern. Only the chart presets 3, 5, 8, and 12 are supported
rankNo1-based rank in the selected retrieval method's neighbour list (1 = closest).
limitNoClosest analogues to list (1-20). Bands and direction always use the chart's 20 neighbours
symbolNoSupported chart symbol: BTCUSDT, ETHUSDT, or SOLUSDTBTCUSDT
anchorTsNoOptional historical replay anchor in Unix milliseconds. Omit for the latest chart candle
intervalNoSupported chart timeframe: 5m, 15m, 1h, 4h, or 1d5m
token_idNoOptional Chart access token (64-hex, same as X-Aipp-Chart / the token on /profile). After the daily free MCP quota, paid tools require the Chart $29/mo Stripe subscription. Legacy Manus token_id still works only when MCP_BILLING=manus.
chart_tokenNoOptional Chart access token. Prefer the X-Aipp-Chart header in the MCP client config so every tool call is covered.
analogueAnchorTsNoTwin episode to open, Unix ms. If omitted, use rank.
includeAnalogueCandlesNoInclude OHLC arrays for every analogue and its continuation. False keeps the response agent-sized

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Number of closest candle analogues to return (1-20)"New value: +"Closest analogues to list (1-20). Bands and direction always use the chart's 20 neighbours"
  2. Changed1 schema field changed
    • changedInput schema / properties / rank / description
      Previous value: -"1-based rank in the overlay-v1 neighbour list (1 = closest)."New value: +"1-based rank in the selected retrieval method's neighbour list (1 = closest)."
  3. Changed2 schema fields changed
    • addedInput schema / properties / chart_token
      Added value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "anyOf": [
      +    {
      +      "not": {}
      +    },
      +    {
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Optional Chart access token. Prefer the X-Aipp-Chart header in the MCP client config so every tool call is covered."
      +}
    • changedInput schema / properties / token_id / description
      Previous value: -"Optional Manus access token. Paid tools use tokenized service access, not a monthly subscription: when token_id is omitted the server returns payment_required with a Solana Pay invoice, and after payment you retry with the same token while the server uses Manus token/resolve to recover pending access."New value: +"Optional Chart access token (64-hex, same as X-Aipp-Chart / the token on /profile). After the daily free MCP quota, paid tools require the Chart $29/mo Stripe subscription. Legacy Manus token_id still works only when MCP_BILLING=manus."
  4. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive behavior, so the description only needs to add value beyond that. It adds useful interpretive context—shape tokens alone cannot explain a context/volume score, and similarity is not a probability—while also sketching what the explanation contains. It stops short of detailing response format or client-side behavior, but the added caveats are meaningful.

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?

The description is three short sentences with no filler, and the main deliverable is front-loaded in the first phrase. It is compact but jargon-heavy—p10/p50/p90, anatomy-token observations, and context/volume score may be opaque to a new agent—which slightly reduces clarity without bloating the text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 partially covers return content by naming distance, anatomy-token observations, and outcome vs neighbours, while annotations cover the safety profile. However, it does not describe response structure, edge cases, or how the many optional parameters affect behavior beyond what the schema states, so an agent would need to infer some behavior from the schema and sibling tools.

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%, with enums, defaults, ranges, and format constraints documented for all 11 optional parameters, so the description does not need to repeat them. Phrases like 'ranked,' 'reported method,' and 'neighbour p10/p50/p90' add some conceptual context to rank and limit parameters, but no parameter-specific semantics beyond what the schema already provides. Baseline 3 is appropriate.

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 description names a specific deliverable—an explanation of why a candle 'twin' ranked under the reported retrieval method—and enumerates the evidence types considered: distance, anatomy-token observations, and outcome vs neighbour p10/p50/p90. It avoids tautology and makes the tool's scope clear, though it does not explicitly distinguish it from siblings like inspect_candle_analogue or get_candle_evidence_board.

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?

The description implies when the tool is relevant: explaining a match ranking, not predicting direction. It also provides a negative guard with 'Similarity is not P(direction).' However, it never names an alternative tool or offers explicit when-to-use/use-this-instead guidance, leaving sibling selection largely to inference.

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