Skip to main content
Glama
Bellchain

Bellchain

Official

Test a chain

replay_chain
Read-onlyIdempotent

Replays a saved alert chain over past days to show when and how often it would have fired, cooldown limits, recent alerts, and simulated take-profit/stop-loss results without changing anything.

Instructions

Replays a saved chain over the past days, like "Run replay" in the editor: how often it would have fired, when first and last, held back by cooldown, the latest alerts with message and price, and how the signals would have done with a take-profit and a stop-loss. Scanners are counted per coin. Changes nothing.

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": {
      "chainId": "<chainId>"
    },
    "name": "replay_chain"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoHow many days the replay looks back; default 90, at most replayDays from get_account.
tradeNoTake-profit and stop-loss for scoring the signals as trades: entry at the close of the alert candle, a candle reaching both counts as SL, every signal on its own. Default: the chain’s or template’s values (meta.trade), otherwise TP and SL 2 : 1 fitting the timeframe, such as 3 % and 1.5 % on hourly candles.
chainIdYesID of the chain, from list_chains.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world, non-destructive, and the description corroborates rather than contradicts them with "Changes nothing." Beyond that it discloses real behavioral detail annotations cannot carry: what the result reports (fire counts, first/last fire, cooldown suppression, latest alerts with message and price), that scanners are counted per coin, and that signals are scored as simulated trades with TP/SL. It stops short of noting cost, runtime, or result size for large lookbacks.

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?

A single dense sentence that front-loads the action and the UI analogue, then enumerates exactly what the report contains. Nothing is padding, though the run-on structure makes it harder to scan than a short list of what is returned.

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 and a nested trade object, the description earns its keep by explaining the shape of the returned metrics (counts, timing, cooldown, alerts, TP/SL outcome). A nested-object, simulation-heavy tool could still benefit from noting the lookback limit or that results scale with days, but an agent has enough to call it correctly.

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 description coverage is 100%, and the schema itself carries the trade-simulation semantics (entry at alert candle close, both-levels-touched counts as SL, default from meta.trade), so the description adds little parameter meaning on its own. The one useful addition in the description is the 90-day default framing and the pointer to replayDays from get_account, though the schema already states that cap.

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 gives a specific verb and resource ("Replays a saved chain") plus scope ("over the past days") and anchors it to a familiar UI action ("like 'Run replay' in the editor"). It does not distinguish itself from the similarly named siblings replay_definition, replay_price_alert, or replay_template, so an agent must infer the difference from their names alone.

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?

Usage is only implied: an agent can infer this is a what-if/backtest preview for an existing chain rather than a live activation, reinforced by "Changes nothing." There is no explicit when-to-use statement, no mention of when to prefer it over replay_definition or replay_template, and no stated prerequisite such as needing a chainId from list_chains or a lookback cap from get_account.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.