Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_events

Retrieve dated market indicator events—cycle highs/lows, crossovers, breakouts, divergences—and filter by symbol, watchlist, event type, timeframe, or date window for analysis.

Instructions

Get indicator events (cycle lows/highs, crossovers, breakouts, divergences, etc.). Filter by a single symbol or a symbols watchlist, by type (e.g. cycle.low.confirmed), by timeframe (1d / 4h / 1h — without this the response is dominated by hourly noise), and by time window via days or explicit fromDate / toDate. 📑 PAGINATION: results are paged. When scoped by customEventId or eventName, this tool AUTO-FOLLOWS the cursor and gives the event’s COMPLETE history in one call (filtersApplied.autoPaginated / pagesFetched report what happened) — but you still need to pass a wide days (e.g. 2000) or fromDate/toDate, or the 7-day default caps how far back it looks. For non-scoped queries a cursor in the response means there are MORE pages: follow it (or use a tight fromDate/toDate) before trusting any count or “oldest” date — page 1 holds only the most-recent matches. 💡 Events are dated records of what happened: cycle pivots, swing points, MA/EMA crosses and trend-line breaks, each with the price on its date. They describe structure, cycles and breaks, and are not candles; for accounts without raw OHLC access (most API-key callers) they are how DWLF shows what price did. for a single-call summary across those types, use dwlf_get_price_picture instead. RSI(14): rsi.exit.overbought / rsi.exit.oversold (back inside 70 / 30), rsi.midline.bullish / rsi.midline.bearish (a close across 50). Divergence: rsi.divergence.* and dss.divergence.*, each {regular,hidden}.{bullish,bearish} (e.g. rsi.divergence.regular.bullish), compare price with RSI(14) or DSS at consecutive confirmed daily cycle lows (bullish) or highs (bearish). Each row carries a divergence block (both pivots' prices, both oscillator readings, barsBetween); it is dated by the later pivot and knowable at eventTimestamp. SMA reclaim / loss (daily): sma.reclaimed / sma.lost on the 50, 100 and 200-day SMA (length on the row): two closes in a row on the other side, each at least half an ATR beyond the average, so a one-day poke through it (sma.cross.*) is not one. ADX / DMI (daily, Wilder 14): adx.trend.started.bullish / .bearish (ADX rises to 25; side from the DIs), adx.trend.faded (ADX falls below 20: ranging again), adx.di.cross.bullish / .bearish (DIs cross while ADX >= 20); each row carries an adx block (adx, previousAdx, plusDI, minusDI, threshold). Context (trending vs ranging), not a call, and events only: not builder nodes. Trend starts and fades fire a few times a year per symbol, so pass a wide days (e.g. 365) for them. On-chain (onchain.*, Bitcoin): only on BTCOC/USD and only daily, so pass symbol: "BTCOC" and timeframe: "1d"; with no type its TA events come too, so name a type to read one (dwlf_describe_onchain_events lists them; dwlf_explain_event gives one type's definition and occurrences). When a row became knowable: its confirmedAt (inside the onchain block on on-chain rows) when it has one, else its eventTimestamp; give that, not the row's date, as when it was known.

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

Input Schema

NameRequiredDescriptionDefault
daysNoRestrict to events fired in the last N days (e.g. `5` for the last 5 days). ⚠️ DEFAULT IS 7 DAYS if omitted — anything older is silently hidden. For historical lookups (verifying old cycle pivots, finding an event that seems to have gone) pass an explicit larger value like `days: 120` or use `fromDate`/`toDate` for a precise window. Hit this footgun multiple times across sessions; documenting loudly.
typeNoFilter by one exact event type id, no wildcards (e.g. `cycle.low.confirmed`, `cycle.high.confirmed`, `onchain.sth_sopr.lose`, `custom_event`).
limitNoNumber of events to give (default: 20).
symbolNoFilter by a single trading symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or stock tickers
toDateNoInclusive upper bound on event date, ISO `YYYY-MM-DD`.
symbolsNoFilter by multiple symbols at once. Each accepts the same shapes as `symbol`. Use this for watchlist queries (e.g. "what cycle lows fired across my watchlist today").
fromDateNoInclusive lower bound on event date, ISO `YYYY-MM-DD`. Mutually useful with `toDate`.
eventNameNoFilter custom event fires by their human-readable name (e.g. `wcl_confirmed`). Only honoured when `type` is `custom_event`. Useful when you know the name but not the ID.
timeframeNoFilter by candle timeframe. Set it — without it the API answers with mostly hourly events and daily-bar fires get truncated past the limit. Use `1w` to query weekly cycle events (e.g. for multi-timeframe DCL analysis).
customEventIdNoFilter to fires of a specific custom event by its event definition ID. Only honoured when `type` is `custom_event` (the tool defaults `type` to `custom_event` when you set this and leave `type` unset). The tool auto-follows pagination for this scoped query and gives the event’s COMPLETE set — but pass a wide `days` (e.g. 2000) or `fromDate`/`toDate`, or the 7-day default caps how far back it looks. Combine with `symbol` / `symbols` to scope to a single asset, or omit to see fires across the watchlist.
uniquePerSymbolNoIf true, give only the most recent event per symbol (useful for "latest fire" snapshots).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses the 7-day silent truncation footgun, the paged response and `cursor` semantics, the auto-follow exception scoped by `customEventId`/`eventName` (with `autoPaginated`/`pagesFetched` reporting), and that page 1 holds only the most-recent matches so counts are untrustworthy. It even resolves temporal semantics — `confirmedAt` when present, else `eventTimestamp`, is 'when it was known'.

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?

Core purpose is front-loaded and pagination/on-chain notes are clearly delimited, but the body runs hundreds of words of per-event-type taxonomy (RSI exits, SMA reclaim thresholds, ADX/DMI rules) that the description itself says dwlf_explain_event exists to provide — self-duplicating content. There is also a dangling fragment ('for a single-call summary across those types, use dwlf_get_price_picture instead.') wedged mid-taxonomy, disrupting the otherwise logical order.

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?

No output schema exists, so the description must describe returns, and it does: each divergence row carries both pivots' prices, both oscillator readings and barsBetween; ADX rows carry an `adx` block; `sma.reclaimed`/`sma.lost` rows carry `length`. For an 11-parameter, unrestricted filter tool with zero annotation coverage, nothing material an agent needs to call it correctly is missing.

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 coverage is 100% and the schema descriptions are themselves unusually rich (they already document the 7-day default, the timeframe noise warning, and the customEventId auto-pagination). The description largely restates that parameter guidance rather than adding new syntax or format constraints, so it sits at the baseline-3 level with only marginal extra value.

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?

Opens with a specific verb+resource ('Get indicator events') and immediately enumerates what counts as an event (cycle lows/highs, crossovers, breakouts, divergences). It also positions itself against siblings by name — 'use dwlf_get_price_picture instead' for a cross-type summary — so an agent can separate it from the nearby tools 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 Guidelines5/5

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

Gives explicit when-to-use rules: filter by `timeframe` or 'the response is dominated by hourly noise', pass `days: 365` for trend start/fade events, pass `symbol: "BTCOC"` and `timeframe: "1d"` for on-chain types. It also names alternatives for adjacent needs (dwlf_get_price_picture, dwlf_describe_onchain_events, dwlf_explain_event) and states the condition selecting each.

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