Skip to main content
Glama

Delete Namespace

delete_namespace
DestructiveIdempotent

Permanently deletes a namespace and all entities and relations within it. If the namespace does not exist, it reports zero deletions instead of an error.

Instructions

Delete a namespace with every entity and relation in it. This cannot be undone. A namespace that does not exist is not an error; the response reports 0 deleted.

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

Input Schema

NameRequiredDescriptionDefault
namespaceYesThe namespace to delete, with everything in it

Output Schema

NameRequiredDescriptionDefault
messageYes
successYes
entityCountYes
relationCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.3/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 description earns credit for going further: it warns the operation cannot be undone and explains the non-obvious empty-result semantics ('a namespace that does not exist is not an error; the response reports 0 deleted'). That resolves the main ambiguity an agent would have about idempotent behavior.

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?

Three short sentences in descending importance: what it does, irreversibility warning, edge-case result. No filler, and the destructive warning is front-loaded right after the action.

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 single-parameter destructive tool with full annotation coverage and an output schema, everything an agent needs is present: scope, irreversibility, and behavior on a missing target. No gaps remain.

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% and the single parameter is already documented as 'The namespace to delete, with everything in it'. The description adds no format, naming, or constraint information beyond that, so the schema carries this dimension entirely.

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?

Specific verb (delete) plus resource (namespace) plus scope ('with every entity and relation in it'), which is what distinguishes it from the sibling delete_entities / delete_relations tools. An agent can tell at a glance that this is a bulk, whole-namespace removal.

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?

Clear context for when this applies: whole-namespace removal including contents. It does not explicitly say 'use delete_entities instead if you only want to remove some entities', so the exclusion is implied by the destructive scope rather than stated outright.

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