Skip to main content
Glama
pz-ai-director
by Aki-shin

spawn_vehicle

Spawn any vanilla or modded vehicle in Project Zomboid, with options to create keys for players or gloveboxes and add trunk items.

Instructions

Spawn any vanilla or modded vehicle (e.g. 'Base.StepVan', 'Base.VanAmbulance', 'Base.PickUpVanLightsPolice',
'Base.SUV', 'Base.OffRoad', or modded RV/bus IDs found via `search_game_catalog`).
- If `key_to_player=False` and `create_key=True`, the vehicle key is placed inside the GloveBox!
- `trunk_items`: optional list of `{"type": "Base.PetrolCan", "count": 2}` placed in the trunk!

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "spawn_vehicle"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
offset_xNo
offset_yNo
conditionNosurvivor
directionNoE
create_keyNo
trunk_itemsNo
fuel_percentNo
vehicle_typeNoBase.StepVan
key_to_playerNo
target_playerNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose two non-obvious side effects: the key landing in the GloveBox when `create_key=True` and `key_to_player=False`, and trunk contents being populated. It says nothing about where the vehicle appears relative to the caller, what `condition` and `fuel_percent` do to the spawned entity, whether spawning fails in an occupied cell, or whether `target_player` requires an existing player.

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 purpose statement is front-loaded, and the two bullet points flag high-value gotchas without padding. The exclamation marks are noise but the content is tight and earns its space.

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

Completeness2/5

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

This is a 12-parameter world-mutation tool with no annotations and 0% schema coverage, and the description covers roughly a quarter of the surface. An output schema exists so return values need no explanation, but the coordinate model, condition/fuel effects, and player targeting remain undocumented for a tool that materially alters game state.

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 12 parameters, so the description must compensate and does so for only three: `vehicle_type` (ID format and examples), `trunk_items` (element shape with a concrete example), and the `create_key`/`key_to_player` interaction. The remaining nine – `x`, `y`, `offset_x`, `offset_y`, `condition`, `direction`, `fuel_percent`, `target_player`, and the enums' meaning – get no explanation at all.

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?

Opens with a specific verb+resource ('Spawn any vanilla or modded vehicle') and immediately grounds it with concrete ID examples ('Base.StepVan', 'Base.VanAmbulance'), making it unmistakable which sibling spawn_* tool this is. The pointer to `search_game_catalog` for modded IDs further disambiguates it from catalog-search tools.

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 one useful routing hint – modded RV/bus IDs should be found via `search_game_catalog` first – which tells the agent how to obtain a valid `vehicle_type`. However, there is no guidance on when to supply absolute `x`/`y` versus the `offset_x`/`offset_y` defaults, or when to use `target_player` rather than the default spawn location.

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