Skip to main content
Glama

rollback_import

Destructive

Rolls back ONE import batch: deletes the tasks that this batch CREATED and that nobody has modified since. Keeps — and DECLARES with its reason — any task edited since the import, and any task still referenced (subtask or dependency) by a task that survives. Does NOT RESTORE what an onExisting: "update" batch modified. dryRun is TRUE by default: the call returns what would be deleted (an edit that arrived between this plan and the deletion is not detected). Resumable: at most 500 deletions per call; remaining says whether any are left — a new call with the same importId continues. DESTRUCTIVE and irreversible with dryRun: false. Each call that deletes leaves ONE aggregated event in the activity log (import.rolled_back: tasks deleted, tasks spared). In validation mode, a task that waits for a human ("to validate" / "to approve") is KEPT with the reason awaiting-human.

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": {
      "importId": "<importId>"
    },
    "name": "rollback_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNoDefault TRUE: returns what would be deleted or kept, WITHOUT deleting anything. `false` to delete.
importIdYesThe batch to roll back (`list_imports`, or the `importId` returned by `import_tasks`).
expectedProjectIdNoUUID of the project THIS call targets (overrides the session project).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."New value: +"UUID of the project THIS call targets (overrides the session project)."
  2. Changed1 schema field changed
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."New value: +"UUID of the project THIS call targets (overrides the session project). No access: refused, nothing changed."
  3. Changed3 schema fields changed
    • changedInput schema / properties / dryRun / description
      Previous value: -"Défaut TRUE : rend ce qui serait supprimé ou gardé, SANS rien supprimer. `false` pour supprimer."New value: +"Default TRUE: returns what would be deleted or kept, WITHOUT deleting anything. `false` to delete."
    • changedInput schema / properties / expectedProjectId / description
      Previous value: -"UUID du projet visé par CET appel. Cible RÉELLEMENT ce projet au lieu du projet de session. Refusé sans rien modifier si l'accès n'est pas accordé."New value: +"UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted."
    • changedInput schema / properties / importId / description
      Previous value: -"Le lot à annuler (`list_imports`, ou l’`importId` rendu par `import_tasks`)."New value: +"The batch to roll back (`list_imports`, or the `importId` returned by `import_tasks`)."
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the destructiveHint=true annotation: it discloses exactly what survives and is 'DECLARED with its reason' (edited tasks, tasks referenced by subtasks/dependencies), the irreversibility of `dryRun: false`, the race condition where an edit between plan and deletion is not detected, the 500-deletion resume cap with a `remaining` flag, and the single aggregated `import.rolled_back` activity-log event. That is precisely the kind of consequence detail annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core behavior (what is deleted) before the caveats, and nearly every sentence carries operative information. It is dense — the resumability, activity-log, and validation-mode clauses could be split or bulleted — but there is little true waste.

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, partially resumable tool with no output schema, the description supplies what an agent needs: return shape under dryRun, the `remaining` continuation signal, what is preserved and why, and the irreversibility warning. Nothing material is missing.

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 adds real semantics the schema does not: `dryRun` defaults to TRUE and its response is a deletion plan, and `importId` doubles as the resume key — a new call with the same value continues where the last left off. `expectedProjectId` is left to the schema, which is acceptable.

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?

Names a specific verb (rolls back) and a narrowly scoped resource (ONE import batch), then immediately defines the boundary: deletes only tasks this batch CREATED and nobody has modified, and explicitly does NOT restore what an `onExisting: "update"` batch modified. An agent can distinguish this from import_tasks without opening either schema.

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?

Gives concrete conditions for use: `dryRun` defaults to TRUE, set it to `false` to actually delete; in `validation` mode tasks awaiting a human are kept. It does not name a sibling alternative to route away from (e.g. import_tasks, list_imports beyond the importId lookup), so it falls short of explicit when-not/alternative guidance.

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.