Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_create_custom_event

Create a custom event from JSON, then activate its symbols so the event can fire and backtests return trades.

Instructions

⚠️ Create a new custom event. CRITICAL WORKFLOW: 1) Create event (saving compiles it; a graph that does not compile is refused with 400) → 2) MUST call dwlf_activate_event_symbols (or event will NEVER fire!) → 3) Trigger evaluation. Without step 2, backtests return 0 trades. The event exists but is invisible to the evaluation engine until symbols are activated. Always activate symbols immediately after creation.

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": {
      "name": "<name>",
      "bodyJson": "<bodyJson>"
    },
    "name": "dwlf_create_custom_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesEvent name
bodyJsonYesFull event definition body as JSON string (conditions, parameters). Parse before sending.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and delivers real behavioral detail: saving compiles the event, an uncompilable graph is refused with HTTP 400, and the event stays invisible to the evaluation engine until symbols are activated. It omits anything about permissions or what the response returns (e.g., an identifier needed for the activation step), which is the one remaining gap.

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?

The warning emoji and 'CRITICAL WORKFLOW' framing front-load the most important constraint, and the numbered steps scan cleanly. The closing sentence ('Always activate symbols immediately after creation') largely restates step 2, a minor redundancy that keeps it from a 5.

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 mutation tool with no annotations and no output schema, the description covers the critical failure modes and the mandatory follow-up call, which is the highest-risk part of using it. It does not say what the call returns or how to obtain the handle needed for step 2, leaving a small but real gap for a multi-step workflow.

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% and both parameters are documented in-schema, including the note to parse bodyJson before sending. The description adds no further semantics about the required name or the structure of bodyJson, so the schema does the heavy lifting and baseline 3 applies.

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?

The description opens with a specific verb and resource ('Create a new custom event'), and the workflow section makes clear it is the creation step that pairs with dwlf_activate_event_symbols and the evaluation tool. It does not explicitly contrast itself with siblings like dwlf_compile_custom_event or dwlf_update_custom_event, so it falls short of full sibling differentiation.

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 gives an explicit ordered workflow (create → activate symbols → trigger evaluation) and names the exact tool to call next. It also states the negative consequence of skipping a step ('event will NEVER fire', 'backtests return 0 trades'), which is precisely the when-and-why guidance an agent needs.

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