Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by kvmadden

Delete memory file or directory

memory.delete
Destructive

Delete a file or all files under a directory path to remove outdated or incorrect memory records from the shared knowledge store.

Instructions

Delete a file, or every file under a directory path.

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": {
      "path": "<path>"
    },
    "name": "memory.delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath under /memories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description's real contribution is disclosing recursive semantics: passing a directory path deletes every file beneath it, which is not visible in the annotations or schema. It stops short of saying whether deletion is permanent or what happens when the path does not exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, front-loaded with the verb, and the recursive case is stated in the same breath as the single-file case. Nothing is padded and nothing needs to be moved earlier.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter destructive tool whose annotations already flag the hazard, the definition covers the essential mechanics, including directory recursion. It leaves gaps that matter for a delete operation: irreversibility, behavior on a missing path, and whether wildcards or empty directories are handled.

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 100% and the single path parameter is already documented as "Path under /memories." The description adds one useful distinction - the path may resolve to a file or a directory, with different blast radius - but gives no format, root, or edge-case detail beyond that.

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?

Specific verb (delete) plus resource (file or directory) with scope made explicit: it removes either a single file or every file under a directory path. This distinguishes it adequately from the create/insert/rename/view siblings, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no mention of alternatives such as memory.rename when the intent is relocation rather than removal, and no caution about choosing a directory path versus a file path. The agent must infer the usage context entirely.

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