Skip to main content
Glama

knowledge_history

Destructive

Recover overwritten knowledge page content by listing stored body revisions, reading a specific revision, or restoring it to the page.

Instructions

Body-revision history for a knowledge page. Replace-writes snapshot the displaced body into page_revisions (newest kept, capped per page) — this tool is the recovery surface. Three modes: slug alone lists snapshots (metadata only); slug + revision_id reads one snapshot's full body; adding restore: true puts that body back on the page (the displaced body is snapshotted first, so restore is never destructive).

Input Schema

NameRequiredDescriptionDefault
slugYesSlug of the knowledge page.
restoreNoRestore the revision's body onto the page. Requires revision_id.
revision_idNoRevision to read (from the listing). Combine with restore: true to put it back.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observedv0.4.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare the safety triad (readOnly=false, destructive=true, openWorld=false); the description adds genuinely new behavior: replace-writes snapshot the displaced body, retention is newest-kept and capped, and restore snapshots before overwriting so it is recoverable. The 'never destructive' phrasing sits in mild tension with destructiveHint=true, though the tool does mutate the page body, so the annotation is a conservative default rather than a true conflict. The cap size and listing pagination are left unspecified.

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 resource model, then the mechanism, then the mode matrix — no filler. The parentheticals are dense but each carries real information; the mode sentence is slightly compressed and requires a careful read.

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?

With no output schema, the description correctly describes what each mode returns (metadata-only listing vs full body). Coverage of the mutation path and its reversibility is strong. Remaining gaps are the retention cap value and the absence of any sibling routing, so it is not fully complete.

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 100%, so parameter meanings are already documented and the baseline is 3. The description adds value beyond the schema by explaining the combination semantics (revision_id requires a slug; restore requires revision_id) and by clarifying that the slug-only listing returns metadata while the revision_id read returns a full body.

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+resource ('Body-revision history for a knowledge page') and frames the tool's role as 'the recovery surface', which separates it from siblings like knowledge_write, knowledge_restore, and memory_history. The snapshot mechanism sentence makes the resource model unambiguous.

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 an explicit mode matrix keyed on arguments: slug alone lists metadata, slug + revision_id reads one body, restore: true writes it back. That is clear when-to-use guidance. It does not name a sibling alternative (e.g. use knowledge_write to produce revisions) or state when not to reach for this tool, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.