Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_update_annotation

Update an existing DWLF annotation by merging only the fields you want to change; symbol and timeframe locate the row while sibling data and display settings stay intact.

Instructions

Update an existing annotation. symbol + timeframe are REQUIRED (the backend needs them to locate the row). data is merged field-by-field into the existing data — pass only the fields you want to change (e.g. {label: "..."} or {price: 56}); sibling fields are preserved. visible/locked/zIndex/groupId can also be patched.

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": {
      "annotationId": "<annotationId>",
      "symbol": "<symbol>",
      "timeframe": "<timeframe>"
    },
    "name": "dwlf_update_annotation"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataNoPartial data fields to merge (not a full replacement). E.g. {label: "Reclaim ~56"} or {color: "#ef4444"}.
lockedNoLock the annotation against edits
symbolYesTrading symbol the annotation belongs to — required to address the row
zIndexNoStacking order
groupIdNoAnnotation group/workspace id
visibleNoShow/hide the annotation
timeframeYesAnnotation timeframe (e.g. "daily", "weekly", "hourly") — required to address the row
annotationIdYesAnnotation ID (e.g. ann_d604ba96a697)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the merge semantics field-by-field, states that sibling fields are preserved, and enumerates which non-data fields can be patched. It omits failure behavior for a missing/ambiguous annotationId and any permission or return-value context, 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences with the operation stated first, the required addressing keys and their rationale second, and the merge/patch rules last. No filler, and the most consequential constraint (partial merge, not replacement) is surfaced prominently.

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 an 8-parameter mutation tool with a nested `data` object and no output schema or annotations, the description covers addressing requirements, merge behavior, and the patchable field set well. Remaining gaps are edge-case behavior (row not found, conflicting identifiers, whether annotation type can change), which are nice-to-have rather than blocking.

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 the schema already documents every parameter, including the partial-merge nature of `data`. The description mostly restates this ('pass only the fields you want to change') and adds only the mild extra point that sibling fields are preserved, so it sits at the baseline rather than adding new meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 annotation') that an agent can clearly distinguish from dwlf_create_annotation and dwlf_delete_annotation in the sibling list. It does not explicitly name those siblings, but the update-vs-create distinction is unambiguous from the verb.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied by 'Update an existing annotation' and reinforced by the note that symbol + timeframe are needed to locate the row, giving the agent a practical precondition. However, it never states when to prefer a sibling (e.g. create_annotation for new rows, bulk_create_annotations for many) or what happens when the target row does not exist.

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