Skip to main content
Glama

knowledge_purge

Destructive

Permanently delete archived knowledge pages and cascade their citations after merge or supersede workflows. Rejects any active page, so archive pages first before purging.

Instructions

Hard-delete one or more archived knowledge pages and cascade their citations. Archive-first guard: rejects any page that is not already archived — call knowledge_archive first. All slugs must be archived; a mixed list (any active) rejects the entire batch with no mutation. confirm: true is required explicitly to prevent accidental irreversible deletes. Supersession pointers in the supersessions table are NOT removed (historical record preserved). Use this to clean up tombstoned cruft after merge/supersede workflows — not for retiring active pages.

Input Schema

NameRequiredDescriptionDefault
slugsYesSlugs of archived pages to hard-delete. All must have status=archived.
confirmYesMust be explicitly true — required safety gate for an irreversible operation.

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.8/5.0
Behavior5/5

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

The annotations declare destructiveHint=true and readOnlyHint=false, so the safety profile is already covered. The description goes well beyond that by disclosing citation cascading, the archive-first guard, whole-batch atomicity on a mixed list, the confirm gate, and that supersession pointers are deliberately preserved. This is rich behavioral context an agent needs before calling an irreversible tool.

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?

Front-loaded with the verb and appropriately dense, with each sentence carrying actionable information. There is mild redundancy in restating the archive-first constraint twice ('rejects any page that is not already archived' and 'All slugs must be archived; a mixed list...'), which is emphatic but slightly repetitive.

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?

No output schema exists, and the description nonetheless covers the mutation's effects (hard delete, cascade, preserved supersession pointers), failure behavior, and the safety gate. For an irreversible two-parameter tool, nothing an agent needs in order to call it correctly is missing.

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 the schema documents both parameters, including that all slugs must be status=archived and confirm must be true. The description mostly reinforces this but adds real meaning: the batch-level rejection rule when a mixed list is supplied and the citation cascade triggered by the slugs. Limited to elaboration rather than new format/syntax detail, so not a full 5.

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?

Specific verb (hard-delete) plus resource (archived knowledge pages) with explicit scope including citation cascade. It also distinguishes itself from the sibling it depends on (knowledge_archive), so an agent can tell them apart without opening either schema.

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?

States the prerequisite ('call knowledge_archive first'), the intended use ('clean up tombstoned cruft after merge/supersede workflows'), and the exclusion ('not for retiring active pages'). Both the when-to-use and when-not are explicit.

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