Skip to main content
Glama

rollback

Destructive

Restore a versioned entity to a prior revision (writes a NEW revision — never a silent overwrite). Required: entity_type ('memory'|'skill'|'goal'), entity_id, revision.

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": {
      "entity_type": "<entity_type>",
      "entity_id": "<entity_id>",
      "revision": "<revision>"
    },
    "name": "rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
revisionYesRevision number to restore (from list_history)
entity_idYesID of the record
entity_typeYesType of the versioned entity: memory, skill or goal

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / entity_id / description
      Added value: +"ID of the record"
    • addedInput schema / properties / entity_type / description
      Added value: +"Type of the versioned entity: memory, skill or goal"
    • addedInput schema / properties / revision / description
      Added value: +"Revision number to restore (from list_history)"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavioral information beyond that: the operation appends a NEW revision rather than silently overwriting, which materially changes how an agent should reason about reversibility. It stops short of describing what the resulting revision looks like or who may perform the rollback, so it is not a 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 short sentences with the guarantee about non-overwrite front-loaded and the required inputs compressed into one line. Nothing is redundant and there is no filler.

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 three-parameter mutation tool with full annotation coverage and no output schema, the description covers purpose, inputs and the key append-only guarantee. It omits what happens to the current revision, what the call returns, and any authorization requirements, which leaves moderate gaps for a destructive operation.

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 all three parameters are already documented, including the enum-like list of entity types. The description restates the required fields and the entity_type values without adding format, validation or lookup guidance beyond what the schema provides, so the baseline 3 applies.

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 versioned entity to a prior revision', with the scope narrowed to memory/skill/goal entities. It is immediately distinguishable from generic add_/update_ siblings, though it does not name any alternative tool for the same task.

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

Usage Guidelines3/5

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

Usage is only implied: the required fields and the parenthetical '(from list_history)' hint that the agent should first look up a revision number elsewhere. There is no explicit statement of when to prefer rollback over editing or recreating an entity, and no stated preconditions.

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.