Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_preflight_custom_event

Validate a custom event graph before saving to preview its execution tier, complexity score, policy limits, errors, and suggested fixes.

Instructions

Validate a custom event graph WITHOUT saving it. Gives the execution tier (fast/async/reject), complexity score with breakdown, graph metrics, plan policy limits, errors, warnings, and suggested fixes. Call this BEFORE creating or updating a complex event to check whether it is accepted and which execution tier it lands in.

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

Input Schema

NameRequiredDescriptionDefault
bodyJsonYesFull event body as JSON string with name, visual (nodes + edges), and optionally description, metadata, version

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.3/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 declares the dry-run/no-persistence behavior, the three possible execution tiers (fast/async/reject), and that errors, warnings, and suggested fixes come back. It leaves out auth/permission requirements and any rate or size limits, which matters for a validation tool that consumes a full event body.

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 sentences, each earning its place: the first states the action and the non-persistence constraint, the second enumerates the return payload, the third gives the call-ordering rule. The most decision-relevant fact ("WITHOUT saving it") is front-loaded.

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?

For a one-parameter, read-only validation tool with no output schema, the description covers everything needed: purpose, safety profile, when to invoke it, and a list of what the response contains. Nothing required for a correct call 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?

There is a single parameter and the schema description coverage is 100%, so bodyJson's contents (name, visual nodes+edges, optional description/metadata/version) are already documented in structured data. The description adds no format or constraint detail beyond that, so the baseline of 3 applies.

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?

"Validate a custom event graph WITHOUT saving it" gives a specific verb (validate), a specific resource (custom event graph), and an explicit side-effect scope (no persistence), which cleanly separates it from dwlf_create_custom_event and dwlf_update_custom_event. The following sentence enumerates what it returns, so an agent knows the tool's output shape without opening anything else.

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

Usage Guidelines4/5

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

"Call this BEFORE creating or updating a complex event" states a clear prerequisite ordering and implicitly routes the agent away from the mutating siblings. It does not name those siblings explicitly or state when to skip preflight (e.g. simple events), which is why it falls short of a 5.

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