Skip to main content
Glama

revert_fixes

Restores the before state of applied changes from apply_fixes, update_entities or create_entities by reversing them last to first; newly created items are deleted, while deleted items remain irreversible.

Instructions

Restore the "before" state of applied items (applyId from apply_fixes, update_entities or create_entities) — from last to first. What was created in a batch is deleted. What was deleted is not restored — such items are marked irreversible in the plan.

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": {
      "applyId": "<applyId>",
      "confirmed": "<confirmed>"
    },
    "name": "revert_fixes"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoDefaults to all
applyIdYesapplyId from apply_fixes
confirmedYesThe user agreed to the revert

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and does substantial work: it discloses undo ordering (last to first), that created items are deleted, and that deleted items are explicitly NOT restored and are marked irreversible. It omits failure/partial-revert semantics and any permission or safety framing around the deletion.

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?

Three tight sentences, front-loaded with the action and the identifier source, then the ordering rule, then the irreversibility caveat. No redundant or filler wording.

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?

For a destructive, no-output-schema mutation with three fully documented parameters, the description covers what reverting means, ordering, and the key limitation that deleted items are not restored. It could add what happens on partial failure or a return summary, but nothing essential to invoking it is missing.

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 coverage is 100%, so items ('Defaults to all'), applyId and confirmed are all documented structurally. The description adds only the origin of applyId and the last-to-first processing order, which is useful but marginal beyond the schema 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?

States a specific verb (restore) and a well-defined target (the 'before' state of applied items identified by applyId), and pins applyId provenance to apply_fixes, update_entities or create_entities, which separates it from single-entity siblings such as restore_entity.

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?

Makes the trigger condition explicit: you use it with an applyId produced by one of the three apply tools, and the ordering it applies is stated (last to first). It does not spell out when NOT to use it or contrast it with restore_entity, so it stops short of full alternative routing.

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