Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by bmdy6

delete_document

DestructiveIdempotent

Deletes a Markdown document for approved cleanup; when a successor is named, it refuses deletion unless that document holds at least 70% of the content.

Instructions

Delete one Markdown document.

successor names the document that absorbed this one's content; when given, the deletion is refused unless the successor body holds at least 70% of the deleted body. Use it for approved cleanup (superseded notes, cards that were folded into an article), and omit it only for content a human has explicitly agreed to drop.

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": {
      "scope": "<scope>",
      "path": "<path>"
    },
    "name": "delete_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
scopeYes
successorNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Goes well beyond the annotations (destructiveHint=true, idempotentHint=true) by disclosing a substantive guardrail: the deletion is refused unless the successor holds at least 70% of the deleted body. That refusal condition and the human-approval expectation are exactly the kind of behavior an agent needs before calling a destructive 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-loads the one-line purpose, then devotes the remainder to the single non-obvious parameter. Every sentence is load-bearing, though the successor explanation is stated twice (threshold plus use-case) and could be tightened.

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 destructive 3-parameter tool with an output schema (so return values need not be described), the definition covers the risky path well. Remaining gaps are the meaning of 'scope' and whether path is vault-relative.

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 coverage is 0%, so the description carries the burden. It explains 'successor' thoroughly (what it names, the 70% threshold, the refusal), but 'path' and 'scope' receive no semantic detail at all, leaving two required parameters to inference.

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?

Opens with a specific verb+resource: 'Delete one Markdown document.' No sibling performs deletion, so the agent can route here unambiguously, though the description never explicitly contrasts itself with tools like move_document or apply_change.

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 concrete when-to-use cases ('approved cleanup', 'superseded notes, cards folded into an article') and a when-not condition ('omit it only for content a human has explicitly agreed to drop'). It stops short of naming alternatives, but with no competing delete tool the guidance is actionable.

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