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

schedule_zone_trigger

Schedules deferred multi-action story encounters at any map coordinates; when a survivor enters the radius and the chunk loads, it executes configured actions and logs the trigger.

Instructions

Schedule a deferred multi-action story encounter at ANY `(x, y)` coordinates on the Kentucky map
(even miles away in unloaded chunks!). As soon as any survivor approaches within `radius` tiles (10..90)
and the chunk loads, Zomboid automatically executes `actions` and logs `zone_trigger_fired`.

Example `actions`:
[
  {"command": "spawn_vehicle", "args": {"vehicle_type": "Base.VanAmbulance", "x": 10615, "y": 10630, "condition": "wrecked"}},
  {"command": "spawn_items", "args": {"x": 10617, "y": 10630, "placement": "crate", "add_smoke": true, "items": [{"type": "Base.FirstAidKit_Military", "count": 2}]}},
  {"command": "spawn_horde", "args": {"x": 10620, "y": 10635, "count": 18, "outfit": "ArmyCamoGreen"}},
  {"command": "radio_broadcast", "args": {"text": "Внимание! Вы вышли к санитарному конвою! Вижу зелёный дым!"}}
]

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": {
      "name": "<name>",
      "x": "<x>",
      "y": "<y>",
      "actions": "<actions>"
    },
    "name": "schedule_zone_trigger"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
nameYes
radiusNo
actionsYes
trigger_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/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 well: it discloses deferred execution, the proximity-plus-chunk-load firing condition, the 10..90 radius bound, and that a `zone_trigger_fired` log entry is emitted. It omits whether triggers are one-shot or repeatable, whether they persist across saves, and what happens on duplicate names or trigger_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?

Front-loaded with the core behavior and firing condition before the example. The four-entry `actions` example is long but earns its place by demonstrating the otherwise undocumented nested command structure; a shorter example would have sufficed.

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?

An output schema exists, so return values need not be described, and the description covers the essential mechanics of a deferred trigger. The remaining gaps are the semantics of `name` and `trigger_id` and the trigger's lifecycle (one-shot vs persistent), which an agent would need before scheduling reliably.

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 coverage is 0%, so the description must compensate. It gives real meaning to x/y (any coordinates, even unloaded chunks), radius (10..90 tiles), and actions (a detailed worked example showing the command/args shape), but leaves `name` and `trigger_id` entirely unexplained, which is a meaningful gap for a 6-parameter tool.

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 ('Schedule a deferred multi-action story encounter') plus the scope ('at ANY (x, y) coordinates on the Kentucky map'), which cleanly separates it from immediate-effect siblings like spawn_zombie_horde and from remove_zone_trigger. An agent can identify the tool's role without opening the 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?

Explains the activation condition precisely: fires when any survivor comes within `radius` tiles and the chunk loads, and the word 'deferred' signals contrast with immediate spawn tools. It never explicitly names an alternative or a when-not-to-use case, so it stops short of full routing guidance.

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