Skip to main content
Glama

delete_npc

DestructiveIdempotent

Remove an existing NPC from the knowledge graph by specifying its name, keeping the MemoryMesh graph current and free of obsolete character entries.

Instructions

Delete an existing npc from the knowledge graph

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

Input Schema

NameRequiredDescriptionDefault
delete_npcYesDelete parameters for npc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructive=true, idempotent=true, and openWorld=false, so the safety profile is carried by structured data. Beyond that, the description only hints at behavior via "existing" — it does not say what happens to edges or relations pointing at the deleted NPC, whether deletion cascades, or what occurs if the name is not found.

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?

A single front-loaded sentence with no filler or redundancy. Its brevity borders on under-specification, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, nested-object graph mutation, the definition omits the consequences an agent most needs: whether linked edges are orphaned or removed, whether deletion is recoverable, and error behavior for unknown names. Annotations cover the safety signal but not these operational facts.

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% for the single nested `name` parameter, so the schema does the work and the description adds nothing beyond it. Baseline 3 applies when the schema fully documents the inputs.

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 ("Delete an existing npc") plus the scope ("from the knowledge graph"). An agent can distinguish it from add_npc and update_npc by verb, though the description never addresses how it differs from delete_nodes or delete_edges.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use guidance, no prerequisites, and no named alternative. It doesn't say whether to delete an NPC's attached edges/locations first, or to prefer update_npc for mere renaming.

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