Skip to main content
Glama

vphone_file_mkdir

Create a directory in a vPhone virtual iOS device's sandboxed filesystem, optionally creating parent directories and ignoring existing ones.

Instructions

Create a directory.

Creates a directory at the specified path. Optionally creates parent directories and/or ignores existing directories.

Args: path: Absolute directory path to create. parents: If True, create parent directories as needed. exist_ok: If True, don't error if directory exists.

Returns: FileMkdirOutput with path and creation status.

Raises: PathSecurityError: If path validation fails. NotConnectedError: If not connected to bridge.

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>"
    },
    "name": "vphone_file_mkdir"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDirectory path to create
parentsNoCreate parent directories
exist_okNoDon't error if exists

Output Schema

NameRequiredDescriptionDefault
pathYes
createdYes
successNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description does real work: it discloses that failure modes include PathSecurityError on path validation and NotConnectedError, that exist_ok suppresses the already-exists error, and that parents enables recursive creation. It still omits whether the path must be absolute (only stated in Args) and what happens if a file already occupies the path, but the error and return-type disclosure exceeds typical coverage.

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?

Organized as a docstring with Args, Returns, and Raises, which is easy to parse and front-loads the purpose. The first two lines are redundant ('Create a directory.' followed by 'Creates a directory at the specified path.'), a small waste that keeps it off a 5.

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 simple three-parameter filesystem mutation with an output schema, the description covers purpose, all parameters, the return type name, and both exception classes. The main residual gap is the lack of any state or precondition guidance (e.g., that a bridge connection is required), which matters for a tool with no annotations to fall back on.

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 the schema already documents all three parameters. The description largely restates the schema text ('Create parent directories as needed', 'don't error if directory exists'), adding only the 'absolute' qualifier on path and tying exist_ok to the suppressed error. That is a marginal gain over an already-complete schema, so the baseline 3 applies.

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?

States a specific verb and resource ('Creates a directory at the specified path'), which unambiguously identifies the operation. It does not distinguish itself from siblings such as vphone_file_upload or vphone_file_rename_confirm, but the purpose is still unmistakable.

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?

Usage is only implied by the verb: an agent infers this is the tool to call when a directory must exist before an upload. There is no explicit when-to-use guidance, no mention of the required connection state as a precondition (only the NotConnectedError raise hints at it), and no comparison to alternative file tools.

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