Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_trendlines

Retrieve automatically detected support and resistance trendlines for a symbol and timeframe, including anchors, slope, and active status to identify and monitor line breaks.

Instructions

Get the automatically detected trendlines for a symbol on one timeframe (daily by default; weekly; hourly only for symbols with 1h data). Each line carries its type (support/resistance), its two anchors (date + price), slope and whether it is still active. Breaks of these lines are the trendline_break_* / trendline_breach_* events in dwlf_get_events. Weekly lines are not stored for every symbol yet (BTCOC/USD has daily lines only): an empty weekly list means "none stored", not "no trend". The engine's weekly detection still emits weekly trendline_break_* events (for BTCOC/USD too), so read those with dwlf_get_events.

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

Input Schema

NameRequiredDescriptionDefault
symbolYesTrading symbol — accepts BTC, BTC/USD, BTC-USD, BTCUSD, or stock tickers like AAPL, TSLA
timeframeNoWhich trendlines (default: daily). Hourly exists only for symbols with 1h data.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the load, and it does disclose return content (type, two anchors, slope, active flag) plus the crucial caveat that an empty weekly list means 'none stored' rather than 'no trend'. It leaves out access requirements, result-size limits and explicit read-only framing, though 'Get' implies a read.

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 the core capability, then layered with caveats; every clause is informative. The final sentence restates the dwlf_get_events pointer and the BTCOC/USD example already implied, which is mild redundancy in an otherwise dense paragraph.

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, the description compensates by describing the per-line fields returned and the storage edge case that would otherwise cause a misread empty result. For a two-parameter read tool, nothing an agent needs to call it correctly is 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 coverage is 100%, so the baseline would be 3, but the description adds real meaning about the `timeframe` parameter: the default is daily and an empty weekly response has a specific interpretation rather than signaling absence of a trend. The symbol parameter's format variants are already fully covered by 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: automatically detected trendlines for a symbol on one timeframe, with the default (daily) and supported alternatives (weekly, hourly only where 1h data exists) named. It also distinguishes itself from dwlf_get_events by assigning break/breach occurrences to that sibling.

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?

Explicitly routes the agent: line data comes here, while `trendline_break_*`/`trendline_breach_*` events come from dwlf_get_events, and that routing is repeated for the weekly case where storage may be absent. The weekly-storage caveat tells the agent when an empty result is not meaningful.

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