Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_update_subscription

Update an existing DWLF subscription by changing only supplied fields, including toggling enabled to pause or resume alerts without deleting history.

Instructions

Update an existing subscription (PATCH). Only the fields you supply are changed; everything else is preserved. Most-used: toggle enabled to pause/resume without losing the subscription's history. Editable fields: enabled, symbols, timeframes, channels, quietHours, dedupeWindowMinutes, mode, strategyId, risk/accountBalance/maxConcurrentTrades overrides, and customEventId (custom_event subscriptions only). eventTypeId is NOT patchable — switching event class on an existing subscription requires delete+recreate.

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": {
      "subscriptionId": "<subscriptionId>"
    },
    "name": "dwlf_update_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
enabledNoToggle active/paused without deleting.
symbolsNoReplace the symbol scope. Pass ['*'] for wildcard across the account universe.
channelsNoReplace the delivery channels array, e.g. [{ type: 'telegram', destination: { chatId: <number> }, enabled: true }]. It cannot be empty.
quietHoursNoQuiet-hours window object, or null to clear. Detailed shape (start/end/timezone) is validated server-side.
strategyIdNo
timeframesNoReplace the timeframe scope. Pass ['*'] for any.
customEventIdNoOnly valid on custom_event subscriptions — repoints which custom event the sub watches. The backend answers 400 if the sub isn't a custom_event.
subscriptionIdYesThe subscriptionId returned by create or list.
dedupeWindowMinutesNoDedup window for repeat fires, or null to clear. A non-negative finite number.
riskPerTradeOverrideNo
accountBalanceOverrideNo
maxConcurrentTradesOverrideNo

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 provided, the description carries the full burden and does well: it discloses PATCH merge semantics (unsupplied fields preserved), a server-side validation rule (channels cannot be empty), and a concrete failure mode (backend returns 400 if `customEventId` is used on a non-custom_event subscription). It stops short of stating permission/auth requirements or whether a recreate loses history, which keeps it off 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?

Front-loaded with the operation and its most important semantic guarantee, then the most common use case, then constraints. The mid-sentence enumeration of editable fields partially duplicates the schema's property list, which is the only slightly wasteful element; everything else earns its place.

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 13-parameter mutation tool with no annotations and no output schema, this covers the critical gaps: partial-update semantics, field-level validity, and one hard error case. Gaps remain on the `mode` enum (confirm vs auto is undefined anywhere) and on what a successful response returns, so it is not fully self-sufficient.

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?

At 62% schema coverage, the description compensates meaningfully by enumerating the patchable field set and flagging the one non-patchable field (`eventTypeId`), which the schema does not express at all since it is absent from `properties`. It adds scope restrictions per field group (customEventId limited to custom_event subs, overrides grouped as risk/accountBalance/maxConcurrentTrades) beyond what the schema text offers.

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 ('Update an existing subscription (PATCH)') and immediately qualifies the semantics with partial-update behavior. It is clearly distinguishable from the create/delete siblings by the PATCH framing and the 'only fields you supply are changed' clause.

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 surfaces the dominant use case ('toggle `enabled` to pause/resume without losing history') and an explicit when-not: `eventTypeId` is not patchable, and switching event class 'requires delete+recreate', which routes the agent to a different tool. Both condition and alternative are named.

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