Skip to main content
Glama

Delete / rename / copy files

myio_file_op
Destructive

Delete, create, rename, or copy files and folders on myIO controller volumes, including cross-volume copies, with safety checks that block removing boot or referenced slots.

Instructions

File operations: delete (a file or an EMPTY folder), mkdir, rename (move within the volume: path -> to), copy (path -> to, folders recursively; on GIGA/Opta also between volumes with to_vol). The controller refuses to delete slot_0, the boot scene slot or a slot a button/timer refers to. System files need MYIO_WRITE=admin. Editor/admin level.

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": {
      "op": "<op>",
      "path": "<path>"
    },
    "name": "myio_file_op"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
toNo
volNoq = internal flash (GIGA/Opta default), s = SD card (the only volume on a Due)
pathYes
serverNocontroller name (default Ground floor)
to_volNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, but the description adds substantial context: delete only works on files or EMPTY folders, copy recurses through folders, cross-volume copies need to_vol and only work on GIGA/Opta, and the controller enforces its own refusal rules. Remaining gaps are conflict behavior (e.g. overwrite on copy/rename) and failure semantics, which are not disclosed.

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?

A single dense paragraph with the operation list front-loaded and constraints following. Every clause carries information, though the mix of operation semantics and permission notes in one block makes it slightly harder to scan than a bulleted breakdown would be.

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 6-parameter destructive tool with no output schema, the description covers the critical safety surface: what deletion refuses, write permissions, and volume rules. It stops short of describing what the tool returns or what happens on collision, which is a modest gap given the tool's risk profile.

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 description coverage is only 33%, so the description must compensate, and it does explain the path -> to direction for rename/copy and the to_vol cross-volume case. It leaves 'server' and the vol semantics only partially implied (q/s are described in the schema, not the description), so coverage is good but not complete.

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 names a specific resource (files) and enumerates the exact operations: delete, mkdir, rename, copy, with scope details (empty folder only, recursive copy). It does not distinguish itself from sibling tools such as myio_rename or myio_file_write, so an agent must infer which one to pick when a rename or write is needed.

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?

It gives useful preconditions — delete refuses slot_0, the boot scene slot, or a slot referenced by a button/timer, and system files need MYIO_WRITE=admin at editor/admin level. However, it never states when to use this tool versus the dedicated myio_rename or myio_file_write siblings, so alternative selection is left to inference.

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

Deploy Server

Other Tools