Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_revise_thesis

Revise a thesis by saving a new version while preserving earlier revisions; submit expectedRevision plus only changed fields, and run dryRun first to check conflicts before writing.

Instructions

Change a thesis: writes a new revision and keeps the earlier ones. Send expectedRevision (the currentRevision you read; 409 REVISION_CONFLICT if it moved) and only the fields to change. steps/invalidation, when sent, replace the whole list: keep each unchanged condition's id so it keeps its arming and result. A changed or new condition is armed from now (nothing before counts). Same refusals as create (422 CANNOT_OCCUR / ALREADY_MET), for the changed conditions only. Use dryRun: true first: the same check for the revision (only the changed conditions, listed in changed, are judged; an unchanged condition already met is fine), writing nothing; show it to the user. Condition types: pivot_confirmed (the next confirmed cycle low/high, optionally inside a level), close_vs_level (a daily/weekly close or intraday trade beyond a level), window_opens, window_closes (invalidation only: the stored window closes with no pivot of its side; only when the user asks to void the thesis by time), trendline_break, engine_event (a short allow-list), manual. Full parameters and definitions: dwlf_list_thesis_condition_types.

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": {
      "thesisId": "<thesisId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "dwlf_revise_thesis"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoOrdered: step n+1 is checked only after step n is met. Limits: dwlf_list_thesis_condition_types.
titleNoOne line: what you are waiting for.
dryRunNoCheck the revision as it would be saved; nothing is written.
contextNoYour assessment, why you are waiting. Replayed verbatim in every alert.
nextStepNoWhat you intend to look at when it fires (your words).
thesisIdYesThesis ID
invalidationNoAny one of these happening marks the thesis challenged (review it). Optional. window_closes goes only here.
allowAlreadyMetNo
expectedRevisionYesThe currentRevision you read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.6/5.0
Behavior5/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 it: optimistic concurrency (409 REVISION_CONFLICT), total-replacement semantics for steps/invalidation, re-arming of changed conditions ("nothing before counts"), and the 422 CANNOT_OCCUR / ALREADY_MET refusal set scoped to changed conditions only. dryRun is documented as writing nothing, which is exactly the kind of safety fact an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The opening is well front-loaded, but the body is a dense single block mixing error codes, replacement rules, and dryRun behavior, and the trailing enumeration of condition types largely duplicates what it already points to in dwlf_list_thesis_condition_types.

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 9-parameter mutation tool with nested condition unions, no output schema, and no annotations, the description covers concurrency, replacement semantics, refusals, and the dryRun workflow, and it routes to dwlf_list_thesis_condition_types for the full condition catalog. It does not describe what a successful save returns.

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 89%, so the schema already documents most fields, but the description adds non-obvious semantics absent from the schema: steps/invalidation are wholesale replacements, dryRun judges only the conditions listed in `changed`, and expectedRevision is tied to the currentRevision the agent read.

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?

"Change a thesis: writes a new revision and keeps the earlier ones" gives a specific verb (change), the resource (thesis), and the distinguishing behavior (versioned revision rather than overwrite), which separates it from dwlf_create_thesis without needing the 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?

It states the required calling protocol explicitly: send expectedRevision from the read, send only the fields to change, and run dryRun: true first and show the result to the user. It also states the exclusion for window_closes (invalidation only, only when the user wants the thesis voided by time).

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