Skip to main content
Glama
Trading Signals MCP

Trading Signals MCP

Opening-Range-Breakout Backtest ($0.02)

backtest_opening_range_breakout
Read-only

Backtest an opening-range breakout strategy on intraday OHLCV bars to calculate trades, win rate, average and total R, profit factor, max drawdown, exits, long/short split, and recent trades.

Instructions

Price: $0.02 USDC per call on Base, paid automatically via x402 from X402_PRIVATE_KEY. Opening-range-breakout backtest on your intraday bars: trades, win rate, avg R, total R, profit factor, max drawdown, exits, long/short split and recent trades. Failed calls (4xx/5xx) are not charged. Informational only, not investment advice.

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": {
      "bars": "<bars>"
    },
    "name": "backtest_opening_range_breakout"
  }
}

Input Schema

NameRequiredDescriptionDefault
rrNoTarget in R multiples (default 2)
tzNoIANA timezone for sessions (default America/New_York)
barsYesOHLCV bars, oldest first: {t (ISO-8601 or epoch s/ms), o, h, l, c, v} or [t,o,h,l,c,v]. Max 5000.
stopNo
minutesNoOpening range minutes (default 15)
directionNo
sessionEndNo
costPerTradeNoCost in points per trade
sessionStartNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, non-destructive, open-world), and the description adds genuinely new context: per-call x402 pricing on Base, the X402_PRIVATE_KEY requirement, and that 4xx/5xx calls are not charged. It does not explain why idempotentHint is false or what a successful response looks like structurally, so the added value is real but partial.

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?

Three compact sentences with no filler; the payload description and metric list are front-loaded. The price/payment sentence leads the definition, which is slightly awkward for selection purposes but is only one line.

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?

For a 9-parameter analytics tool with no output schema, the definition covers cost, failure billing, and the metric set, but leaves session handling, stop mode, and the bars format unsupported beyond the schema's own notes. An agent can call it correctly only by reading the JSON schema closely.

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?

Nine parameters with only 56% schema description coverage, and the description adds no meaning for any of them — rr, stop, direction, minutes, costPerTrade, tz, sessionStart and sessionEnd are left entirely to the schema. The mention of long/short split hints at the direction parameter but never explains it or the session-window semantics. With the schema naming the key concepts (opening range minutes, target in R, cost per trade) it stays barely adequate rather than failing outright.

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?

"Opening-range-breakout backtest on your intraday bars" is a specific verb+resource, and the description enumerates the outputs (trades, win rate, avg R, profit factor, max drawdown, exits, long/short split). It is distinguishable from the sibling opening_range, which reads as a level/indicator tool, but the description never names or contrasts that sibling explicitly.

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

Usage Guidelines2/5

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

There is no guidance on when to choose this over opening_range, ai_trade_brief, or pre_trade_check, and no prerequisites are stated beyond the implicit need to supply intraday bars. The only usage-adjacent content is billing behavior ($0.02 per call, failures not charged), which is not selection guidance.

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