Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_describe_onchain_events

Explains Bitcoin on-chain event types — their conditions, thresholds, inputs, firing history and caveats — by pack, by event type, or by keyword search.

Instructions

What does a Bitcoin on-chain event mean? Describes the onchain.* event types: the plain-English condition, the inputs and threshold, the history start, how often it has fired, the method version and the caveats. Packs: engine (the types DWLF's engine evaluates: cost-basis crosses, MVRV, supply in profit, STH-SOPR, cohorts, dormancy, CDD, whale transfers) and the onchain-packs (quantum, mining, fees, dca, regime, blockspace). No arguments → the packs with their summaries. pack → that pack's types. eventType → one type: event (its summary line) and definition (the full definition: inputs, threshold, caveats, history; detailUnavailable says why when it could not be read). search → types whose id or meaning contains the words. For one type's occurrences, use dwlf_explain_event.

⚠️ Read before you report:

  • definitionSource: api = read live from DWLF; bundled = this package's offline copy (dated asOf), used only when the API could not be read (apiError says why). Say which when it matters.

  • inEngine (per TYPE; a pack is true if ANY of its types is): true = the engine evaluates it and its rows can be read with dwlf_get_events, dwlf_get_conditions or dwlf_explain_event; false = a documented condition with its history measured on DWLF's own node, not yet queryable; null = unknown. Before building a custom event on a type, check that type's own inEngine.

  • Every type describes a CONDITION on the chain, not advice. estimated: true marks types built on an attribution or a proxy: read their caveats. confirmedAt on a row is when it became knowable. Frequencies are historical counts, not a forecast.

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

Input Schema

NameRequiredDescriptionDefault
packNoOne pack: engine, quantum, mining, fees, dca, regime, blockspace
searchNoWords to find in an id or meaning, e.g. "hash rate" or "consolidation"
eventTypeNoOne event type id, e.g. onchain.mining.hash_ribbon.capitulation.enter

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 at all, the description carries the full burden and largely meets it: it discloses the offline fallback (`definitionSource: bundled` with `asOf` and `apiError`), the tri-state `inEngine` meaning and its consequences for queryability, `detailUnavailable`, and that `estimated: true` marks proxy-based types. It never states outright that the call is read-only/side-effect free, which is the one gap for a zero-annotation tool.

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 mode list, then a clearly demarcated '⚠️ Read before you report' bullet block for interpretation caveats. Dense but every clause carries information; some parenthetical asides could be tightened.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Since there is no output schema, the description must explain return values, and it does so for the key fields (`event`, `definition`, `definitionSource`, `inEngine`, `detailUnavailable`, `estimated`, `confirmedAt`). It doesn't say how large results can get or whether pack listings are paginated/ordered.

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 already 100%, so baseline is 3; the description goes beyond it by explaining the mode each parameter selects and the default behavior when no parameter is given, which the schema does not express. It still doesn't clarify precedence when several parameters are supplied together.

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 framing question and a specific verb+resource: it describes `onchain.*` event types and enumerates exactly what a description contains (condition, inputs, threshold, history start, fire frequency, version, caveats). It distinguishes itself from dwlf_explain_event by scope (definition vs. occurrences).

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 explicit routing for every input mode: no arguments → packs with summaries, `pack` → that pack's types, `eventType` → one type's `event` and `definition`, `search` → types matching words. It also names the alternative tool for a different need ('For one type's occurrences, use dwlf_explain_event').

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