Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_compile_custom_event

Recompiles a legacy custom event to resolve 422 EVENT_NOT_COMPILED errors when activating symbols, ensuring its saved definition matches what actually runs.

Instructions

Recompile a LEGACY custom event. Saving already compiles: dwlf_create_custom_event, and every dwlf_update_custom_event that changes the definition, compile in the same request and refuse (400) a graph that does not compile, so this is needed only when activating symbols answers 422 EVENT_NOT_COMPILED (an older event never compiled, or one whose saved definition is not what would run). A 409 means the event changed while it compiled: reload it and retry.

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>"
    },
    "name": "dwlf_compile_custom_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventIdYesCustom event ID to compile

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 supplied, the description carries the full burden and does so well: it discloses that create/update reject non-compiling graphs with 400, that this call is gated on a 422 signal, and that a 409 means a concurrent change requiring reload and retry. That error-code and retry semantics go well beyond the name.

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 key constraint (legacy-only, triggered by 422) is front-loaded and every clause carries information. The single long sentence with nested parentheticals is dense and takes a second pass to parse, which is the only cost.

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 mutation with no output schema, everything an agent needs is present: the trigger condition, the alternative paths, the error responses, and the recovery action for a conflict. Nothing material 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?

Only one parameter exists and schema description coverage is 100% ('Custom event ID to compile'), so the schema already does the work. The description adds no format, source, or lookup guidance for eventId beyond what the schema states, making the 3 baseline correct.

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 and resource ('Recompile a LEGACY custom event') and immediately contrasts it with dwlf_create_custom_event and dwlf_update_custom_event, which compile implicitly. An agent can tell exactly what this does and how it differs from the sibling save operations.

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?

Explicitly narrows usage: only when activating symbols answers 422 EVENT_NOT_COMPILED, or when the saved definition is not what would run. It also names the alternatives (create/update) and the condition under which they are sufficient instead.

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