Skip to main content
Glama

assets-prefab-close

Close the currently opened prefab in Unity Editor, saving or discarding changes as needed.

Instructions

Close currently opened prefab. Use it when you are in prefab editing mode in Unity Editor. Use 'assets-prefab-open' tool to open a prefab first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
saveNoTrue to save prefab. False to discard changes.true
Behavior3/5

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

No annotations are provided, so the description carries full burden. It mentions the context ('prefab editing mode') and prerequisite, but lacks details on permissions, error conditions, or what happens if no prefab is open. It partially compensates by hinting at the 'save' parameter's effect.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action, no wasted words. Every sentence provides essential context or guidance, making it efficient and well-structured.

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?

Given 1 parameter with full schema coverage and no output schema, the description adequately covers purpose and usage. It could improve by mentioning potential errors or return values, but it's largely complete for this tool's complexity.

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 description coverage is 100%, so the baseline is 3. The description adds value by implying the parameter's purpose through context ('prefab editing mode'), though it doesn't explicitly detail the 'save' parameter. With 0 required parameters, this justifies a score above baseline.

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?

The description clearly states the specific action ('Close currently opened prefab') and resource ('prefab'), distinguishing it from siblings like 'assets-prefab-open' and 'assets-prefab-save' by focusing on exiting editing mode rather than opening or saving.

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

Usage Guidelines5/5

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

It explicitly states when to use ('when you are in prefab editing mode in Unity Editor') and provides a prerequisite ('Use assets-prefab-open tool to open a prefab first'), clearly differentiating it from alternatives by specifying the required context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/butterlatte-zhang/unity-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server