Skip to main content
Glama

Remove a source from a knowledge base

remove_knowledge_source
DestructiveIdempotent

Take one source out of a knowledge base, so agents no longer find answers from it. Call without approved to see what is removed, and with approved: true after the person confirms.

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_base_id": "<knowledge_base_id>",
      "source_id": "<source_id>"
    },
    "name": "remove_knowledge_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
approvedNo
source_idYesFrom get_knowledge_base.
knowledge_base_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the danger profile is covered structurally. The description's genuine additions are the dry-run preview behavior and the human-confirmation gate, plus the user-visible effect on agent answers. It does not say whether removal is recoverable, whether a source still attached to agents is refused or cascaded, or what the preview actually returns.

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?

Two sentences with no filler: the purpose and its consequence come first, the call protocol second. Every clause carries operational meaning for the caller.

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, zero-output-schema tool the description covers the essentials: what is affected, that a preview exists, and that explicit confirmation is required. The remaining gap is outcome reporting — with no output schema, the caller cannot tell from the description what the preview or success response contains, or how partial failures surface.

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 only 33%: source_id carries a description ('From get_knowledge_base') while knowledge_base_id and approved do not. The description compensates for the least obvious parameter by explaining that omitting 'approved' yields a preview, which the schema cannot convey. It still leaves the identifier formats and validation behavior undocumented.

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 ('Take one source out of a knowledge base') and adds the downstream consequence ('so agents no longer find answers from it'), which makes the effect of removal concrete. It is clearly separable from add_knowledge_source by the verb, though it does not explicitly contrast itself with adjacent operations such as archiving.

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 an explicit two-step invocation protocol: call without 'approved' to preview, then call with 'approved: true' after a person confirms. That is real when-to-use and how-to-sequence guidance rather than implied usage. It stops short of naming any alternative tool or stating when removal is the wrong choice.

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