Skip to main content
Glama

Rollback

rollback
Destructive

Restore a memory/skill/goal to a prior revision. Writes a NEW revision equal to the old snapshot — never a silent overwrite, so the history stays intact.

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": {
      "entityType": "<entityType>",
      "entityId": "<entityId>",
      "revision": "<revision>",
      "branch": "<branch>"
    },
    "name": "rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchYesmain
entityIdYes
revisionYes
entityTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=true, idempotentHint=false), and the description adds real value on top: it explains that the operation writes a NEW revision rather than overwriting, so history is preserved. This is exactly the kind of consequence information an agent needs before invoking a mutation. It still omits permissions requirements, whether the rollback itself can be undone, and what the response contains, so it stops short of 5.

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 action and scoped by entity type, followed by the one non-obvious behavioral detail. No filler, and the em-dash clause attaches directly to the claim it qualifies.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-required-parameter mutation with no output schema, the definition covers purpose and consequence but leaves gaps around the branch parameter, target-revision validity, and failure behavior. Given destructiveHint=true, an agent would benefit from knowing what happens when the referenced revision or entity does not exist.

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 0% across four required parameters, so the description must carry the load. It does partially: the entity type enum values are spelled out ('memory/skill/goal') and 'prior revision' explains the revision parameter. But entityId and especially the required branch parameter (which carries a default of 'main' yet is listed as required) get no explanation in either the schema or the description.

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 verb and resource — restore a memory/skill/goal to a prior revision — and enumerates the entity types the tool covers. It is clear what the tool does, though it never names a sibling (e.g., delete_memory_item or create_memory_item) to sharpen the boundary between rollback and ordinary deletion or creation.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites (does the target revision need to exist? what permissions?), and no alternative named for cases where rollback is the wrong operation. Usage is only implied by the word 'restore'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources