Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_stage

Identify weekly Weinstein market-cycle stage for a symbol, sector, or group—base, advance, top, or decline—including weeks in stage, transitions, and breadth for basing or advancing checks.

Instructions

What stage of its market cycle is this symbol (or sector) in, on the WEEKLY chart? Gives the Weinstein stage — 1 base, 2 advance, 3 top, 4 decline — derived from the 30-week average, with weeksInStage, since (when the stage became knowable) and the recent transitions. Use it for "is X basing or advancing?", "how long has X been in Stage 2?" and, with group or several symbols, for sector breadth ("what share of metals are in Stage 2?"). This is the platform's market-cycle read: dwlf_get_regime carries no cycle phase. On a DWLF Block key the stage is the Cycles family: below the plan that reads it, it is a 403 whose error ends [PLAN_REQUIRED; family=cycles; requiredPlan=…; upgradeUrl=…; pricingUrl=…].

SHAPE (one symbol): { symbol, stage, stageName, weeksInStage, since, rulesVersion, verification, history: [{ to, from, baseline, knowableFrom, close }] }. stage: null with reason: "no-stage" = too little weekly history. SHAPE (many): { verification, stages: { SYM: … }, unavailable: [{ symbol, reason }], breadth: { counted, withoutStage, share: { base, advance, top, decline } } } — shares are over symbols WITH a stage.

With no arguments, gives every staged symbol plus universe breadth (a large response).

⚠️ Stages are CONTEXT, not a call: report the response's verification (state + reason) with the stage, and never turn it into buy, sell or hold recommendations. Like any trend read a stage confirms late — much of a move has happened by the time a stage changes.

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

Input Schema

NameRequiredDescriptionDefault
groupNoA named group, e.g. metals, gold_miners, mag7, crypto_spot, btc_mining — stages plus breadth
symbolNoOne symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or tickers like PHAU, SPY
symbolsNoSeveral symbols: each one's stage plus breadth over them

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.8/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: it discloses the plan-gated 403 and its exact error suffix format, the `stage: null` / `reason: "no-stage"` insufficient-history case, and that an argument-less call returns a large universe-wide payload. It also flags two behavioral caveats an agent must honor — always report `verification`, never convert stages into buy/sell/hold calls, and that stages confirm late.

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?

Purpose is front-loaded in the first sentence, and the SHAPE blocks are justified because there is no output schema. It is dense but nearly every clause carries information; the stage enumeration and the parenthetical breadth example are slightly redundant but not wasteful.

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, and the description compensates by spelling out both single-symbol and multi-symbol response shapes including `breadth.share` and `unavailable`. Combined with the plan-error format and the no-history case, 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.

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 real semantics: `group` and `symbols` produce breadth computed only over symbols that have a stage, and no arguments means all staged symbols plus universe breadth. It does not restate accepted symbol formats, which the schema already handles.

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 question-form verb and resource: the symbol's Weinstein market-cycle stage on the WEEKLY chart, then enumerates the four stages and the underlying 30-week average. It explicitly contrasts itself with sibling dwlf_get_regime ("carries no cycle phase"), so an agent can separate the two 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?

Gives concrete trigger phrases ("is X basing or advancing?", "how long has X been in Stage 2?"), explains the breadth use case via `group` or `symbols`, and names the alternative that does not serve this need. It also documents the no-argument behavior as a distinct mode, so the agent knows what the default call does.

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