Skip to main content
Glama

Go back to an earlier version

restore_version
Destructive

Saves a copy of an earlier version, preferences included, as the newest version.

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

Input Schema

NameRequiredDescriptionDefault
trip_idYes
versionYesThe version to go back to.
based_on_versionYesThe current version.

Output Schema

NameRequiredDescriptionDefault
tripNo
changedYes
acceptedNo
next_actionNo
preferencesNo
couldnt_checkNo
restored_fromYes
provenance_rulesNoFacts are sourced, unverified, stale or not_checked. Prices are live, estimate or none; hotel and flight prices are never estimated.
couldnt_check_moreNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the bar is lower, but the description does add real context: the restore is implemented as saving a copy as the newest version, and preferences are carried over. It still does not say whether prior versions are retained, whether the action can be undone, or what happens on a version mismatch - and the 'saves a copy' framing sits in mild tension with destructiveHint=true without resolving it.

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?

A single dense sentence with the key effect front-loaded and no filler. It could be slightly clearer about the relationship between the copy and the replaced newest version, but nothing is wasted.

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?

An output schema exists and annotations cover the safety profile, so the definition only needs to convey the operation's nature and selection guidance. It conveys the nature adequately but leaves the write_new_version alternative and the concurrency role of based_on_version unaddressed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds nothing about the three parameters; it does not explain that trip_id selects the itinerary, and notably it does not clarify why 'based_on_version' (the current version) is required alongside the target 'version' - presumably an optimistic-concurrency guard. With schema coverage at only 67% and trip_id undocumented anywhere, the description fails to compensate.

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 operation on a specific resource: it copies an earlier version (with preferences) and makes it the newest version. This distinguishes it from a plain read and hints it is not a raw rollback, though it never names or contrasts with the sibling write_new_version, so sibling disambiguation is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance on when to choose this over write_new_version or other version-related siblings, nor any prerequisites, concurrency or permission caveats. Usage is only inferable from the tool name and the phrase 'go back to an earlier version' in the title.

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