Skip to main content
Glama

Bring back an earlier version of a report

restore_report_version
Destructive

Brings back an earlier version of a report by saving its content as a NEW newest version. Nothing is deleted or overwritten: every version saved before stays in the history, and the restore itself shows there as a new version saved by the assistant. Send the version to bring back and the newest version number you read (list_report_versions gives both); if someone saved a newer version since, nothing is saved and the answer is stale with the newest number, so read the history again first. Only someone who may save a new version of the report may restore one. The answer gives the new version's number, not its content. If a public link still shows an older version because the new one failed the share check, warning and linkLag say which link and which part held it: tell the person, take that part out, and save again.

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": {
      "report_id": "<report_id>",
      "version": "<version>",
      "expected_version": "<expected_version>"
    },
    "name": "restore_report_version"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionYesThe number of the version whose content to bring back.
report_idYesThe report (list_reports gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.
expected_versionYesThe report's newest version number when you read it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Far exceeds what {readOnlyHint:false, destructiveHint:true, openWorldHint:false} conveys: it explains append-only history semantics, the optimistic-concurrency check on expected_version, the authorization precondition, the return shape (new version number, not content), and the post-save share-check failure with warning/linkLag fields and the remediation. The claim 'nothing is deleted or overwritten' sits in mild tension with destructiveHint=true, but it is scoped precisely to history entries, so it clarifies rather than contradicts the annotation.

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?

The core idea is front-loaded and every sentence carries operational weight (semantics, precondition, auth, return value, failure recovery). It is a single dense run-on block, though, and the trailing share-check sentence is complex enough that structure (bullets or shorter sentences) would aid scanning.

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 mutating, conflict-sensitive tool with no output schema, the description covers state effects, concurrency, permissions, the returned value, and the partial-failure case. An agent has everything needed to call it correctly and to interpret the response, including warning/linkLag.

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 already 100%, so the schema defines each field; the description adds real meaning on top by framing expected_version as the newest number you previously observed and spelling out the consequence of a mismatch, plus pointing to list_report_versions as the source for both values. It does not, however, explain workspace_id resolution beyond the schema text.

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 (bring back an earlier report version) and immediately disambiguates the mechanism: the old content is re-saved as a NEW newest version rather than reverting in place. This clearly separates it from read_report / list_report_versions, which read history rather than act on it.

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 the precondition (read the newest version number, which list_report_versions provides alongside the target version), the failure mode when that precondition is violated (nothing saved, stale answer with the newest number, so re-read history first), and the authorization requirement (must be allowed to save a new version). That is explicit when-to-use, when-not, and recovery guidance.

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