Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_divergences

Retrieve dated regular or hidden price/oscillator divergences across tracked symbols, filtered by timeframe, direction, oscillator, symbol, and date window.

Instructions

Recent price/oscillator DIVERGENCES across every symbol DWLF tracks: dated events that happened, not calls. A divergence compares two consecutive confirmed cycle pivots: a regular one is price making a lower low (or a higher high) while RSI(14) or DSS does not; a hidden one is the reverse, a pullback inside the trend. Bullish = measured at lows, bearish = at highs.

FILTERS: days (1-365, default 30) windows the later pivot's date; oscillator (rsi | dss), kind (regular | hidden), direction (bullish | bearish), symbols (restrict to these), limit (1-500; this tool sends 50 unless you set it), timeframe (daily, the default | weekly | all), includeRetired (also include divergences whose pivot the cycle ledger later superseded; by default they are left out and counted in retiredOmitted). CONFLUENCE: confluence names the layers to check around each divergence: cycle (a confirmed daily cycle low or high near the pivot, and whether it sits in the weekly window), smc (Smart Money Concepts events), tl (a trendline break), weekly (a weekly divergence agrees), fib (a cycle fib level). confluenceDays (1-30 bars, default 10) is the window; minLayers keeps only items matching at least that many layers (filtered by the API). Each item then carries confluence: { matched, layers, … }: a layer not requested is null, requested and absent is { matched: false }, and a matched layer lists its dated events and a one-line why. Passing timeframe or confluence gives responseVersion: 2, which always includes definitions (stable wording you can quote); explain: true adds them to the plain read.

READING IT: each item has summary (one plain sentence, the DWLF page's own wording: use it), both pivots' dates, prices and oscillator readings, knowableAt (when it could first be known: never imply it was visible earlier) and chartUrl. When the user wants to see one, give them its chartUrl. cyclePivot.ledgerState unknown or missing means the pivot is unverified, not confirmed. A divergence, or a confluence of layers, is something that happened on the chart, not a recommendation: never turn them into buy, sell or hold recommendations. truncated: true means more matched than were returned. A key whose plan lacks the cycles family gets a teaser (locked: true, newThisWeek, requiredPlan, upgradeUrl, pricingUrl) and no items: tell your human what unlocks it and give them upgradeUrl (the plans page).

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_divergences"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoWindow on the later pivot's date, in days (default 30).
kindNo`regular` (against the move) or `hidden` (a pullback inside the trend).
limitNoHow many items at most (default 50 here).
explainNoAdd `definitions` to a plain (version 1) read; version 2 always has them.
symbolsNoRestrict to these symbols (any spelling, e.g. "BTC/USD", "aapl").
directionNoBullish = measured at lows; bearish = at highs.
minLayersNoKeep only items matching at least this many of the requested layers. Needs `confluence`.
timeframeNoDaily pivots (default), weekly, or both.
confluenceNoLayers to check around each divergence.
oscillatorNoRSI(14) or DSS.
confluenceDaysNoThe confluence window in bars (weekly: weeks); default 10.
includeRetiredNoAlso include divergences on pivots the cycle ledger later superseded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.6/5.0
Behavior5/5

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

No annotations, so the description carries the full burden and does so richly: the 50-item default send, `days` default 30, retired pivots omitted and counted in `retiredOmitted`, `responseVersion: 2` and `definitions`, `truncated: true`, `knowableAt` temporal honesty, and the `locked` teaser behavior for plans without the cycles family. These are non-obvious traits an agent would otherwise get wrong.

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 purpose and organized under FILTERS, CONFLUENCE, and READING IT headers, so an agent can skim to the relevant block. It is dense and long, but for a 12-parameter tool with no output schema nearly every clause carries information; a few parenthetical asides could be trimmed.

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?

With no annotations and no output schema, the description fully covers the return shape (item fields, per-layer `confluence` object semantics, `truncated`, `locked` teaser keys) and the interplay between `timeframe`, `confluence`, and `responseVersion`. An agent has enough to call and interpret results correctly.

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 baseline is 3, but the description adds genuine meaning: `limit` explicitly sends 50 unless set, `includeRetired` is tied to the `retiredOmitted` count, `minLayers` is noted as API-side filtering, and `confluenceDays` is clarified as bars (weeks for weekly). That exceeds restating the schema.

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?

States a specific resource and scope: 'Recent price/oscillator DIVERGENCES across every symbol DWLF tracks: dated events that happened, not calls.' It then defines the domain (regular vs hidden, bullish at lows vs bearish at highs), which distinguishes it from signal/recommendation-flavored siblings like dwlf_get_active_signals without naming them.

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?

Gives concrete when-to guidance: pair `confluence` with `minLayers`, turn on `explain` for a plain read, and hand the user a `chartUrl` when they want to see one. It also gives a hard behavioral directive ('never turn them into buy, sell or hold recommendations'). It stops short of explicitly naming an alternative tool for adjacent needs, so not 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