Skip to main content
Glama

Bring back an older version

restore_version

Put an older version's masters back in the draft and approve them as a new version, so the history only grows. From anyone but an owner or admin, this asks the owner to approve instead. Send the draft's current draftRev: the draft is replaced. Costs no credits.

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": {
      "slug": "<slug>",
      "version": "<version>",
      "draftRev": "<draftRev>"
    },
    "name": "restore_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
versionYes
draftRevYes
idempotencyKeyNoA key you make up for this call. Send the SAME one again after a lost answer to get the first answer back, with nothing spent twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With destructiveHint=false set, the description usefully adds what actually happens: the draft is replaced, history only grows, and the call costs no credits. Disclosing 'the draft is replaced' is important since the annotation alone might suggest nothing is lost. There is mild tension between that replacement language and destructiveHint=false, but the description's explicit disclosure compensates.

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?

Three sentences, front-loaded with the core action, then permission nuance, then the draftRev requirement and cost note. Dense but efficient. Minor jargon ('masters') adds slight friction but nothing is wasted.

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?

For a mutation tool with no output schema and 25% schema coverage, the description covers behavior, permissions, and cost well. It does not describe what the call returns (e.g., the resulting new version number), which matters when no output schema exists.

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?

Schema coverage is only 25%, so the description must carry the load. It explains draftRev well ('Send the draft's current draftRev: the draft is replaced') and implies version via 'older version,' but leaves slug and the version integer's exact meaning undocumented. Partial compensation supports a 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb+resource: 'Put an older version's masters back in the draft and approve them as a new version.' This is clearly a restore-then-approve mutation, distinguishable from read siblings like get_version and list_versions. It does not name a sibling alternative, keeping it at 4 rather than 5.

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?

It gives clear context for when this applies and describes a real usage nuance: 'From anyone but an owner or admin, this asks the owner to approve instead.' That permission-branching guidance is useful. However, it stops short of explicit when-not guidance or naming an alternative path.

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