Skip to main content
Glama

wt_add_trigger

Adds a validated trigger to a War Thunder CDK mission, defining events, conditions, and actions with schema-checked parameters and defaults.

Instructions

Add a trigger. events/conditions/actions are lists of {"type": , "params": {...}}; params are validated against the scheme (unknown names / bad enum values are rejected, defaults filled in). If events is empty, periodicEvent(1s) is used. Example action: {"type":"missionMarkAsWaypoint","params":{"target":"waypoint01","visible":true,"primary":true}}. actions_type: PERFORM_ONE_BY_ONE | PERFORM_ALL ; conditions_type: ALL | ANY.

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": {
      "path": "<path>",
      "name": "<name>"
    },
    "name": "wt_add_trigger"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
pathYes
eventsNo
actionsNo
enabledNo
replaceNo
commentsNo
conditionsNo
actions_typeNoPERFORM_ONE_BY_ONE
conditions_typeNoALL
enable_after_completeNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose real behavior: params are validated against the scheme, unknown names and bad enum values are rejected, defaults are filled in, and empty events falls back to periodicEvent(1s). It says nothing about what replace=true does to an existing trigger, whether the write is destructive, or what permissions/context are required.

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?

Dense and front-loaded: purpose first, then payload schema, then a concrete example, then the mode flags. The concrete action example earns its space by showing the exact object shape, though the mid-sentence line break and the compressed final clause are slightly harder to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values need not be described, and the payload semantics are well covered. For an 11-parameter mutation tool with zero annotations, however, key facts are missing: what path identifies, what replace does to an existing trigger, and what enabled/enable_after_complete control.

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 0% across 11 parameters, so the description has to compensate. It does add genuine meaning for events/conditions/actions structure and clarifies the allowed values of actions_type and conditions_type (which the schema lists only as bare defaults), but leaves name, path, enabled, replace, comments, and enable_after_complete entirely unexplained.

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+resource ("Add a trigger") and immediately explains the payload shape (events/conditions/actions as {type, params} objects). It does not differentiate itself from siblings like wt_add_objective or wt_add_area, but the resource noun is distinct enough that an agent can identify it.

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

Usage Guidelines2/5

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

There is no explicit statement of when to use this versus the other wt_add_* tools, and no stated prerequisites (e.g. that path must reference an existing block/mission, or that catalog names should be discovered via wt_get_scheme/wt_list_catalog). The note about params being validated against the scheme is an implicit pointer, but it is framed as a validation rule, not usage guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.