Skip to main content
Glama

Rollback Change

rollback_change
Destructive

Restore RouterOS to a previous state by reverting a specific write operation using its journal ID. Preview changes with dry-run mode before applying.

Instructions

Restore the RouterOS state to what it was before a write, identified by its journal ID. Reads the before-snapshot from disk, computes the diff against live state, and applies the reverse diff. Use dryRun=true to preview the restore plan without applying. Requires MIKROMCP_DATA_DIR (or defaults to data/) to be configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
routerIdYesTarget router identifier
journalIdYesJournal entry ID from write-journal.ndjson to roll back
dryRunNoPreview the restore plan without applying changes
confirmationTokenNoToken from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action.
Behavior4/5

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

Annotations already indicate destructiveness (destructiveHint=true). The description adds context on the rollback process (reads snapshot, computes diff, applies reverse diff) and the safety net of dryRun. It does not contradict annotations and provides meaningful behavioral detail beyond them.

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?

The description is three sentences: first states purpose, second explains mechanism, third gives dryRun guidance and config requirement. Each sentence is essential and front-loaded. No redundant text.

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?

The description covers core behavior and dryRun, but omits critical details: it does not mention the confirmationToken parameter (required for actual destructive rollback) nor explain what the tool returns. With no output schema, these omissions hinder a complete understanding of tool usage.

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?

All parameters are described in the schema (100% coverage), so the description adds minimal new semantic value. It mentions dryRun's effect and the journal ID's role, but these are already clear from schema descriptions. Baseline 3 is appropriate.

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?

The description clearly states the tool restores RouterOS state before a write, using a journal ID. It explains the mechanism (reads snapshot, computes diff, applies reverse diff). This distinguishes it from siblings like apply_plan or plan_changes, as no other tool handles rollback.

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?

The description implies usage for undoing a write and provides guidance on using dryRun for preview. However, it does not explicitly contrast with alternatives or provide when-not-to-use scenarios, such as when rollback is not feasible. The config requirement is mentioned but not as a usage guideline.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AliKarami/MikroMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server