Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_regime

Classify a symbol's market regime for a timeframe, returning trend, momentum, volatility, confidence, and optional dated history; flag insufficient history with placeholders.

Instructions

Get the market regime classification for a symbol on one timeframe (daily by default) — trend, momentum, volatility and a confidence score, plus insufficientHistory (true when the symbol has too little history on that timeframe: the fields are then placeholders, not a reading). With history, gives a dated regime series, newest first. It carries no cycle phase: for where an asset is in its market cycle, use dwlf_get_stage (weekly Weinstein stage).

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

Input Schema

NameRequiredDescriptionDefault
limitNoHistory entries to give when `history` is true (default 90).
symbolYesSymbol to query (e.g. BTC, ETH, AAPL)
historyNoIf true, give the dated regime series (newest first) instead of just the current regime
timeframeNoCandle timeframe to classify (default: daily). Hourly only for symbols with 1h data.

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 it does disclose a genuine behavioral trait not present in the schema: insufficientHistory means the returned fields are placeholders rather than a real reading, which prevents an agent from misreading output. It is implicitly a read-only retrieval but never says so outright, and says nothing about failure modes for invalid symbols or timeframes lacking data.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core capability is front-loaded in the first clause, followed by the return fields, the caveat, and the sibling exclusion — each sentence earns its place. Parentheticals carry the conditional detail without bloating the main clause.

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 returns, and it does: trend, momentum, volatility, confidence, and the insufficientHistory placeholder semantics. Combined with full schema coverage on the four inputs and explicit sibling routing, nothing an agent needs to call this 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%, so every parameter already has its own description, including the daily default, the enum values, the hourly caveat, and the newest-first ordering. The description restates the daily default and the history behavior but adds no syntax or format detail beyond what the schema provides, so the baseline of 3 applies.

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 opens with a specific verb and resource ("Get the market regime classification for a symbol on one timeframe") and enumerates the payload — trend, momentum, volatility, confidence score, plus the insufficientHistory flag. It also explicitly distinguishes itself from dwlf_get_stage by stating it carries no cycle phase, so an agent can pick correctly 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 gives an explicit routing rule: for where an asset sits in its market cycle, use dwlf_get_stage instead. It also states the condition that switches modes ("With `history`, gives a dated regime series"), so both the alternative and the in-tool branch point are covered.

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