Skip to main content
Glama

create_prefab

Destructive

Save a scene object as a prefab file and link the object to it, with optional overwrite for existing prefab files.

Instructions

Save a scene object as a prefab file and link the object to it.

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": {
      "target": "<target>",
      "path": "<path>"
    },
    "name": "create_prefab"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYese.g. Assets/Prefabs/Enemy.prefab
targetYes
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=false, so the safety profile is known. The description adds real value by disclosing the linking side effect on the source object, but it never explains the destructive path — what happens if the prefab already exists, or what the overwrite flag destroys.

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?

A single well-formed sentence with the primary action front-loaded and no filler. It is efficient, though the brevity leaves several substantive gaps unfilled rather than being tight-but-complete.

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?

This is a destructive write tool with an undocumented overwrite flag and no output schema, so the description carries most of the burden. It covers the happy path and the linking side effect but omits failure modes, overwrite behavior, and what the returned link/asset reference looks like.

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 coverage is only 33%: path has an example, while target and overwrite are undocumented. The description says nothing about any parameter, not even clarifying that target is the scene object to convert or what overwrite does to an existing prefab file.

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 names a specific verb and resource: 'Save a scene object as a prefab file' plus the side effect 'link the object to it'. This distinguishes it from create_object (creates a scene object) and save_scene (persists the scene), though it never names those siblings explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no mention of prerequisites such as the target needing to be a scene object or the parent folder existing. Nothing tells an agent how this differs from save_scene or create_object when deciding which call to make.

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