Skip to main content
Glama
construct2-mcp

construct2-mcp

by wjrosa

object_add_behavior

Adds a specified behavior to an object or family, with optional property overrides applied to every instance so you can customize behavior defaults during setup.

Instructions

Add a behavior (id or name: Platform, 8Direction, Bullet, Solid, Fade, Sine, ...) to an object or family. properties overrides defaults on every instance (see addon_info for names and options).

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>",
      "object": "<object>",
      "behavior": "<behavior>"
    },
    "name": "object_add_behavior"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
objectYes
projectYes
behaviorYes
propertiesNo
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?

No annotations are supplied, so the description carries the full burden. It does disclose an important side effect — `properties` overrides defaults 'on every instance' — which is genuine behavioral context an agent could not infer. However, nothing is said about whether the change is persisted, whether editor_sync is required to make it visible, error behavior for unknown behavior names, or what the call returns.

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?

Two tightly written sentences with the core action front-loaded and the enumeration placed inline where it is needed. The addon_info cross-reference is compact and useful; nothing is padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter mutation tool with no annotations and no output schema, the description covers the conceptual core but leaves gaps: the undocumented `name` and `editor_sync` parameters, persistence/sync behavior, and failure modes. It is adequate to start a call but not complete for confident invocation.

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% across 6 parameters, so the description must compensate. It partially does: it expands `behavior` with valid names and explains that `properties` is a per-instance override map keyed by addon_info names. But `name`, `editor_sync`, `project`, and `object` receive no semantic explanation at all, leaving four of six parameters entirely undocumented.

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?

States a specific verb and resource ('Add a behavior ... to an object or family') and enumerates concrete valid behavior names (Platform, 8Direction, Bullet, Solid, Fade, Sine), which removes ambiguity about what 'behavior' means in this domain. It is clearly distinct from siblings like object_add_instance_variable or object_add_frames, though it never names an alternative tool.

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?

Usage is implied by the verb and the enumeration — an agent knows to call this when an object needs a behavior. The one piece of real guidance is the pointer to addon_info for property names/options, which covers only a sub-step; there is no statement of when not to use this, prerequisites (e.g., object must already exist), or what happens if the behavior is already attached.

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