Skip to main content
Glama
mcp-synology

mcp-synology

delete_files

Destructive

Delete exact files or folders on a Synology NAS, recursively by default; items go to the recycle bin when available, otherwise deletion is permanent.

Instructions

Delete files or folders. A folder is deleted with everything in it (recursive, default true). On a share with a recycle bin, deleted items go to the bin (empty folders aren't kept): list_recycle_bin shows them and restore_from_recycle_bin brings them back. Without a bin, and for anything inside a bin (/<share>/#recycle/…), deletion is permanent. Paths are exact, not wildcard patterns, and if any path is missing nothing is deleted. A whole shared folder (/video), recycle bin (/video/#recycle) or user's home folder (/homes/<user>) is refused: delete its items by path. So is a path with a ., .. or empty part, or a NUL. A long delete keeps running on the NAS and returns a handle for file_task.

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": {
      "paths": "<paths>"
    },
    "name": "delete_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesExact paths of the files or folders to delete (`/video/Downloads/old.mkv`); wildcards aren't expanded.
recursiveNoDelete a folder with everything in it (default true); with `false`, a folder that isn't empty is refused and kept.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.9.1
    • addedInput schema / properties / paths / description
      Added value: +"Exact paths of the files or folders to delete (`/video/Downloads/old.mkv`); wildcards aren't expanded."
    • addedInput schema / properties / recursive / description
      Added value: +"Delete a folder with everything in it (default true); with `false`, a folder that isn't empty is refused and kept."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "title": "Result",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "tool_delete_filesOutput",
      -  "type": "object"
      -}New value: +null
  2. Addedv0.7.1

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the destructiveHint annotation it discloses atomicity ('if any path is missing nothing is deleted'), the recursive default, that empty folders aren't kept in the bin, the exact-refusal set (share roots, `#recycle`, `/homes/<user>`, `.`/`..`/empty/NUL parts), and that a long delete persists server-side and returns a file_task handle.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then progressively narrower constraints; nearly every clause carries actionable information. It is dense and parenthetical-heavy, requiring careful parsing of one long final paragraph.

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?

No output schema exists, and the description still covers permanence semantics, refusal conditions, and the async file_task handoff for long deletes — everything an agent needs to call this destructured tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema lacks: paths are exact and wildcards aren't expanded, and `recursive=false` causes a non-empty folder to be kept rather than partially deleted.

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?

Opens with a specific verb and resource ('Delete files or folders') and immediately scopes it to exact paths rather than patterns, which an agent can distinguish from search/list siblings without opening a 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?

Explains when deletion is recoverable vs permanent (recycle-bin shares vs no bin vs paths inside `#recycle`) and routes undo flows to list_recycle_bin and restore_from_recycle_bin. It does not address when to prefer more specialized deleters such as delete_photos, so it stops short of full alternative routing.

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