Skip to main content
Glama
Trading Signals MCP

Trading Signals MCP

Opening Range ($0.005)

opening_range
Read-only

Calculate the opening range high, low, and size from OHLCV bars, then identify breakout state and 1x/2x extension targets for the latest trading session.

Instructions

Price: $0.005 USDC per call on Base, paid automatically via x402 from X402_PRIVATE_KEY. Opening range (first N minutes) high/low/size for the latest session in your bars, breakout state, first breakout and 1x/2x extension targets. 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": "opening_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
minutesNoOpening range minutes (default 15)
sessionEndNoHH:MM in tz (default 16:00)
sessionStartNoHH:MM in tz (default 09:30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered; the description adds genuinely structured-field-absent context: a $0.005 USDC per-call price, automatic x402 payment from X402_PRIVATE_KEY, and the billing rule that 4xx/5xx responses are not charged. It still says nothing about rate limits, latency, or what the returned payload looks like, which matters because no output schema exists.

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?

Three sentences, each carrying some information, but the ordering is poor: pricing and payment plumbing lead, while the actual function of the tool arrives second, so the most decision-relevant content is not front-loaded. The closing 'Informational only, not investment advice' is boilerplate that consumes space without aiding tool selection.

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?

For a pure read-only computation with five well-described parameters and no output schema, the definition covers the essentials: inputs are the caller's own bars, the session window is configurable, and the return contents are enumerated (range high/low/size, breakout state, first breakout, 1x/2x targets). What is missing is the exact response shape and any guidance on bar adequacy or session-boundary behavior.

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%, so defaults for tz, minutes, sessionStart and sessionEnd are already documented in the schema, establishing a baseline of 3. The description adds only the gloss 'first N minutes' tying the range window to the minutes parameter and 'in your bars' tying computation to the bars input; it contributes no new parameter-level detail beyond that.

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 concrete computation and its outputs: opening-range high/low/size for the first N minutes of the latest session in the supplied bars, plus breakout state, first breakout and 1x/2x extension targets. That is specific enough to distinguish it from a generic indicator call, but it never contrasts itself with the obvious sibling backtest_opening_range_breakout, so the agent must infer the 'live/latest session vs. historical backtest' split itself.

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 explicit when-to-use or when-not-to-use statement and no named alternative. The phrase 'for the latest session in your bars' hints that the caller must already hold OHLCV data, but nothing tells the agent why to pick this over backtest_opening_range_breakout or session_brief, and no prerequisites (bar ordering, minimum bar count, timezone expectations) are stated in prose.

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