Skip to main content
Glama

vphone_file_list

List files and directories in an allowed iOS sandbox path, optionally recursively, to inspect virtual device storage contents.

Instructions

List directory contents.

Lists files and directories in the specified path. The path must be within an allowed directory (/var/mobile/Documents, /var/mobile/Media/DCIM, /var/mobile/Media/Pictures, or /var/tmp).

Args: path: Absolute directory path to list. recursive: If True, list contents recursively.

Returns: FileListOutput with list of FileInfo entries.

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_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesDirectory path to list
recursiveNoList recursively

Output Schema

NameRequiredDescriptionDefault
pathYes
entriesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does real work: it enumerates the allowed path roots, documents the recursive flag's effect, and names both failure modes (PathSecurityError on validation failure, NotConnectedError when the bridge is down). It does not cover ordering, hidden files, or symlink handling, which keeps it below the top score.

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?

Structured as summary / Args / Returns / Raises, which front-loads the operation and then answers the obvious follow-ups. The opening pair of sentences is mildly redundant ("List directory contents" then "Lists files and directories in the specified path"), but nothing else is 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 low-complexity, two-parameter read tool this covers what an agent needs: legal paths, recursion, return type, and error surface. The output schema already defines FileListOutput/FileInfo, so the brief Returns line is sufficient; only edge-case listing behavior is left unstated.

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 the baseline is 3. The description earns an extra point by specifying that path must be an *absolute* directory path, a requirement the schema's "Directory path to list" does not state; the recursive explanation otherwise duplicates the schema.

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+resource ("List directory contents", "Lists files and directories in the specified path") that clearly separates it from siblings like vphone_file_mkdir, vphone_file_download, and the rename/delete pairs. It does not explicitly name an alternative, but the operation class is unambiguous.

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 implied by the op name rather than stated: the description never says when to prefer this over vphone_file_download or how it relates to the delete/rename preview flows. The one real constraint that helps selection — the path must be under one of four allowed directories — is stated explicitly.

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