Skip to main content
Glama

Delete a knowledge base

delete_knowledge_base
DestructiveIdempotent

Delete a knowledge base

Deletes it everywhere it is linked, under the same shared-knowledge rule as replacing (403 shared_with_other_agents).

Input Schema

NameRequiredDescriptionDefault
agent_idYesThe agent the resource belongs to. Another company's agent, or the nil UUID, is `404 agent_not_found`; an agent outside the key's agent list is `403 agent_not_authorized`.
knowledge_base_idYesA knowledge base linked to the agent. One that is not is `404 not_found`.

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?

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds real value beyond that: it discloses cascade behavior ('deletes it everywhere it is linked') and the shared-knowledge authorization constraint that yields 403 shared_with_other_agents — both materially affect invocation risk.

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?

Very short and front-loaded, with the cascade scope stated before the error rule. The leading line restates the title, a minor redundancy, but nothing else is padded.

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 2-param tool with full schema coverage and no output schema, the description covers the key gaps an agent needs: cascade scope and the authorization condition. It is largely complete, missing only explicit sibling routing.

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%; both agent_id and knowledge_base_id are documented in-schema with their 404/403 error semantics. The description adds no parameter-level detail, so the baseline 3 applies — the schema does all the work.

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 (delete) and resource (knowledge base), and the second sentence clarifies scope: it deletes the KB 'everywhere it is linked', which is more than the title conveys. It does not explicitly contrast itself with replace_knowledge_base or the other delete_* siblings, so differentiation relies on the reader inferring from the reference to the shared-knowledge rule.

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?

It alludes to an alternative operation ('the same shared-knowledge rule as replacing') and surfaces a failure condition (403 shared_with_other_agents), which implies when the delete will be refused. However, it never says when to choose delete vs replace, and gives no explicit when-not guidance, so routing is only implied.

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