Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

events_add

Insert events, groups, variables, comments, or includes into a Construct 2 event sheet, positioning them at the end, under a parent, or next to a specific item.

Instructions

Insert events, groups, variables, comments or includes. Without a position they go to the end of the sheet; parent_sid puts them as sub-events of an event/group; after_sid/before_sid places them next to an item. Item shapes: {"conditions": [...], "actions": [...], "sub_events": [...], "or": false, "disabled": false} {"type": "group", "title": "...", "description": "", "active": true, "events": [...]} {"type": "variable", "name": "Score", "var_type": "number|text|boolean", "value": 0, "constant": false, "static": false} {"type": "comment", "text": "..."} {"type": "include", "sheet": "Common"} A condition/action: {"object": "Player", "behavior": "Platform"?, "ace": "Is on floor", "params": [...] or {"Name": value}, "inverted": false}. Returns the sheet as text with the new sids.

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>",
      "items": "<items>"
    },
    "name": "events_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
indexNo
itemsYes
sheetYes
projectYes
after_sidNo
before_sidNo
parent_sidNo
editor_syncNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 disclose meaningful behavior: unspecified positions append to the end of the sheet, parent_sid nests items, and the call returns the sheet as text including the newly assigned sids. It omits whether conflicts between index, parent_sid and before/after_sid are resolved or rejected, and says nothing about editor/permission requirements or error behavior.

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?

Purpose and placement semantics are front-loaded in the first three lines, and the item-shape examples are formatted as a compact reference block rather than prose. The shape listing is dense but every entry illustrates a distinct accepted input, so little could be removed without loss.

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?

For an eight-parameter mutation tool with no annotations and no output schema, the definition does substantial work: it documents all item variants and describes the return value explicitly. The remaining gaps are the unexplained index and editor_sync parameters and the lack of any statement about precedence when multiple placement parameters are supplied together.

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 description coverage is 0%, so the description must compensate, and it does well for the hardest part by giving concrete shapes for each item variant and explaining parent_sid/after_sid/before_sid placement. It says nothing about project, sheet, index or editor_sync, leaving half of the eight parameters undocumented in both schema and description.

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 opens with a specific verb ("Insert") and enumerates exactly which resource types it accepts (events, groups, variables, comments, includes), which implicitly separates it from sibling mutators like event_move, event_replace and events_delete. It does not name any sibling explicitly, so routing still relies on the agent inferring intent from the verb.

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?

Placement rules are clearly stated (default append, parent_sid for nesting, after_sid/before_sid for adjacency), which tells the agent how to use parameters in different situations. However, there is no guidance on when to choose this tool over event_move/event_replace, and no prerequisites such as whether the editor or sheet must be open first.

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