Skip to main content
Glama

Roll back a migration

rollback
Destructive

Undoes a migration or a sample: DELETES from the destination CRM every record this migration created (records that were there before are never touched). Call it only when the user asks to undo, and only after they confirm. Without the user's confirmationCode (shown on a page of the web app, see the refusal's url) it deletes nothing. Returns { started } (false with a status when a rollback is already running); follow it with get_migration until the step is rolled_back.

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": {
      "id": "<id>"
    },
    "name": "rollback"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe migration id start_migration returned, like MIG-8F3C1D92.
confirmationCodeNoThe code the user read on the confirmation page of the web app and pasted into the chat. Omit it on the first call: the refusal gives the page's link.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds the details that matter for a destructive op: precisely which records are deleted and which are safe, the confirmation-code gate, the refusal-with-url flow, and the { started } return shape including the already-running case. This is genuine behavioral context beyond the structured fields.

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 destructive effect in the first clause, then confirmation gating, then the return value and next step. Dense but every sentence carries distinct operational information; nothing is 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 destructive, no-output-schema tool with only two parameters, the description covers effect scope, safety gating, failure mode, return value, and follow-up polling. An agent has everything needed to decide and to recover from the refusal path.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description ties the parameters into an actual two-step workflow: the first call is expected to fail without confirmationCode and the refusal yields the page URL, and id must be the value start_migration returned. That workflow framing adds some value over the schema's per-field text, though the specifics largely duplicate it.

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 and resource (undoes a migration or sample) and immediately specifies the exact side effect: it DELETES from the destination CRM every record this migration created, with pre-existing records never touched. That scope statement also separates it from read-only siblings like get_migration and get_report.

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

Usage Guidelines5/5

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

Gives explicit preconditions ('only when the user asks to undo, and only after they confirm'), states what happens without the confirmationCode, and names the follow-up tool (get_migration) to poll until the step is rolled_back. When-to-use, when-not, and the alternative sequencing are all present.

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