Skip to main content
Glama
roblox-studio
by nardjay

Create instance

create_instance

Creates a new Roblox instance under a specified parent and optionally sets its properties and attributes in one call—ideal for parts, UI elements, scripts, and folders.

Instructions

Create a new instance of a ClassName under a parent and optionally set properties in the same call. Typical use: Part in Workspace, TextLabel in a ScreenGui, Script with a Source property, Folder for grouping. Property values use the same tagged JSON that get_instance returns; plain strings are accepted for enums ("Neon"), Color3 ("#ff8800" or {"__type":"Color3",...}) and instance references.

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": {
      "className": "<className>"
    },
    "name": "create_instance"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoInstance name. Defaults to the ClassName.
parentNoInstance path. Accepts "Workspace.Model.Part", "game.Workspace.Model.Part" or "game.Workspace[\"My Part\"].Model". Use "game" or omit for the DataModel root. Default "Workspace".
classNameYesRoblox ClassName, e.g. "Part", "Model", "Script", "TextLabel".
attributesNoAttribute map applied after creation (string/number/boolean values).
propertiesNoProperty map applied after creation. Unknown or read-only properties are reported, not fatal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the mutation profile is covered. The description adds a genuinely useful behavioral note about accepted value encodings (tagged JSON, plain strings for enums, hex Color3, instance references), but says nothing about the return value or failure modes, which matters because there is no output schema.

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 core action is front-loaded in the first clause, and every sentence carries information. The four-item example list is illustrative but slightly padded; the parent-path syntax detail is arguably redundant with the schema, though it does not obscure the primary instruction.

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 mutation tool with nested object parameters and no output schema, the description omits what the call returns (created instance reference/path), what happens when the parent path is invalid, and whether repeated calls can produce duplicates. It is adequate to invoke correctly but leaves return-value and error behavior to inference.

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, and the description goes beyond it by explaining that property values use the same tagged JSON that get_instance returns and that plain strings are accepted for enums, Color3 hex, and instance references — format information the generic additionalProperties `properties` object cannot convey. The path syntax for `parent` is already covered by the schema, so it isn't repeated.

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 ("Create a new instance of a ClassName under a parent") and adds a differentiating clause: properties can be set in the same call, which separates it from a create-then-set_properties flow and from siblings like clone_instance or insert_asset. Concrete examples (Part in Workspace, TextLabel in a ScreenGui) make the scope unambiguous.

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 "Typical use" list gives clear positive guidance about when this tool applies, and "optionally set properties in the same call" implies the alternative of creating then calling set_properties. It stops short of explicit when-not-to-use or prerequisite statements (e.g., that the parent must already exist), so it is clear context without exclusions.

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