Skip to main content
Glama

OpenFactory

rollback_app

Bi-directional rollback. The service captures a pre-rollback safety checkpoint FIRST, then applies the rollback (stop unit → revert VM disk → restore DB → start → health check). Returns the safety cp's id so you can roll forward again if the rollback was a mistake.

M1 stub mode: no real disk reverts (M1.5 wires real libvirt snapshots). Schema + state transitions are real — App.deploy_history gets a synthetic 'rolled-back to ' entry.

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": {
      "app_id": "<app_id>",
      "checkpoint_id": "<checkpoint_id>"
    },
    "name": "rollback_app"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesApp ID.
api_keyNoMCP API key
checkpoint_idYesCheckpoint to roll back to (from list_checkpoints).
session_tokenNoSession token

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden and does substantial work: it reveals ordering (safety checkpoint captured FIRST), the internal step sequence, and a critical operational caveat about M1 stub mode where no real disk reverts occur while state transitions still mutate deploy_history. However it omits permissions/auth requirements, whether the operation is reversible at the storage layer, and any failure/partial-failure semantics — 'health check' is mentioned but never explained. Strong disclosure of behavior, incomplete disclosure of constraints.

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?

Front-loaded with the operation name, then the safety-checkpoint guarantee, then the step list, then the stub-mode caveat in a clearly separated paragraph. Every sentence carries operational weight, and the awkward line breaks inside 'pre-rollback safety checkpoint' are formatting noise rather than verbosity.

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?

Return values are covered by the output schema, yet the description still explains the meaningful part of the return (safety checkpoint id) and honestly flags the stub-mode divergence between real state transitions and simulated disk reverts — the single most important thing for an agent to know. Only auth/prerequisite semantics and failure behavior are left thin.

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 the schema already documents all four parameters, including checkpoint_id's source (list_checkpoints). The description adds only the meta-point that the tool returns a safety checkpoint's id for use as a future checkpoint_id. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

Opens with a specific verb+resource ('Bi-directional rollback') and then enumerates the exact operation sequence (stop unit → revert VM disk → restore DB → start → health check). No sibling in the catalog does anything comparable, and the 'bi-directional' framing plus the roll-forward return value makes the scope unambiguous.

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?

Supplies the prerequisite for the key parameter (checkpoint_id 'from list_checkpoints') and explains the follow-up path — keep the returned safety checkpoint id 'so you can roll forward again if the rollback was a mistake.' It stops short of naming an alternative tool or stating when NOT to roll back (e.g. vs. deploying a fix), so it is clear context without explicit exclusions.

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.