Skip to main content
Glama
mcp-synology

mcp-synology

rename

Renames a file or folder in place; if the new name is already taken in that folder, the change is refused and nothing is replaced.

Instructions

Rename a file or folder in place. If the new name is already taken in that folder, DSM refuses and nothing is replaced. To move something to another folder, use move_files. A whole shared folder (/video), recycle bin or user's home folder (/homes/<user>) is refused.

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": {
      "path": "<path>",
      "new_name": "<new_name>"
    },
    "name": "rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesThe file or folder to rename (`/video/TV Shows/Severence`).
new_nameYesThe new name only, not a path, `.` or `..` (`Severance`); no whitespace at its ends, no invisible character where Unicode doesn't use one, no control or direction-changing characters, and not `#recycle` at a shared or home folder's top.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.1
    • changedInput schema / properties / new_name / description
      Previous value: -"The new name only, not a path (`Severance`)."New value: +"The new name only, not a path, `.` or `..` (`Severance`); no whitespace at its ends, no invisible character where Unicode doesn't use one, no control or direction-changing characters, and not `#recycle` at a shared or home folder's top."
  2. Changed3 schema fields changedv0.9.1
    • addedInput schema / properties / new_name / description
      Added value: +"The new name only, not a path (`Severance`)."
    • addedInput schema / properties / path / description
      Added value: +"The file or folder to rename (`/video/TV Shows/Severence`)."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "tool_renameOutput",
      -  "type": "object"
      -}New value: +null
  3. Addedv0.7.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, and the description reinforces non-destructiveness by stating that a name collision causes DSM to refuse and replace nothing. It also discloses scope restrictions that would otherwise only surface as errors. It stops short of covering permission requirements or error surfacing, so not a full 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?

Three short sentences, front-loaded with the operation, then the collision behavior, then the alternative tool and the refusal cases. No redundancy and nothing that does not earn its place.

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 two-parameter mutation with no output schema, the description covers the action, the failure mode on name collision, the sibling to use for relocation, and the paths that will be rejected. An agent has everything it needs to call this correctly and interpret refusals.

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%, so both parameters are already documented with examples and constraints. The description adds context only indirectly through 'in place' and the refusal rules; it introduces no meaning beyond the schema's own descriptions. 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 and resource ('Rename a file or folder in place') with scope narrowed to in-place renaming, which distinguishes it from move_files by name. An agent can classify the operation 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?

Explicitly routes the agent to the sibling for the common near-miss case ('To move something to another folder, use move_files') and enumerates conditions where the call will be refused (shared folder root, recycle bin, home folder). Both the when and the when-not are present.

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