Skip to main content
Glama

vphone_file_download

Download file content or metadata from a vPhone virtual iOS device, encoded as base64 or hex, with optional partial reads and file size limits.

Instructions

Download file content or metadata.

Downloads a file from the device. Can retrieve just metadata or the full content. Content is returned encoded as base64 or hex.

Args: path: Absolute file path to download. encoding: Content encoding ("base64" or "hex"). include_content: If True, include file content in response. max_size_mb: Maximum file size to download in megabytes. follow_symlinks: If True, follow symlinks (blocked by default). offset: Start offset for partial reads. length: Number of bytes to read (0 = entire file).

Returns: FileGetOutput with metadata and optionally content.

Raises: PathSecurityError: If path validation fails or symlink detected. FileNotFoundError: If file does not exist. 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_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile path to download
lengthNoLength for partial read (0 = all)
offsetNoStart offset for partial read
encodingNoContent encoding: base64 or hexbase64
max_size_mbNoMax file size in MB
follow_symlinksNoFollow symlinks
include_contentNoInclude file content

Output Schema

NameRequiredDescriptionDefault
dataNo
sizeYes
encodingNoFile content encoding options for transfer.base64
metadataYesFile metadata without content.
chunk_infoNo
size_warningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that content is base64/hex encoded, that symlinks are blocked by default, and it enumerates the failure modes (PathSecurityError on path validation or symlink detection, FileNotFoundError, NotConnectedError). It does not state reversibility or read-only nature explicitly, but a download is self-evidently non-mutating.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and the Raises section is high-value, but the Args block duplicates a fully documented schema field-for-field and inflates the definition without adding information. Structure is clear but the redundancy costs it.

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?

An output schema exists, so return values need not be explained, and the description still names FileGetOutput. Errors, defaults, and the symlink security posture are covered. Only minor gaps remain, such as behavior on directories or on files exceeding max_size_mb.

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 seven parameters and the baseline is 3. The description adds one genuinely new fact — symlinks are 'blocked by default' — but the rest of the Args block restates the schema near-verbatim, adding little meaning beyond it.

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 ("Download a file from the device") and clarifies the dual mode: metadata-only or full content. It distinguishes itself from the file-mutation siblings (upload, delete, rename) by being the read path, though it never names a sibling explicitly.

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 rather than stated: the metadata-only mode and the offset/length partial-read options hint at when to use each, but there is no explicit 'use this when / use X instead' routing, no guidance versus vphone_file_list, and no note that this is the read counterpart to the confirm/preview families.

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