Skip to main content
Glama

delete_topic

Remove a curriculum topic and all its graph connections and mentions to clean up extraction errors or unwanted entries. Linked recommendations are preserved but unlinked.

Instructions

Remove a topic from the curriculum along with all its connections and mentions. Use this to clean up extraction errors or topics that don't belong in the graph, and whenever the user asks you to forget or remove something. Recommendations linked to this topic are preserved but unlinked.

Args: name: Exact name of the topic to delete.

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

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses cascade deletion of connections and mentions, and that linked recommendations survive but are unlinked. It omits irreversibility, whether confirmation is expected, and what happens when the name doesn't match or is ambiguous — material gaps for a destructive mutation.

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?

Behavior and trigger are front-loaded in the first two sentences, and the closing Args block is short and scannable. The phrase 'whenever the user asks you to forget or remove something' slightly overlaps the earlier trigger language but does not bloat the definition.

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 single-parameter destructive tool with no annotations, the description covers purpose, trigger conditions, and side effects well, and an output schema exists so return values need not be explained. The remaining gap is failure and safety behavior — irreversibility and no-match handling — which an agent would want before invoking deletion.

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 0%, so the description must compensate; it adds the meaningful constraint that the name must be an 'exact name', implying exact-match rather than fuzzy resolution. It does not clarify case sensitivity, whitespace handling, or behavior on a miss, so compensation is partial.

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?

The description opens with a specific verb and resource ('Remove a topic from the curriculum') and immediately scopes the blast radius ('along with all its connections and mentions'). The note that linked recommendations are 'preserved but unlinked' distinguishes this from delete_recommendation, so an agent can pick the right deletion tool without opening schemas.

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?

It gives concrete when-to-use triggers: cleaning up extraction errors, removing topics that don't belong in the graph, and user requests to forget or remove something. It stops short of explicit exclusions or alternatives (e.g., use update_topic to rename, delete_recommendation to drop a recommendation), so the 'when not to' half is missing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.