Skip to main content
Glama

Robot Actions — Remote Device Control

Device file mkdir

device_file_mkdir
Idempotent

Create a directory on the device, including any missing parents (mkdir -p). Counterpart of ios_file_mkdir. Succeeds silently if the directory already exists. Fails with the shell error if the parent is read-only — most of the filesystem is, outside /sdcard and /data/local/tmp.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
udidYesDevice serial number (UDID)
remotePathYesAbsolute path of the directory to create

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: it creates missing parents, succeeds silently when the directory already exists (reinforcing the idempotentHint), and fails with the shell error on a read-only parent. That failure-mode and path-constraint detail is not derivable from {readOnlyHint:false, idempotentHint:true, destructiveHint:false}. It omits any note on permissions prerequisites or return payload, keeping it short of a 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 sentences, each earning its place: the core action and mkdir -p semantics first, sibling routing second, failure/constraint context last. Nothing is redundant or padded.

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 mutation tool with full annotation coverage, no output schema (so return values needn't be described), and complete schema documentation, the description supplies everything needed to invoke it correctly: parent creation, idempotency, and the read-only filesystem caveat that will most often cause failure. Only permission/auth prerequisites are left implicit.

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?

Both parameters are fully documented in the schema (udid, remotePath at 100% coverage) and the description adds no parameter-level syntax, formatting, or path-convention guidance. Baseline 3 is appropriate when the schema carries the parameter burden.

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 (create) and resource (directory on the device), plus behaviorally relevant detail (mkdir -p semantics) and an explicit sibling pointer to ios_file_mkdir. An agent can distinguish it from device_file_list, device_file_delete, and other file 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?

Situates usage via the iOS counterpart and, more usefully, the writable-location constraint ('most of the filesystem is read-only outside /sdcard and /data/local/tmp'), which effectively tells the agent where this call is viable. It stops short of naming explicit alternatives (e.g. device_shell) or stating when not to use it.

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