Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

event_replace

Replace an event, group, variable, condition, or action with a new JSON spec while keeping its original position in a Construct 2 project.

Instructions

Replace an event/group/variable (or a single condition/action) with a new spec, keeping its position. Tip: event_get, change the JSON, event_replace.

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": {
      "project": "<project>",
      "sheet": "<sheet>",
      "sid": "<sid>",
      "item": "<item>"
    },
    "name": "event_replace"
  }
}

Input Schema

NameRequiredDescriptionDefault
sidYes
itemYes
sheetYes
projectYes
editor_syncNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It discloses the important behavior that the replacement keeps the original position, and 'replace' implies mutation of existing data. But it does not cover destructive implications, permissions, failure behavior, or whether the operation is reversible, leaving meaningful gaps for a write tool.

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 two tight sentences with no wasted words. The core purpose is front-loaded, and the tip follows immediately as actionable context.

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?

The tool is a mutation with no annotations, no output schema, five parameters at 0% schema coverage, and a nested free-form item object. Given that complexity, the definition leaves out critical context such as what project, sheet, and sid identify, what editor_sync does, and how the item spec should be structured. It is not complete enough for an agent to call confidently in non-trivial cases.

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 five parameters, and the nested item object has no documented structure. The description only loosely indicates that item is the new spec for the event/group/variable/condition/action. It adds no meaning for project, sheet, sid, editor_sync, or the expected shape of item, so it does not compensate for the coverage gap.

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 (replace) and enumerates the exact resources it can target: event, group, variable, condition, or action. It also clarifies that the replacement preserves the item's position. It does not explicitly distinguish itself from siblings such as event_move or events_delete, but the operation is clear enough to identify 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?

The included tip gives a concrete edit workflow: read with event_get, modify the JSON, then call event_replace. That is useful usage context for an editing tool. However, it does not state when NOT to use it, nor does it explicitly compare it to alternatives like events_delete or events_add.

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