Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_support_resistance

Retrieve current support and resistance zones for a trading symbol to identify nearby key levels and plan entries, exits, or risk.

Instructions

Get the current key levels (support and resistance) for a trading symbol, from daily candles, recomputed nightly. Each level is a zone (zone.lower/zone.upper, ATR-wide) built from confirmed cycle pivots (daily and weekly) and the previous week, month and year high/low and year open; round numbers only add confluence. sources lists what built it, score/scoreParts rank it (touches × reaction × recency × timeframe × confluence), distanceAtr is how far it sits from the close, and id is stable across nights. Up to 5 per side, nearest first. Interactions with these levels are daily events: dwlf_get_events with type keyLevel.<kind> (formed, approached, tested, rejected, broken, retested, flipped, reclaimed, expired), each with a keyLevel block (levelId, kind, direction, role, levelPrice, zone edges).

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": {
      "symbol": "<symbol>"
    },
    "name": "dwlf_get_support_resistance"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolYesTrading symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or stock tickers like AAPL, TSLA

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.2/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 so well: it discloses the data source, nightly recomputation cadence, the ATR-wide zone construction, that round numbers only add confluence, the cap of 5 per side returned nearest-first, and that `id` is stable across nights. It stops short of failure behavior or data-staleness caveats (e.g. a symbol whose levels were never computed), which is the remaining gap for a no-annotation tool.

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 purpose and cadence are front-loaded, and the dense back half is mostly earned: each field reference (`zone.lower`/`zone.upper`, `sources`, `score`/`scoreParts`, `distanceAtr`, `id`) is carrying payload the agent would otherwise have to guess. It is a single long block rather than broken into distinct sections, which makes it slightly heavy to scan, but there is no filler.

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, so the description must explain the return shape, and it does: field meanings, ranking formula inputs, distance measurement, id stability, count limit, and ordering. Combined with the data provenance and recomputation cadence, an agent has everything needed to call it and interpret the result.

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?

There is a single parameter and schema description coverage is 100% — the schema already documents every accepted symbol format (BTC, BTC/USD, BTC-USD, BTCUSD, equity tickers). The description adds no symbol-handling detail beyond that, so the baseline 3 is the correct ceiling.

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?

The description names a specific verb and resource ("Get the current key levels (support and resistance) for a trading symbol") and immediately pins down the derivation ("from daily candles, recomputed nightly"). It also separates itself from the sibling it is easily confused with by pointing to dwlf_get_events for level interactions, so an agent can route without opening a 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 clear directional guidance: this tool returns the levels themselves, while interaction with those levels (formed, approached, broken, etc.) lives in dwlf_get_events with type `keyLevel.<kind>`, which is a genuine alternative-path instruction. It does not state any explicit exclusion or precondition (e.g. what to do if the symbol has no computed levels), which keeps it below a 5.

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