Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

undo

Rolls back the most recent edit in the editor and returns the resulting rollback/redo state to confirm whether the action succeeded.

Instructions

Undo the last edit in the editor. Returns whether anything was undone plus the resulting { canUndo, canRedo } state. Use this to roll back a change you just made. When NOT to use: to switch scenes (use load_scene).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, indicating a mutating but non-destructive operation. The description adds meaningful behavior beyond that: it returns whether anything was undone and the resulting { canUndo, canRedo } state. This helps the agent understand no-op situations and stack state without contradicting annotations.

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?

Four short sentences, all carrying distinct value: action, return behavior, usage, and an exclusion with alternative. Front-loaded with the core purpose and no filler or redundancy.

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?

For a parameterless tool with no output schema, the description covers all necessary aspects: what it does, what it returns, when to use it, and when not to use it. An agent can invoke it correctly without needing any additional information.

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?

There are zero parameters, so schema coverage is trivially 100%. Baseline for 0-param tools is 4, and the description appropriately focuses on return behavior rather than parameter details. Nothing further is needed.

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 states a specific action and resource: 'Undo the last edit in the editor.' It also includes a clear when-not-to-use with a named alternative (load_scene), which differentiates it from at least one sibling. It does not explicitly contrast with redo, but the core operation is unambiguous from the name and phrasing.

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?

Explicit when-to-use is given: 'Use this to roll back a change you just made.' An explicit when-not-to-use is also provided: 'to switch scenes (use load_scene).' This fully satisfies the highest bar for usage guidance, including an alternative.

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/playcanvas/editor-mcp-server'

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