Skip to main content
Glama

trading-signals-mcp

ATR Stop + Position Size

atr_stop
Read-only

Wilder ATR, ATR-multiple stop price and position size from account risk %. Works with no key (small daily allowance) or with a Trading Signals Toolkit API key (free 100 calls/month, Starter, Pro). Pay-per-call equivalent: $0.005 USDC over x402. 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": "atr_stop"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
sideNo
entryNoEntry price (default last close)
periodNoATR period (default 14)
riskPctNo% of account risked (default 1)
multiplierNoStop = ATR × multiplier (default 2)
pointValueNo$ per point per contract (ES = 50)
accountSizeNoAccount equity

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds genuine operational context absent from annotations: keyless access with a small daily allowance, a keyed 100 calls/month quota, and $0.005 USDC per call over x402. It says nothing, however, about output precision, behavior with fewer than the required 2 bars, or whether sizing is skipped when accountSize/pointValue are omitted.

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 computational purpose is front-loaded in the first clause, and the whole definition is a handful of short sentences. The pricing/tier sentence is long relative to its decision value but is at least placed after the core purpose rather than burying it.

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 8 parameters, one required, and no output schema, the description does a reasonable job enumerating the three return values. It leaves open the relationship between entry, side, and the stop calculation, and whether position size is omitted when accountSize or pointValue is absent, which matters for correct invocation.

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 88%, so the schema already explains bars format, defaults, and ranges. The description adds only marginal semantics beyond that, implying Wilder smoothing and that stop distance scales with an ATR multiplier, without explaining how the optional sizing parameters combine or what happens when they are partially supplied. Baseline 3 applies.

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 the concrete outputs: Wilder ATR, an ATR-multiple stop price, and position size derived from account risk %. That is a specific computation, not a restatement of the title. It never distinguishes itself from sibling tools like pre_trade_check or vwap_bands, so it stops short of a 5.

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 when-to-use guidance, no prerequisites, and no mention of alternatives such as pre_trade_check for pre-trade validation. The only contextual sentence is an access/pricing note and an 'informational only' disclaimer, neither of which tells an agent when to select this tool.

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.