Skip to main content
Glama

Rename Namespace

rename_namespace
Destructive

Rename an existing namespace and move all its entities and relations to the new name; rejects missing namespaces or duplicate target names instead of merging them.

Instructions

Rename a namespace: every entity and relation in it moves to the new name. Fails if the namespace does not exist, or if the new name already exists, since namespaces are never merged.

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>",
      "newNamespace": "<newNamespace>"
    },
    "name": "rename_namespace"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceYesThe current name of the namespace to rename; it must exist
newNamespaceYesThe new name of the namespace; it must not exist

Output Schema

NameRequiredDescriptionDefault
messageYes
successYes
entityCountYes
relationCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavioral context: the rename is a bulk move of all contained entities and relations, namespaces are never merged, and the operation fails rather than merging when the target exists. It stops short of saying whether the old name becomes free for reuse or what permissions are required, which keeps it from a 5.

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?

Two sentences, zero filler, front-loaded with the effect of the operation and followed by the failure conditions. Every clause carries information an agent needs.

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 destructive mutation with an output schema and full annotation coverage, the description supplies the essential effect and failure semantics. The only minor gap is that it doesn't mention side effects on anything referencing the namespace externally or the permissions needed, but those are not required to call it correctly.

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 both parameters are already documented in-schema with their existence constraints ('must exist' / 'must not exist'). The description restates these constraints but adds no syntax, format, or naming-rule detail beyond the schema, so baseline 3 applies.

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+resource ('Rename a namespace') and immediately clarifies the scope of the operation: every entity and relation in the namespace moves to the new name. This is precise enough to distinguish it from sibling operations like create_namespace or delete_namespace without opening 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 Guidelines4/5

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

The description gives clear preconditions for calling the tool — the source namespace must exist and the target name must not — which is exactly the guidance an agent needs to avoid a failed call. It does not explicitly name an alternative (e.g., 'use create_namespace + move entities instead'), but the failure semantics make the boundary of usage clear.

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