Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_conditions

Retrieve Bitcoin's current regime, cost-basis levels, cycle windows, and recent events in one call to assess market conditions without stitching multiple requests.

Instructions

What are an asset's conditions right now? Bitcoin today (asset: "btc"). ONE call returning: the regime (daily and weekly trend, momentum, volatility; the Weinstein weekly stage; and the on-chain bands: MVRV below 1 / above 3.5, supply in profit below 50 %, 7-day STH-SOPR below 1); the COST-BASIS LADDER (price above or below the realised, short-term-holder and long-term-holder realised price, and since when); the stored weekly and daily cycle windows with today's position against their dates; every event on the symbol in the last days (price, cycle, CFTC positioning cot.*, on-chain onchain.*); and provenance. For BITCOIN, call this first, instead of stitching dwlf_get_regime, dwlf_get_stage, dwlf_get_cycle_windows and dwlf_get_events together. It carries the on-chain cost basis, the on-chain bands, the cycle windows and CFTC positioning in one read; use dwlf_get_support_resistance for BTC's S/R levels.

SHAPE (responseVersion 3; the response carries responseVersion, so check it; 1 and 2 are the same shape from an older DWLF API, which never locks a section): { kind: "conditions", asset, responseVersion, framing, symbol, asOf, price, regime: { daily, weekly, stage, onchain: { status, bands[] } }, costBasisLadder: { status, onchainSymbol, sideBasis, levelsPending, rungs: [{ key, side, level, distancePct, since }], counts }, cycleWindows: { weekly, daily }, recentEvents: { days, truncated, events: [{ eventType, date, family, onchain?, cot? }] }, provenance: { sources, methodVersions, brkVersion, scoring, unavailable } }. A rung's side comes from its latest on-chain cross event; level/distancePct need the stored on-chain day (levelsPending: true until then). On-chain readings are read from the own-data BTC symbol (onchainSymbol), whose price is DWLF's own BRK oracle close.

⚠️ Read before you report:

  • framing: these are CONDITIONS, NOT CALLS. Describe the state ("price is below the STH realised price since 20-Oct"); never turn it into buy, sell or hold recommendations. provenance.scoring is unscored: nothing here is scored as a predictor.

  • status: "pending" means the on-chain events are not ingested yet, not that the market is neutral. Say so rather than inferring a side.

  • provenance.unavailable lists legs that failed or timed out (those fields are null). Never fill them from memory.

  • asOf holds the price bar date and the on-chain day, block height and confirmedAt. Quote them, so staleness is visible.

  • price.withheld: true means this API key may not receive the vendor's raw close (data licensing). Sides and states are unaffected; do not ask for the close another way.

  • Cycle windows carry verification (currently unverified): treat them as rough timing, not a forecast.

  • LOCKED (responseVersion 3, DWLF Block plans): a section the plan does not read (regime.daily, regime.weekly, regime.stage, cycleWindows) is { locked: true, lockedFamily, requiredPlan, upgradeUrl, pricingUrl }, and an event row of such a family is { eventType, date, …, locked: true, lockedFamily, requiredPlan, upgradeUrl, pricingUrl } (what fired and when; no price, levels, values or meaning). Say the reading exists and which plan unlocks it, and give your human upgradeUrl (the plans page); never infer its value.

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

Input Schema

NameRequiredDescriptionDefault
daysNoRecent-events window in days (default 14).
assetNoThe asset (default btc; the only one today).
symbolNoBTC/USD (default; the exchange price) or BTCOC/USD (DWLF's own on-chain BTC price). Any spelling: BTC, BTCUSD, BTC-USD, BTCOC, BTCOCUSD, BTCOC-USD.

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?

There are no annotations, so the description carries the full burden and does so unusually well: it discloses locked plan sections and their shape, that `status: "pending"` means not-yet-ingested rather than neutral, that `provenance.unavailable` legs are null and must not be backfilled, licensing-based price withholding, unverified cycle windows, and the hard constraint that output is descriptive state, never buy/sell/hold. These are exactly the failure modes an agent would otherwise fall into.

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?

Front-loaded with purpose, then the return payload, then the competing-sibling routing, then the SHAPE contract, then a '⚠️ Read before you report' block — a logical order that lets an agent stop reading early. It is long, and some detail (how a rung's `side` is derived from the latest on-chain cross, `levelsPending` gating) is deeper than invocation requires, but the absence of an output schema largely justifies 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?

With no output schema and no annotations, this description must supply both the return contract and the operational caveats, and it does: full response shape with responseVersion 3 semantics, locked-section shape, per-field nullability, and staleness guidance ('asOf ... Quote them, so staleness is visible'). Nothing an agent needs to call it correctly or interpret the result appears to be missing.

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 description coverage is 100%, so the baseline is 3; the description earns a notch by clarifying that on-chain readings are taken from the own-data BTC symbol (`onchainSymbol`) whose price is DWLF's own BRK oracle close — a distinction the `symbol` enum options imply but do not explain the consequence of. It does not add anything for `days` beyond the schema's default-14 note.

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 concrete question ('What are an asset's conditions right now?') and immediately enumerates exactly what comes back: regime (daily/weekly trend, momentum, volatility, Weinstein stage, on-chain bands), the cost-basis ladder, stored cycle windows, recent events with their families, and provenance. It also distinguishes itself from four named siblings it replaces, so an agent can select it without reading any 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?

Explicit routing instruction: 'For BITCOIN, call this first, instead of stitching dwlf_get_regime, dwlf_get_stage, dwlf_get_cycle_windows and dwlf_get_events together.' It also names the exclusion boundary ('use dwlf_get_support_resistance for BTC's S/R levels') and even scopes to the only supported asset, which the enum confirms.

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