Skip to main content
Glama
Redseb
by Redseb

insert_event_commands

Insert pre-built event command sequences into RPG Maker MZ command lists, targeting map events, common events, or troop pages, with validation to prevent structural errors.

Instructions

Insert a pre-built sequence of event commands (from the build_* builders) into any of the three command lists an MZ project has — the mutating companion to the read-only builders. Splices before the list’s end marker (or at position). target "map_event" (the default) needs mapId + eventId + pageIndex; "common_event" needs commonEventId; "troop_page" needs troopId + pageIndex. The resulting list is validated before writing: a structural problem (wrong parameter count for a command code, a list left unterminated) refuses the write and saves nothing — pass force: true to override. Advisory findings (unrecognized code, over-long text line) are returned as warnings and never block. Returns { target, id, listLength, listCodes, warnings? } — the resulting list as its length and its command CODES, which is what you verify a splice against; pass verbose: true for the full list with parameters, or read it back with get_map_event.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block regardless.
mapIdNotarget "map_event": the map id
dryRunNoPreview only: return a diff of what would change without writing to disk.
targetNoWhich command list to insert into (default map_event)
eventIdNotarget "map_event": the event id
troopIdNotarget "troop_page": the troop id
verboseNoEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/conditions you would only re-read. Read the full record with the matching get_* tool.
commandsYesThe event commands to insert (e.g. the `commands` from a build_* tool)
positionNoInsertion index; defaults to the end of the list
pageIndexNotarget "map_event"/"troop_page": zero-based page index
commonEventIdNotarget "common_event": the common event id
Behavior5/5

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

With no annotations provided, the description carries full burden. It discloses validation-before-write, refusal on structural problems, the force override, advisory warnings never blocking, and the exact return shape. It even explains the verbose flag and how to read the full result back, which goes well beyond basic mutation tool behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is information-dense but every sentence adds value: purpose, target requirements, validation behavior, force override, warnings, return shape, and verbose option. It is organized logically from action to outcome, with no filler or repetition.

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?

Given no output schema, the description fully explains the return value shape and how to verify a splice. It covers all key contexts: targets, position, validation, failure modes, override, advisory findings, and verbosity. The only minor omission (dryRun) is already covered in the parameter schema, and the description even points to get_map_event as a read-back path.

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

Parameters5/5

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

Although schema coverage is 100%, the description adds meaning by grouping parameters per target (mapId+eventId+pageIndex vs commonEventId vs troopId+pageIndex), explaining that commands should come from build_* builders, and clarifying position default and force/verbose effects. This significantly reduces guesswork about how parameters interrelate.

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?

The description opens with a specific action: "Insert a pre-built sequence of event commands ... into any of the three command lists an MZ project has". It distinguishes itself from the read-only build_* tools and clearly states its mutating nature. The target-specific breakdown (map_event, common_event, troop_page) removes ambiguity about scope.

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?

It explicitly positions this as the "mutating companion to the read-only builders" and tells users to pass commands from build_* tools. It also clarifies target-specific required IDs. However, it does not explicitly mention the alternative add_event_command for single-command insertion or state when not to use this tool, only implying it through "sequence of event commands".

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Redseb/rpgmaker-mz-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server