Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by bmdy6

move_document

Destructive

Move or rename one document within a chosen scope without changing its content; target path must be new, and emptied old folders are removed.

Instructions

Move or rename one document within its scope; content is unchanged.

Use it to place a file under its topic directory or drop a legacy filename prefix. The target must not exist; emptied old folders are removed.

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": {
      "scope": "<scope>",
      "path": "<path>",
      "new_path": "<new_path>"
    },
    "name": "move_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
scopeYes
new_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety profile is partly covered. The description adds real value beyond them: content is preserved, the destination must not already exist, and emptied source folders are deleted as a side effect. It stops short of noting permissions or failure modes for the collision case.

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 tight sentences, front-loaded with the operation and its invariant, followed by use cases and preconditions. No redundant restatement of the tool name.

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?

An output schema exists, so return values need no explanation, and annotations cover the safety profile. The description is nearly complete for a three-parameter mutation, with the undefined 'scope' parameter as the remaining gap.

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 0% with only bare titles (Path, Scope, New Path), so the description must carry the load. It clarifies that new_path is the destination and that it must not exist, and implies path→new_path is a rename-or-relocate. However, 'scope' is never explained, leaving one of three required parameters undefined.

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 pair (move or rename) and resource (one document), plus the key invariant 'content is unchanged', which separates it from content-mutating siblings like apply_change. It does not name a sibling tool explicitly, so it falls short of the top band.

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?

Gives concrete when-to-use cases: relocating a file under its topic directory or stripping a legacy filename prefix. It also states the precondition that the target must not exist, which functions as a when-not rule. Alternatives (e.g. create_document for new files) are implied rather than named.

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