Skip to main content
Glama

delete_knowledge_tool

Deletes a knowledge document from a specified project by file name, returning the deletion result.

Instructions

刪除知識文件

Args: project_name: 專案名稱 name: 檔案名稱

Returns: 刪除結果

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": {
      "project_name": "<project_name>",
      "name": "<name>"
    },
    "name": "delete_knowledge_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
project_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2601.5

TDQS

C2.6/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden, and it discloses almost nothing: it does not state that deletion is destructive or irreversible, whether files are removed from disk or only from the index, what happens if the file does not exist, or what permissions are needed. For a delete operation this is a serious omission.

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

Conciseness3/5

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

The text is short and front-loaded with the action, which is good, but the 'Returns: 刪除結果' line adds nothing since an output schema already exists, and the docstring-style Args block repeats parameter names rather than enriching them.

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

Completeness2/5

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

An output schema exists, so return values need not be described. However, for a two-parameter destructive tool with zero annotation coverage and 0% schema description coverage, the definition should at minimum explain irreversibility, identifier format, and error behavior, and it covers none of these.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate, but the Args block only glosses the two parameters as 'project name' and 'file name'. It leaves open whether 'name' is a path, a basename, includes an extension, or must match an id returned by list/read, so ambiguous input is likely.

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?

The description states a specific verb and resource (刪除知識文件 = delete knowledge document), which lets an agent distinguish it from sibling read/list/save knowledge tools by name alone. It does not explicitly say how it differs from a generic reindex or save operation on the same resource, so it stops short of a 5.

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 guidance on when to use this versus save_knowledge_tool or reindex_knowledge_tool, no prerequisites, and no cautions about confirming before a permanent removal. The agent must infer all usage context from the function name.

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