Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by kvmadden

Rename memory file or directory

memory.rename

Move or rename a file or directory in the shared knowledge store without overwriting; the destination path is screened before writing to prevent unsafe content.

Instructions

Move a file or directory. Never overwrites. The new path is screened before the write.

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": "memory.rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_pathYesNew path under /memories; must not exist.
old_pathYesCurrent path under /memories.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only say non-read-only and non-destructive; the description adds real value by stating it never overwrites and that the destination is screened before the write. That meaningfully de-risks the call. It still omits what happens on a failed screen, whether the move is atomic, and whether directory moves are recursive.

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, front-loaded with the action, then the two safety traits. No repetition of the title and no wasted words.

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 two-parameter path operation with annotations present and no output schema, the description covers the essential risk (no overwrite, screening). Only minor gaps remain: failure behavior when new_path exists and whether directories move recursively.

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 parameters already document the /memories root and the must-not-exist precondition, so the schema carries the load. The description adds no syntax, path semantics, or constraint beyond it; baseline 3 applies.

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?

The description gives a specific verb ("Move") and resource ("file or directory"), and the title adds the rename framing. It is clear enough to distinguish from memory.create/delete/view, though it does not explicitly contrast itself with any sibling.

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

Usage Guidelines3/5

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

Usage is only implied by "Move a file or directory" — an agent can infer this is the path-to-path relocation tool, but there is no explicit when-to-use/when-not guidance or pointer to an alternative (e.g., memory.create for copying). Adequate but with a clear gap.

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