Skip to main content
Glama
Mipiti MCP Server
by Mipiti

Undo Model Change

undo_model_change

Undo the latest control change or revert a model to its prior version. Each call reverses one change, restoring controls or creating a new version and marking the replaced one discarded.

Instructions

Undo the latest change to a model's controls, or revert its latest version. Mutating.

target="controls" restores exactly what the latest set revision of the latest version replaced (list_control_revisions' undo_target). Changes are undone latest first, one per call; the undo is itself recorded, and the next undo goes to the change before it. There is no redo. Verdicts the undo returns to are served again rather than re-judged. Answers {applied: true, model_id, model_version, undone, revision, controls}: undone is the revision undone, revision the one the undo recorded, controls the ids it restored.

target="version" creates a new version copying the latest earlier version not already discarded — the model, its controls and their objective metadata — and marks the replaced version discarded. Version numbers are never reused, and the discarded version stays readable in the history. Findings on controls the revert removes are resolved. Answers {applied: true, model_id, model_version, copied_from, discarded}: model_version is the new version.

A refusal comes back as {applied: false, http_status: 409, code, message}: generation_active (a build holds the model), and for controls nothing_to_undo or set_diverged (a control the change touched has changed since; undo the later change first), for a version no_earlier_version, and migration_revert where the version it would copy holds the behavioural model as it stood before the model moved to edits, a move made once (migrated_at names the version from which a revert is possible; edit the model instead).

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": {
      "server_version": "<server_version>",
      "model_id": "<model_id>",
      "target": "<target>"
    },
    "name": "undo_model_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYes
model_idYes
server_versionYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.84.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations at all, the description carries the full burden and does so: it declares "Mutating", describes the recursive undo bookkeeping (the undo itself is recorded), notes verdicts are re-served rather than re-judged, and enumerates the 409 refusal codes with their meanings. Side effects are spelled out — versions marked discarded but still readable, version numbers never reused, findings on removed controls resolved.

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-loaded with the core action, then organized by target mode, then by refusal case — a readable structure for a genuinely complex tool. The cost is that the two response-shape breakdowns restate what the existing output schema already defines, which is redundant bulk even if not confusing.

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, two-mode, refusal-prone operation with zero annotation coverage, the description covers preconditions, ordering, side effects, and failure codes. Nothing an agent needs in order to decide whether to call it, or to interpret a 409, 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 0%, so the description must compensate; it does so thoroughly for the only non-obvious parameter, `target`, spelling out what each enum value restores or creates. `model_id` and `server_version` are left undefined, but their meaning is conventional enough that the gap is minor rather than blocking.

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 and resource ("Undo the latest change to a model's controls, or revert its latest version") and immediately splits the two behaviors by the `target` value. An agent can tell exactly what the tool does and which mode it is entering without opening the schema.

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 selection guidance per target, states the ordering rule ("Changes are undone latest first, one per call"), an explicit exclusion ("There is no redo"), and a when-not alternative ("edit the model instead" for the migration_revert case). It also points to `list_control_revisions`' `undo_target` as the way to identify what will be restored.

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

Deploy Server

Other Tools