Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_market_data

Fetch OHLCV candle data for a trading symbol at a chosen timeframe to inspect actual price bars, ranges, and exact highs/lows.

Instructions

Get OHLCV candle data (open, high, low, close, volume) for a trading symbol at a chosen timeframe. Reach for this when you need ACTUAL BARS — sweeps, ranges, exact intraday highs/lows, "did price touch $X on date D", the close on a specific bar. dwlf_get_price_picture / dwlf_get_events are something else: dated records of what happened (pivots, crosses, trend-line breaks), each with the price on its date; they describe structure, cycles and breaks, not candles. Timeframes: daily, weekly, hourly (hourly is available only for symbols that have 1h data). Gated to the owner account; other API keys get a 403 with a pivot-based fallback hint.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of most-recent candles to fetch (default: 50; the API caps it per timeframe)
symbolYesTrading symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or stock tickers like AAPL, TSLA
timeframeNoCandle timeframe (default: daily). Hourly is available only for symbols with 1h data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.3/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 does disclose real behavior: access is gated to the owner account and other API keys receive a 403 with a pivot-based fallback hint, hourly data exists only for some symbols, and the API caps the limit per timeframe. It does not describe the shape of returned candles or ordering beyond what the schema implies, which keeps it short of a 5.

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?

The core capability is front-loaded in the first sentence, followed by disambiguation, then constraints. The emphatic phrasing (ACTUAL BARS, capitalized, backticks, quoted example) is slightly theatrical, but each clause carries selection or constraint information rather than filler.

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?

For a 3-parameter read tool with no output schema, the description covers selection guidance, alternatives, access gating, and timeframe constraints. The remaining gap is what a returned candle looks like and whether results are ordered or range-bounded, which an agent must infer from the 'most-recent candles' schema text.

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 description coverage is 100%, so symbol formats, the limit default of 50, and the timeframe enum are already documented in the schema. The description only restates the timeframe list and the hourly availability caveat, adding no new syntax or semantics beyond that. Baseline 3 is appropriate.

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: fetch OHLCV candle data (open, high, low, close, volume) for a trading symbol at a chosen timeframe. It also explicitly contrasts itself with dwlf_get_price_picture and dwlf_get_events, so an agent can distinguish candles from dated structural records 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 when-to-use triggers (sweeps, ranges, exact intraday highs/lows, 'did price touch $X on date D', the close on a specific bar) and names the alternatives with the condition that selects them ('they describe structure, cycles and breaks, not candles'). Nothing about tool selection is left to inference.

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