Skip to main content
Glama

Stash — Shared AI Memory

Move or rename namespace

mv
DestructiveIdempotent

Rename or move a namespace and all its descendants atomically. Pins set at those namespaces follow the move. The new parent must already exist (call mkns first if needed). Cannot move root, cannot move to an existing path, cannot move into own subtree.

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": {
      "old_path": "<old_path>",
      "new_path": "<new_path>"
    },
    "name": "mv"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_pathYesTarget namespace path. Its parent must already exist.
old_pathYesCurrent namespace path.

Output Schema

NameRequiredDescriptionDefault
new_pathYes
old_pathYes
next_actionsNo
namespaces_movedYes

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds genuinely non-derivable behavior: the move is atomic, descendants come along, and pins at those namespaces follow. It still doesn't say what breaks at the old path or how references into the moved subtree behave, which matters for a destructive operation.

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?

Four short sentences with the core semantics front-loaded, followed by prerequisite, then constraints. No filler or restatement of the tool name.

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?

With full schema coverage, rich annotations, and an output schema, the remaining burden is operational semantics — atomicity, descendant and pin behavior, and the three failure boundaries — all of which are covered.

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 coverage is 100% and both fields already document 'current' vs 'target' path with the parent-exists requirement, so the description adds little. The own-subtree restriction is the only extra meaning, and it is framed as a general constraint rather than tied to new_path.

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 and resource ('Rename or move a namespace and all its descendants') plus the atomic scope, which immediately distinguishes it from mkns (creation) or write (content mutation). An agent can tell what operation this performs without opening the 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 explicit preconditions and routing ('The new parent must already exist (call mkns first if needed)') and three concrete when-not cases: root, an existing path, and its own subtree. That is when-to-use, prerequisites, and exclusions in one compact block.

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