Skip to main content
Glama

Delete knowledge

kb_delete
Destructive

Remove a knowledge entry and its embeddings. The source material is gone — a crawled page would have to be crawled again, pasted text retyped — so confirm with the user first; kb_list shows what is there. The agent keeps answering, just without this material, and it will still cite it until agent_train reruns. To stop one agent using an entry while keeping it, use kb_attach to exclude it instead of deleting. Requires the "Agents" permission on the plan.

Input Schema

NameRequiredDescriptionDefault
kbIdYesKnowledge-base entry id, from `kb_list`.
agentIdYesAI agent id, from `agent_list`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructive=true and idempotent=false, but the description adds important consequences: source material is unrecoverable, embeddings are removed, the agent keeps answering without the material, and citations persist until `agent_train` reruns. It also states the required "Agents" permission.

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?

The description is front-loaded with the destructive action and consequence, then gives confirmation guidance, alternatives, and permission requirements. Every sentence adds useful information without waste.

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

Completeness5/5

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

For a destructive two-parameter tool with no output schema, the description covers consequences, user confirmation, alternatives, and permissions. Nothing essential for correct invocation is missing.

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 both parameters are documented in the schema with their sources (`kb_list` and `agent_list`). The description does not add meaning beyond the schema, so the baseline of 3 is appropriate.

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: remove a knowledge entry and its embeddings. It also distinguishes the tool from `kb_attach` and `kb_list`, so an agent can identify its role without opening the schema.

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

Usage Guidelines5/5

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

Explicitly says to confirm with the user first, points to `kb_list` for inspection, and names `kb_attach` as the alternative when the goal is to stop one agent using an entry without deleting it. This gives clear when-to-use and when-not-to-use guidance.

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