Skip to main content
Glama

env_revert

Restore an environment to its clean snapshot, discarding all changes made since it was forked. Files written in the guest are lost, but it resumes from RAM in seconds rather than rebooting.

Instructions

Discard everything done inside an environment since it was forked, returning it to its clean snapshot. Files written in the guest are lost. Takes seconds, because the snapshot includes RAM and the machine resumes rather than reboots.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesname of the environment

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
logNo
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations provided, the description fully carries the burden of warning about destructive behavior. It explicitly states that files written in the guest are lost and that the operation discards everything since the fork, while also explaining the performance characteristics (fast because RAM snapshot resumes rather than reboots).

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?

The description is compact, with the core action front-loaded in the first sentence. Subsequent sentences add important side effects and performance context without redundancy or filler.

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 one-parameter destructive tool, the description covers what the tool does, what is lost, and why it is fast. An output schema exists, so return-value details are not required. No critical information is missing for an agent to select and invoke the tool correctly.

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?

The input schema already describes the single parameter as 'name of the environment' with 100% coverage. The description reinforces that the tool operates on an environment but does not add further details about name format, lookups, or edge cases. Baseline 3 is appropriate because the schema handles the parameter documentation.

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 uses a specific verb ('Discard') and clearly identifies the resource and scope: everything done in an environment since it was forked. It also clarifies the outcome ('returning it to its clean snapshot'), which separates it from sibling tools like env_restore that handle arbitrary snapshots.

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 description gives clear context for when to use this tool: when you want to reset an environment back to its fork state and lose all changes made inside it. It does not explicitly mention alternatives or exclusions, but the intended use is unambiguous.

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