Skip to main content
Glama

Delete an agent knowledge source

delete_agent_knowledge
DestructiveIdempotent

IRREVERSIBLE: Delete an agent knowledge source

Removes one knowledge source from a voice agent: the entry is deleted and the agent no longer draws on the document. The indexed document is deleted from the voice engine as well, unless another entry or another agent still uses it. The entry must belong to this agent, otherwise the request is rejected with 404. A failure in the voice engine is logged and does not stop the local deletion. This endpoint takes no request body.

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": {
      "agentId": "<agentId>",
      "knowledgeId": "<knowledgeId>"
    },
    "name": "delete_agent_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesIdentifier of the voice agent. Accepted either as the public form `agent_12` or as the bare number `12`; the prefix is stripped before the lookup.
confirmNoLeave out on the first call. EchoCall then answers with a confirmation value. Ask the user for a clear yes, then repeat the call with the same arguments and this value.
knowledgeIdYesIdentifier of the knowledge entry to remove.

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 destructiveHint=true and idempotentHint=true, yet the description adds substantial extra behavior: irreversibility is front-loaded, cascade of the indexed document is explained with the shared-usage exception, and partial-failure semantics are disclosed ('a failure in the voice engine is logged and does not stop the local deletion'). That last detail is exactly the kind of non-obvious trait an agent could not infer from annotations.

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 risk warning leads, followed by what is removed, the cascade rule, the error condition, and failure handling — each sentence carries distinct information with no restatement of the name.

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?

With no output schema and a fully documented input schema, the description covers the remaining burden: irreversibility, cascade behavior, rejection condition, and the confirmation-value return path. Nothing material for a correct invocation is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds a relational constraint not in the schema: the entry must belong to this agent or the request is rejected with 404, which ties agentId to knowledgeId. It also clarifies 'This endpoint takes no request body', resolving how the three parameters are transmitted.

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 ('Delete an agent knowledge source') and narrows it to voice agents ('Removes one knowledge source from a voice agent'), which separates it from the chatbot counterparts in the sibling list. The scope — one entry, plus its indexed document — is unambiguous.

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 concrete preconditions and the confirmation handshake ('Leave out on the first call... repeat the call with the same arguments'), plus the ownership rule that triggers a 404. It does not explicitly route to alternatives such as cancel_agent_knowledge_crawl or refresh_agent_knowledge, so a small gap remains.

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.