Skip to main content
Glama

knowledge_remove_source

DestructiveIdempotent

Remove indexed encrypted knowledge passages for an exact local file or selected directory, including previous versions, matching index manifests and source watchers. Original source files are never deleted; encrypted deletion tombstones synchronize across authorized LAN devices. path is required, project matches exactly, and recursive=true applies to a directory subtree.

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": "knowledge_remove_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
projectNo
device_idNo
recursiveNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already flag destructiveHint=true, readOnlyHint=false and idempotentHint=true, and the description adds genuinely new behavior: original source files are never deleted, and encrypted deletion tombstones propagate to authorized LAN devices. The remaining gap is that it does not state permission requirements for removal or how long tombstone propagation takes to become consistent.

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 first sentence front-loads the action and scope, and the following sentences each add one distinct fact (non-deletion, tombstone sync, parameter rules) with no filler. The fourth sentence is a compressed parameter list, which reads slightly like a schema echo but is defensible given zero schema descriptions.

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, four-parameter tool with no output schema, the definition covers the essential safety context an agent needs: it clarifies that user files survive and that deletion is replicated. Only the device_id parameter and permission prerequisites are missing, which are moderate rather than disqualifying gaps.

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 must carry the parameter burden, and it does explain three of four: path is required, project must match exactly, recursive scopes a directory subtree. device_id is left completely undefined in both schema and description, which is a real hole for a destructive multi-device operation.

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?

States a specific verb and resource ('Remove indexed encrypted knowledge passages') and scopes it to an exact local file or selected directory, including prior versions, manifests and watchers. That is far more precise than the bare name, but it never contrasts itself with the closely named sibling knowledge_watch_remove, so an agent must still infer which one strips the index versus the watcher.

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

Usage Guidelines3/5

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

Usage is implied rather than prescribed: the description tells you path is required, project matches exactly, and recursive=true applies to a directory subtree, which effectively defines the two modes of invocation. It gives no explicit when-to-use/when-not-to-use framing and no named alternative for removing only a watcher or only an index entry.

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