Skip to main content
Glama

Delete a knowledge entry

delete_knowledge
Destructive

Deletes a knowledge entry: it leaves every list and search at once. The delete is restorable: it is saved as a new version, every earlier version stays, and restore_knowledge_version brings the entry back. Send the newest version number you read; if someone saved a newer version since, nothing is deleted and the answer is stale with the newest number.

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": {
      "knowledge_id": "<knowledge_id>",
      "expected_version": "<expected_version>"
    },
    "name": "delete_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idNoThe project the entry is in. May be left out: the entry's id finds its own project or the workspace.
knowledge_idYesThe entry (list_knowledge and search_knowledge give ids).
workspace_idNoWorkspace id from whoami; omit when there is one.
expected_versionYesThe entry's newest version number when you read it (read_knowledge or list_knowledge_versions gives it). If someone saved a newer version since, nothing changes and the answer is stale with the newest number: read the entry again first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, and the description adds crucial context the annotations cannot: the delete is restorable via version history and every earlier version persists. It also discloses the concurrency-failure behavior (nothing is deleted and the response is stale with the newest number), which is exactly the kind of side-effect detail an agent needs before calling a mutation.

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 tight sentences, front-loaded with the action and its blast radius, then reversibility, then the version precondition. Minor redundancy with the schema's expected_version text, but every sentence carries actionable information.

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 mutation with no output schema, the description covers the important risk and recovery paths and hints at the failure response shape ("stale with the newest number"). The success response body is not described, a small gap given there is no output schema.

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 description coverage is 100%, so expected_version and the optional project/workspace scoping are already documented. The description restates the expected_version contract rather than adding new meaning such as allowed ranges or default scoping behavior, so the baseline of 3 applies.

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 and resource ("Deletes a knowledge entry") plus the immediate effect ("it leaves every list and search at once"), which distinguishes it from read/list/search siblings without needing their schemas.

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 clear operational guidance: send the newest version number you read, re-read first if the entry changed, and use restore_knowledge_version to undo. It stops short of explicit exclusion guidance (e.g. when to prefer update_knowledge or flag_knowledge_out_of_date instead), so it lands at 4 rather than 5.

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