Skip to main content
Glama
Redseb
by Redseb

insert_event_commands

Insert pre-built event command sequences into map events, common events, or troop pages in RPG Maker MZ projects with validation before writing.

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, list, warnings? }.

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
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, the description carries the full burden and does so thoroughly. It discloses validation behavior (structural problems refuse the write, force override, advisory warnings never block), insertion position behavior (before end marker or at position), and the return shape. This is exceptional transparency for a mutating tool.

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 description is well-structured and front-loaded with the primary action. Several sentences carry dense but necessary details (validation, targeting, return shape). It is appropriately sized for a tool with 10 parameters and no annotations, though it is longer than strictly minimal.

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?

Given the tool's complexity (10 parameters, no output schema, no annotations), the description covers purpose, target-specific IDs, validation rules, and the return object. It does not mention dryRun, but the schema describes that parameter. Overall, it provides sufficient context for an agent to understand the tool's behavior.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by explaining target-dependent parameter combinations (map_event needs mapId+eventId+pageIndex, common_event needs commonEventId, troop_page needs troopId+pageIndex) and clarifies that commands come from build_* tools. This goes beyond the schema's individual parameter descriptions.

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 clearly states the tool inserts a pre-built sequence of event commands into MZ project command lists, naming the specific lists and mentioning it is the mutating companion to the read-only builders. It distinguishes from build_* tools but does not explicitly contrast with the sibling add_event_command, which appears to handle single command insertion.

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?

The description gives clear context: use this when you have commands from build_* tools and want to write them into a list, with target-specific parameter requirements. However, it does not state when NOT to use it (e.g., for a single command use add_event_command) or mention alternatives beyond the implicit builder contrast.

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