Skip to main content
Glama
okenjioxx

Roblox Executor MCP Server

by okenjioxx

Clone a live Instance

clone-instance
Destructive

Duplicate a live Roblox Instance and all descendants, optionally parenting the copy into the game tree for debugging, templates, or extra item copies.

Instructions

WRITES LIVE GAME STATE. Resolve a Luau expression to a source Instance, deep-copy it via source:Clone() (which duplicates the instance and all of its descendants), and optionally parent the clone into the game tree. Useful while debugging for duplicating a template Part/Model/GUI, spawning extra copies of an item, or capturing a snapshot of a subtree before mutating the original. The clone starts parentless; it is parented LAST and only if parentPath is provided. NOTE: :Clone() only succeeds when the source's Archivable property is true — a clone of a non-Archivable instance returns nil and yields a clean error. WARNING: a parented clone immediately affects the running game and may replicate. Returns { Source, Clone, Parented, ok } or { error }. Signature: { instancePath: string, parentPath: string?, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Produces: created-handle. Verify with: get-instance-properties. Safety: MUTATING; writes live game/client state. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
parentPathNoOptional Luau expression resolving to the Instance that should become the clone's Parent, e.g. 'game.Workspace' or 'game.Players.LocalPlayer.PlayerGui'. Evaluated as `return <parentPath>`. Set after the clone is made. Omit to leave the clone parentless (it still exists in memory).
instancePathYesLuau expression resolving to the source Instance to clone, e.g. 'game.ReplicatedStorage.Templates.Coin', 'game.Workspace.Model', or 'game.Players.LocalPlayer.PlayerGui.Main'. Evaluated as `return <instancePath>`.
threadContextNoOptional Roblox thread identity for this call; omit it to use the server default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0-spies.2

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond annotations: the clone starts parentless and is parented LAST only if parentPath is given, :Clone() returns nil on non-Archivable sources, and a parented clone immediately affects the running game and may replicate. These are rich behavioral disclosures the destructiveHint/readOnlyHint flags alone would not convey.

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?

Front-loads the critical warning (WRITES LIVE GAME STATE) and proceeds through mechanism, use cases, caveats, return shape, and metadata. Dense and largely waste-free, though the signature/phase/requires metadata lines make it longer than strictly necessary.

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?

No output schema exists, but the description supplies the return shape ({ Source, Clone, Parented, ok } or { error }), failure behavior, prerequisites, and a verification tool (get-instance-properties). Nothing an agent needs to call it correctly is missing.

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 100%, so the schema already documents all three parameters in detail. The description adds minor sequencing context (parenting happens after cloning, threadContext defaults to server), but mostly restates what the schema provides, so the baseline 3 applies.

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?

States a specific verb and resource (deep-copy an Instance), explains the exact mechanism (resolve a Luau expression, source:Clone() duplicates the instance and all descendants, optionally parent the clone), and is clearly distinguishable from siblings like create-instance and destroy-instance.

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?

Gives concrete when-to-use scenarios (duplicating a template Part/Model/GUI, spawning extra copies, snapshotting a subtree before mutating) and states prerequisites (active-client, resolved-target, explicit-mutation-approval). It does not explicitly name a sibling alternative, so it falls short of a 5.

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

Deploy Server

Other Tools