Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_cancel_backtest

Cancel a queued or running backtest by requestId with best-effort termination that preserves the audit trail.

Instructions

Cancel a queued or running backtest by requestId. Pending requests cancel cleanly (worker skips). Running requests get a best-effort cancel — result is marked cancelled but mid-run computation isn't interrupted; the response's bestEffort: true flag indicates this. Terminal states (completed / failed / already-cancelled) return 409 with the actual status. Use this rather than dwlf_delete_backtest when you want to halt without scrubbing the audit trail.

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": {
      "requestId": "<requestId>"
    },
    "name": "dwlf_cancel_backtest"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestIdYesBacktest request ID to cancel

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?

No annotations exist, so the description carries the full burden and does: pending vs running cancellation semantics, the best-effort caveat that mid-run computation is not interrupted, the `bestEffort: true` response flag, and the 409-with-status behavior. An agent knows exactly what it gets and when it fails.

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 purpose, then progressively deeper behavioral detail, ending with the sibling routing rule. Dense but each sentence earns its place; only slight cost is that the 409 and best-effort details sit in a single unbroken 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?

A one-parameter mutation with no annotations and no output schema, yet the description explains both the success flag and the failure mode an agent will actually encounter. Nothing needed 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

One parameter with 100% schema description coverage ('Backtest request ID to cancel'); the description repeats it as 'by requestId' without adding format, sourcing, or validation guidance. With the schema already documenting the parameter, the baseline of 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 ('Cancel'), the resource ('backtest'), the accepted states ('queued or running'), and the identifier ('requestId'). It also names the sibling it must not be confused with, so an agent can select it 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?

Explicit routing rule: 'Use this rather than `dwlf_delete_backtest` when you want to halt without scrubbing the audit trail.' It also tells the agent what happens on terminal states (409 with the actual status), covering the when-not case.

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