Skip to main content
Glama

Restore an earlier version

restore_version
Idempotent

Put an earlier version's code in the draft, to try and publish: see read_guide("publishing").

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

Input Schema

NameRequiredDescriptionDefault
appYesThe app, as list_apps names it, such as sam/budget.
versionYesA version or commit from read_app_overview.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds that the version lands in the draft, which implies the current draft content is replaced, but it does not state that explicitly or confirm the published app is untouched. That missing 'what gets overwritten' detail keeps it at a 3.

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?

A single short sentence with the action front-loaded and a cross-reference at the end; no filler, nothing to trim.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter, fully documented tool with annotations and no output schema, this covers what the agent needs to select and invoke it. The only real gap is the fate of in-progress draft edits and the relationship to the publish step, which the read_guide pointer partially covers.

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 description coverage is 100%, and the schema itself tells the agent how to source each value (app as list_apps names it, version from read_app_overview). The description adds no additional meaning about parameter format or source, so the baseline of 3 applies.

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 gives a concrete verb-and-resource pair ('Put an earlier version's code in the draft') and clarifies the destination is the draft rather than the live app, which separates it from publish_app. It stops short of naming any sibling explicitly, but the effect on the draft is unambiguous.

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?

Usage is implied: restore a version into the draft when you intend to publish it afterwards, with a pointer to read_guide('publishing') for the workflow. There is no explicit when-not (e.g. what to do with existing draft edits, or whether this should follow or precede check_app/run_tests), so the agent must infer the sequencing.

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