Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_update_custom_event

Update an existing custom event with partial fields; set notifyOnFire to true to surface future fires in notifications, and compile visual or condition changes in the same request.

Instructions

Update an existing custom event. Accepts any subset of {name, description, visual, metadata, version, notifyOnFire} via bodyJson. Most common use: flip notifyOnFire to true after creation so future fires surface in dwlf_get_custom_event_notifications. A change to visual or a condition compiles in the same request (a graph that does not compile is refused with 400): no separate compile call is needed.

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

Input Schema

NameRequiredDescriptionDefault
eventIdYesCustom event ID to update
bodyJsonYesPartial update body as JSON string. Any subset of name, description, visual, metadata, version, notifyOnFire.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.2/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 meaningful work: it establishes partial-update semantics (any subset), discloses a side effect (compilation happens inline), and names a concrete failure mode (non-compiling graph refused with 400). Gaps remain around permissions, reversibility of notifyOnFire, and version-conflict behavior, which matter for a mutation tool.

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, front-loaded with the operation, then the common use case, then the compile side effect. Nothing is redundant and each sentence adds a fact an agent would otherwise have to discover (subset semantics, recommended workflow, 400 behavior).

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 two-parameter mutation with fully described schema and no output schema, the definition covers what is needed to call it correctly, including the surprising compile side effect. It stops short of stating what a successful update returns or how a missing/invalid eventId is reported, which would round out the contract.

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 both parameters are already documented at baseline. The description reinforces the accepted field set and clarifies that bodyJson is a partial-subset JSON string rather than a full replacement body, which is a genuinely useful nuance. However, it also references "a condition" that is not in the schema's enumerated field list, adding slight ambiguity instead of resolving it.

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?

The description opens with a specific verb plus resource ("Update an existing custom event") and immediately scopes the mutation to a partial body of named fields. It also implicitly separates itself from dwlf_compile_custom_event by stating that visual/condition changes compile in the same request, so an agent can distinguish the two 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 Guidelines4/5

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

It gives a concrete primary use case (flipping notifyOnFire to true after creation) and points at the downstream tool where that pays off, dwlf_get_custom_event_notifications. It also tells the agent when a separate compile call is unnecessary. What it lacks is an explicit boundary such as "use dwlf_create_custom_event for new events" or "use dwlf_compile_custom_event when you only want to validate."

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