Skip to main content
Glama

Bring back an earlier version of a knowledge entry

restore_knowledge_version
Destructive

Brings back an earlier version of a knowledge entry by saving its content as a NEW newest version, and brings back a deleted entry too. Nothing is overwritten: every version stays in the history, and the restore shows there as a new version saved by the assistant. Send the version to bring back and the newest version number (list_knowledge_versions gives both); if someone saved a newer version since, nothing is saved and the answer is stale with the newest number.

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

Input Schema

NameRequiredDescriptionDefault
versionYesThe number of the version whose content to bring back.
project_idNoThe project the entry is in. May be left out: the entry's id finds its own project or the workspace.
knowledge_idYesThe entry (list_knowledge and search_knowledge give ids).
workspace_idNoWorkspace id from whoami; omit when there is one.
expected_versionYesThe entry's newest version number when you read it (read_knowledge or list_knowledge_versions gives it). If someone saved a newer version since, nothing changes and the answer is stale with the newest number: read the entry again first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, it discloses the key behavioral facts: nothing is overwritten, all versions remain in history, the restore is recorded as a new version attributed to the assistant, and a stale expected_version causes no write. This meaningfully softens and explains the destructiveHint=true annotation rather than leaving the agent to fear data loss.

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 behavior and the non-destructive guarantee are front-loaded, and the preconditions follow logically. There is mild redundancy — the stale-version outcome is repeated almost verbatim from the schema — but no sentence 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?

For a 5-parameter mutation with three required ids, no output schema, and non-trivial concurrency semantics, the description covers inputs, failure mode, and side effects adequately. What it never says is what a successful call returns (e.g., the new version number or the entry), which the agent must infer.

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 already spells out version, knowledge_id, expected_version (including the stale-write warning) and the optional project/workspace ids. The description restates the expected_version conflict behavior but adds no new syntax or sourcing detail beyond what the schema provides, so baseline 3 applies.

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 ('Brings back an earlier version of a knowledge entry') and immediately clarifies the mechanism ('saving its content as a NEW newest version'), which separates it from read_knowledge_version and roll_back-style siblings. It also covers the deleted-entry case, so the agent knows the scope is broader than a plain version read.

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 the concrete precondition for calling it (send the version plus the newest version number, both obtainable from list_knowledge_versions) and explains what to do when the call loses the race (re-read the entry). It does not explicitly contrast with read_knowledge_version or restore_report_version, but the context needed to invoke it correctly is present.

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