Skip to main content
Glama

vphone_file_upload

Uploads new file content to a virtual iOS device at an absolute path without overwriting existing files. Validates the path against allowed directories and accepts base64 or hex data.

Instructions

Upload file content (no overwrite).

Uploads a file to the device. Fails if the file already exists. The path must be within an allowed directory.

Args: path: Absolute destination file path. data: File content encoded as base64 or hex. encoding: Content encoding ("base64" or "hex"). permissions: Unix file permissions (e.g., "644").

Returns: FilePutOutput with path and size.

Raises: PathSecurityError: If path validation fails. FileExistsError: If file already exists. 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>",
      "data": "<data>"
    },
    "name": "vphone_file_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesFile content (base64 or hex)
pathYesDestination path
encodingNoContent encodingbase64
permissionsNoUnix permissions (e.g., 644)644

Output Schema

NameRequiredDescriptionDefault
pathYes
sizeYes
successNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the no-overwrite semantic, the allowed-directory constraint, and three named failure modes (PathSecurityError, FileExistsError, NotConnectedError), plus the preconditions for the last one. It stops short of stating size limits, atomicity, or whether a failed upload leaves partial state, which keeps it from 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.

Conciseness4/5

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

The summary line with the critical 'no overwrite' caveat is front-loaded, and the subsequent Args/Returns/Raises structure is easy to scan. It loses a point because the Args section duplicates the fully-covered input schema verbatim, which is redundant text an agent already has.

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?

Complexity is low (2 required params, no nesting) and the definition covers purpose, preconditions, failure modes, and return type; an output schema also exists so return values need no elaboration. What is missing is only edge-case guidance — behavior on partial uploads or the remedy after a FileExistsError.

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% and all four parameters are already documented in the schema, so the baseline of 3 applies. The description's Args block largely restates the schema — the only additions are that path is 'absolute' and the encoding values ('base64' or 'hex'), which add marginal meaning but no validation rules or format constraints beyond what structured fields provide.

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?

The definition opens with a specific verb+resource ('Upload file content') and immediately qualifies it with a distinguishing behavior ('no overwrite'), reinforced by 'Fails if the file already exists.' Against siblings like vphone_file_download, vphone_file_list, and vphone_file_mkdir, an agent can tell exactly what operation this performs 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 Guidelines3/5

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

Usage is implied rather than prescribed: the 'no overwrite' clause signals this tool is not for replacing existing files, and 'path must be within an allowed directory' gives a precondition. However, it never says what to do when a file does exist — e.g., whether the agent should call vphone_file_delete_preview/confirm first — nor does it describe when to prefer this over any alternative flow.

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