Skip to main content
Glama

wt_add_unit

Adds a unit to a War Thunder CDK mission file using unit type, vehicle ID, loadout, coordinates, and optional properties; can set it as the player's wing.

Instructions

Add a unit (unit_type from wt_list_catalog('units'), e.g. armada=aircraft, tankModels=ground, ships...). unit_class is the vehicle id (e.g. 'p-39n'), weapons the loadout id (e.g. 'p_39_n_default'). props: extra values for the unit's props block (name->value; type inferred: bool/int/float/str). set_as_player makes it mission_settings.player.wing.

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>",
      "unit_type": "<unit_type>",
      "name": "<name>",
      "x": "<x>",
      "y": "<y>",
      "z": "<z>"
    },
    "name": "wt_add_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
zYes
armyNo
nameYes
pathYes
countNo
propsNo
weaponsNo
unit_typeYes
unit_classNo
heading_degNo
set_as_playerNo

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 at all, the description carries the full disclosure burden. It does add real behavioral detail beyond the schema — that set_as_player writes into mission_settings.player.wing and that props value types are inferred — but it says nothing about whether the mission file is mutated on disk, what happens on duplicate unit names, or what errors occur for invalid unit_class/weapons ids.

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?

A single dense paragraph with no filler; each parenthetical example earns its place. It is slightly cramped and would read better with the catalog hint front-loaded before the example list, but nothing is wasted.

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?

For a 13-parameter mutation tool with zero annotations, the definition is only partially complete: the unit-identity parameters are well covered and an output schema exists to cover return values, but required positional and file-path parameters remain opaque, leaving an agent likely to guess at coordinates and the meaning of army/count.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 13 parameters, so the description must compensate for all of them and it only covers five (unit_type, unit_class, weapons, props, set_as_player). The six required parameters 'path', 'name', 'x', 'y', 'z' and the optional 'army', 'count', 'heading_deg' are left completely unexplained — notably the coordinate frame and units and what 'army'/'count' control.

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 states a specific verb+resource ('Add a unit') and immediately grounds it with the catalog source for unit_type and concrete examples for unit_class and weapons. It indirectly differentiates itself from siblings by pointing at wt_list_catalog('units') as the source of valid types, though it does not explicitly contrast with wt_add_squad or wt_add_player_wings.

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

Usage Guidelines3/5

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

There is useful procedural guidance (fetch unit_type from wt_list_catalog('units'), weapons takes a loadout id), and set_as_player's effect is spelled out. However, there is no statement of when to prefer this tool over wt_add_squad or wt_add_player_wings, nor any prerequisite such as an existing/open mission at 'path'.

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