Skip to main content
Glama

Robot Actions — Remote Device Control

Device file delete

device_file_delete
DestructiveIdempotent

Delete a file or directory on the device (recursive). Counterpart of ios_file_delete. NOT REVERSIBLE — there is no trash on Android. Refuses the storage roots (/, /sdcard, /storage/emulated/0, /data, /system): an agent asking to delete one of those has almost always built the path wrong, e.g. an empty variable in /sdcard/${dir}. Deleting a path that does not exist is reported as an error rather than a silent success, so a wrong path surfaces instead of reading as done.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesDevice serial number (UDID)
remotePathYesAbsolute path of the file or directory to delete

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description adds substantial context beyond them: irreversibility with no trash on Android, refusal of storage roots with a rationale (path-construction bugs like an empty variable), and error-not-silent-success semantics for non-existent paths. These are exactly the operational traits an agent needs for a destructive tool.

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?

Front-loaded with the core action and recursiveness, then layered with the highest-stakes fact (NOT REVERSIBLE), then the guard rails and error semantics. Four sentences, each carrying distinct, non-redundant information.

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 destructive two-parameter tool with no output schema, the description covers irreversibility, refusal boundaries, and error reporting. There is no output schema to explain and nothing an agent needs to call it safely that is missing.

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 both parameters are documented structurally (baseline 3). The description adds meaning to remotePath beyond the schema's terse 'Absolute path... to delete' by specifying which roots are refused and that non-existent paths error out, giving the agent real constraints on valid values.

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 ('Delete a file or directory on the device (recursive)') and explicitly distinguishes itself from its sibling ios_file_delete as the Android counterpart. An agent can identify the tool's function and platform scope 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 Guidelines4/5

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

Clearly positions itself against the ios_file_delete sibling and implies the Android-platform context, but offers no explicit when-not-to-use guidance or alternative tools for edge cases (e.g., a safer move-to-trash path does not exist, which it notes, but no alternative is suggested). Context is clear, exclusions are absent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources