Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_ranges

Identifies where a symbol’s price sits within daily or weekly support-resistance ranges, including live position and breakout/retest state; omit the symbol to list all symbols currently in a range.

Instructions

Range / support-resistance CONTEXT derived from cycle pivots — answers "where in a range are we?". Pass a symbol for that symbol's current daily + weekly ranges, or OMIT it to list every symbol currently in a range (optionally filtered by timeframe / state). Each range carries: bounds (floor/ceiling/touches/since); a live block — livePosition (0 = floor, 1 = ceiling) and liveState (near_floor | mid_range | near_ceiling | above | below), recomputed from the latest price = WHERE PRICE IS NOW; and a snapshot block — the weekly lifecycle narrative (state broke_out_up / broke_down / retesting_* + brokeDaysAgo + ageDays), which can be up to a week old. Use it for the classic reads: "at the BOTTOM of a range" (near_floor — significant alongside a daily cycle low), "at the TOP of the range — think twice about entering here", "broke out of the range", "retesting an edge". IMPORTANT: "not in a range" is a first-class, common answer — a symbol with no clear current range simply is not returned in the list, or gives inRange:false. Prefer live for current location and snapshot for the lifecycle narrative. NOTE: this is context, not a call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dwlf_get_ranges"
  }
}

Input Schema

NameRequiredDescriptionDefault
stateNoList mode only (no symbol): filter by LIVE position state. NB this is the live location, not the stored lifecycle state (broke_out_up etc.).
symbolNoA symbol to get that symbol's current ranges (daily + weekly). Accepts BTC, BTC/USD, BTC-USD, or stock tickers like AAPL. Omit to LIST every symbol currently in a range.
timeframeNoList mode only (no symbol): restrict to one timeframe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the return shape (bounds, live block, snapshot block), the freshness asymmetry (live is recomputed from latest price; snapshot can be up to a week old), and the negative-result behavior (symbol simply absent from the list, or inRange:false). Read-only/side-effect-free status and any auth or rate-limit constraints are only implied, not stated.

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?

Front-loaded with the purpose, then mode, then return shape, then interpretation — a sensible reading order for an agent. It is long, and a few clauses (the second restatement of live-vs-snapshot precedence, the "NOTE: this is context, not a call") restate earlier points, but almost every sentence carries real information.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations, so the description must explain returns — and it does, naming the bounds fields, both blocks, their value ranges, and their staleness. Given two modes, three optional parameters, and enum semantics, nothing an agent needs in order to call this correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents the three parameters and their list-mode restrictions. The description still adds meaning by mapping the `state` enum to the substantive location semantics (livePosition 0 = floor, 1 = ceiling; near_floor/mid_range/near_ceiling/above/below) and by clarifying that `state` is live location rather than stored lifecycle state.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Range / support-resistance CONTEXT derived from cycle pivots" names a specific resource and its derivation, then immediately answers the operational question ("where in a range are we?"). The description also splits the tool's two distinct modes (single-symbol daily+weekly vs. list-all) so an agent understands scope before opening the schema.

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

Usage Guidelines4/5

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

It gives concrete when-to-use triggers ("at the BOTTOM of a range", "at the TOP of the range — think twice about entering here", "broke out", "retesting an edge") and even which block to read first ("prefer `live` for current location and `snapshot` for the lifecycle narrative"). It also pre-empts a common false expectation ("not in a range" is a first-class answer). It stops short of naming an alternative sibling for the entry/exit decision itself, only saying "this is context, not a call."

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

Deploy Server

Other Tools