Skip to main content
Glama

Make the assistant forget a source

delete_knowledge_source
DestructiveIdempotent

Delete every passage Sparky learned from one source (an uploaded file, the websites, the social style, a taught text), so it really stops knowing it. Pass the exact source from list_knowledge_sources. Confirm with the human first. Website and social sources are re-learned on the next refresh, and the profile source when the profile is saved: to stop them for good, also remove the website or page from the brand profile with update_brand_profile.

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": {
      "source": "<source>"
    },
    "name": "delete_knowledge_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesThe exact `source` value from list_knowledge_sources.
workspaceIdNo
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/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, but the description adds behavior the annotations cannot express: the exact blast radius (every passage from one source), the reversibility caveat that website/social sources are re-learned on the next refresh and the profile source on profile save, and the workaround to make deletion permanent. That is substantive operational context beyond the structured hints.

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?

Front-loaded with the action and its scope, then the sourcing instruction, then the permanence caveat. Four sentences with no filler, though the final clause is dense and slightly over-packed relative to the rest.

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, no-output-schema tool, the description covers purpose, required parameter sourcing, human confirmation, and the critical edge case where the deletion silently reverses. An agent has everything it needs to call this correctly and warn the user appropriately.

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 67%; the description reinforces the required `source` parameter's provenance and, importantly, adds semantic meaning the schema lacks by enumerating what a source can be (uploaded file, websites, social style, taught text). The undocumented `workspaceId` is not covered anywhere, keeping this short of a 5.

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?

Names a specific verb+resource (delete a knowledge source) and immediately scopes what that means: 'every passage Sparky learned from one source (an uploaded file, the websites, the social style, a taught text)'. This distinguishes it from siblings like forget_brand_fact and delete_edit_style without needing to open any 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?

Gives the exact prerequisite ('Pass the exact `source` from list_knowledge_sources'), a safety instruction ('Confirm with the human first'), and the key alternative path: for website/social/profile sources that get re-learned, 'also remove the website or page from the brand profile with update_brand_profile'. This is explicit when-to-use, when-it-isn't-enough, and which sibling to pair with.

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