Skip to main content
Glama

Restore an earlier version of a draft

restore_draft_version
DestructiveIdempotent

Put an earlier version back as the draft's text (with the score it had). The text it replaces is itself kept as a version, so a restore can be undone the same way. Refused while a long draft is still being written. Returns the draft as get_generation does. Free.

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": {
      "generation_id": "<generation_id>",
      "version_id": "<version_id>"
    },
    "name": "restore_draft_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
version_idYesA version id from list_draft_versions.
generation_idYesThe draft's generation id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the replaced text is itself versioned, so a destructiveHint=true operation is in fact undoable by the same mechanism; the call is refused mid-generation; and the return value matches get_generation. That reinterpretation of the destructive flag is exactly the kind of context annotations cannot convey.

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?

Four short sentences, each carrying a distinct fact (effect, undo-ability, refusal condition, return shape and cost) with the primary action front-loaded. No redundant restatement of the title or schema.

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 two-parameter mutation with no output schema, it covers everything an agent needs: what changes, that the change is reversible, when it will be rejected, and how to interpret the response by pointing at get_generation.

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?

Both parameters are fully described in the schema (100% coverage), including that version_id comes from list_draft_versions, so the description need not repeat them. It adds no format, ordering, or version-validity detail beyond the schema, making the documented baseline of 3 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?

States a specific verb and resource ('Put an earlier version back as the draft's text') and even specifies the state carried over ('with the score it had'). It is unmistakably distinct from list_draft_versions (which supplies version ids) and get_generation (referenced for the return shape).

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 a concrete precondition for refusal ('Refused while a long draft is still being written') and a cost cue ('Free'), so an agent knows when the call will fail and that it is cheap to retry. It does not name an alternative tool or state explicit when-not-to-use beyond that, so it stops short of a 5.

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