Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_indicators

Retrieve stored daily SMA and EMA values (10, 20, 50, 100, 200 periods) for a symbol to inspect current values, dates, and missing averages.

Instructions

Get the stored DAILY moving averages for a symbol: SMA and EMA at 10, 20, 50, 100 and 200 periods (computed nightly from daily closes). latest holds the most recent value of each, with its date; missing lists any average with no stored value. Moving-average values give the daily closes back exactly, so they are licensed like raw candles: with an API key that is not licensed for raw prices every value is null and valuesWithheld says why (latest is then empty and missing is null). Then use dwlf_get_regime for the trend read (built from EMA alignment and price against the EMAs), and dwlf_get_events (ema.cross.*, sma.cross.*, sma.reclaimed / sma.lost) for crosses, reclaims and losses. The backend response (indicators: rows grouped by average, each with its daily data points) is returned as is, with latest and missing added. This is the only indicator data stored as values: there is no RSI, MACD or Bollinger value series, and there is no 4h/1h data. For momentum, band and cross signals use dwlf_get_events (e.g. dss.cross.*, bollinger.break.*, ema.cross.*, sma.reclaimed / sma.lost for a confirmed reclaim or loss of the 50/100/200-day SMA, atr.regime.* for volatility expansion/contraction, adx.trend.* / adx.di.cross.* for ADX/DMI trend strength (trending vs ranging), rsi.exit.* / rsi.midline.* for RSI(14), rsi.divergence.* / dss.divergence.* for price vs oscillator at confirmed cycle pivots), or dwlf_get_regime for the trend/momentum/volatility read. atr.regime.*, adx.trend.* and the divergences are daily and fire rarely (ATR once when an episode starts), so pass a wide days for those.

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

Input Schema

NameRequiredDescriptionDefault
daysNoDaily values to give per average (default 1 = latest only; max 250).
symbolYesTrading symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or stock tickers like AAPL, TSLA

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.3/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full behavioral burden and does so well: it explains the licensing gate ('with an API key that is not licensed for raw prices every value is null'), the `valuesWithheld` explanation field, how `latest` and `missing` degrade under that condition, and that the backend `indicators` payload is passed through unmodified. These are non-obvious failure modes an agent cannot get from structured fields.

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?

Front-loaded with a precise first sentence, but the body sprawls: the long parenthetical enumerating `dss.cross.*`, `bollinger.break.*`, `rsi.exit.*`, `adx.di.cross.*` and other event families belongs in dwlf_get_events' own definition, and dwlf_get_regime/dwlf_get_events are each re-mentioned in a second routing sentence. Trimming the event catalogue would preserve the routing value at half the length.

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, and the description compensates by describing the return shape concretely: `indicators` rows grouped by average with daily `data` points, plus the added `latest` (with date) and `missing` fields. For a two-parameter read tool with no annotations, nothing an agent needs to call or interpret it 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%, including a description for `days` with default and max, so the baseline is 3. The description adds provenance ('computed nightly from daily closes') and names the response concepts `latest`/`missing`/`valuesWithheld`, but adds no syntax or formatting meaning for the `symbol` or `days` inputs beyond 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 verb and resource — 'Get the stored DAILY moving averages for a symbol: SMA and EMA at 10, 20, 50, 100 and 200 periods' — plus provenance ('computed nightly from daily closes'). It also pre-empts confusion with siblings by declaring what this tool is NOT ('the only indicator data stored as values: there is no RSI, MACD or Bollinger value series, and there is no 4h/1h data').

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?

Explicitly routes the agent elsewhere for adjacent needs: dwlf_get_regime for the trend read, dwlf_get_events with concrete event prefixes for crosses, momentum, bands and volatility. The only gaps are that 'when to use this tool' is implied rather than stated outright, and the closing sentence about passing a wide 'days' window for atr/adx/divergence events refers to other tools' parameters, which is slightly confusing inside this tool's definition.

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