Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_cycle_setups

Screen the universe for weekly cycle timing windows confirmed by daily pivots, ranked by stage and entry freshness; long/short counts summarize the regime.

Instructions

The Cycle Setup Screener: universe-wide cross-reference of the WEEKLY cycle timing window with DAILY cycle confirmation, both sides, ranked best-first. Stages: confirmed_setup (weekly window open AND daily pivot confirmed fresh <=15d — the multi-timeframe trigger has fired), awaiting_confirmation (daily pivot provisional, confidence % included), window_open (timing window open, no daily signal yet). Each row: weekly window position (early/mid/late + days-since-pivot), weekly.timing, daily pivot price/confidence/freshness, last close and % from pivot (the entry-freshness number — fresher entries pay less confirmation tax). Start daily market reviews here: the long/short counts alone summarise the universe regime (e.g. 9 long vs 33 short = late-cycle topping). weekly.timing is the STORED weekly window, the same edges the chart draws: earliest, opens, closes, hardMax (dated edges), phase (upcoming | open | overdue | missed), n (gaps behind the edges), calibration, verification (always unverified while the detection gate stands failed), rulerAgreesWithState, generation and projectionHash; null when the store holds no window for the series. Reads the persistent cycle FSM state — exactly what the cycle engine itself sees — and the window store for timing; no window is computed here. ⚠️ A symbol whose weekly window is not yet open is ABSENT from every list, not suppressed — for its window dates call dwlf_get_cycle_windows. DEPTH (depth: true, DWLF-416): each row also carries depth, its weekly window's derived price band (the same object dwlf_get_cycle_windows gives; long rows = the fall into the weekly low, short rows = the rise into the weekly high), and depth.reading.position places the last weekly close: in-zone (inside the p25–p75 of past cycles' moves — call it out), shallow / deep / beyond, or not-reached (short of the smallest move on record — not worth raising). Context, NOT a gate or target: it does not change the stage or ranking. A missing band says why in depthUnavailable (incl. ruler-mismatch when the band's window is not the setup's). UI equivalent: https://www.dwlf.co.uk/screener

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

Input Schema

NameRequiredDescriptionDefault
depthNoAdd each row's weekly depth band and where the last close sits in it (`depth`, DWLF-416). Historical context, no targets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.5/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 most of it: it discloses that the tool reads persistent FSM state and computes no windows, that unopened-window symbols are omitted rather than suppressed, that the three stages have specific freshness rules (daily pivot fresh <=15d), and that `depth` is context, not a gate or target. Remaining gaps are minor, such as no statement of result-size limits for a universe-wide scan or explicit read-only confirmation.

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?

The purpose and the when-to-use guidance are correctly front-loaded, and every block does carry information. However, the middle section enumerates the full `weekly.timing` field list and pipeline jargon (`projectionHash`, `rulerAgreesWithState`, `calibration`) in one dense run-on, which is heavy going and partly compensates for the missing output schema rather than serving tool selection.

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 describe return shape itself, and it does: stage definitions, per-row fields, price-band behavior, and the `depthUnavailable` explanation. For a single-flag, read-only screener with a UI equivalent link, an agent has everything needed to call and interpret it.

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% for the single `depth` flag, so the baseline is 3; the description earns above that by explaining the semantics of what the flag adds (per-row weekly price band, long = fall into weekly low, short = rise into weekly high) and how to read `depth.reading.position` values. It doesn't add format or cost details for enabling it.

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 opening sentence names a specific verb and resource ('universe-wide cross-reference' of WEEKLY cycle window with DAILY confirmation) plus the ranking rule ('ranked best-first'). It also implicitly distinguishes this screener from `dwlf_get_cycle_windows`, which is named later for a different job, so an agent can pick between them without opening either 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?

It states an explicit entry point ('Start daily market reviews here') and explains what the counts mean for regime reading. It also names the alternative and the exact condition that selects it: 'A symbol whose weekly window is not yet open is ABSENT from every list... for its window dates call `dwlf_get_cycle_windows`.'

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