Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

hard_reset_checkpoint

DestructiveIdempotent

Reset a branch to a specified checkpoint and permanently erase all later checkpoints. Use to discard history irreversibly; for reversible rollbacks, use restore_checkpoint instead.

Instructions

DESTRUCTIVE: reset the branch head back to a checkpoint and PERMANENTLY ERASE every checkpoint created after it. Cannot be undone. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status. When NOT to use: to roll back working state while keeping history (use restore_checkpoint).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
branchIdNoBranch to hard reset (defaults to the current branch)
checkpointIdYesId of the checkpoint to hard reset to (from list_checkpoints); all later checkpoints are erased
Behavior5/5

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

The description discloses key behavioral traits beyond the destructiveHint annotation: irreversible erasure, editor reload, waiting for reconnect, and returning vcs_status. It does not contradict annotations; the idempotentHint and destructiveHint are consistent with a reset that can be repeated and has destructive side effects.

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?

Every sentence earns its place: the destructive warning is front-loaded, key side effects are stated compactly, the return value is noted, and the alternative is given without extra prose. The description is dense but highly readable.

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 destructive, editor-reloading operation with no output schema, the description covers the action, the irreversibility, the side effect on the editor, the return value, and the alternative tool. An agent has enough information to decide when to call this tool and what to expect afterward.

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 both branchId and checkpointId. The description reinforces the meaning of checkpointId indirectly by explaining that later checkpoints are erased, but it does not add new parameter-level detail beyond the schema, so a baseline of 3 is appropriate.

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: reset the branch head back to a checkpoint, and clearly specifies the destructive consequence: permanently erasing every later checkpoint. It also distinguishes itself from restore_checkpoint, which is a sibling with a similar purpose but a different use case.

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?

Explicitly provides a 'When NOT to use' condition and names the alternative restore_checkpoint for rolling back working state while keeping history. This gives an agent clear routing guidance beyond mere capability description.

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