Skip to main content
Glama

vphone_file_delete_preview

Preview which files or directories would be deleted and get a confirmation token valid for 5 minutes before committing the deletion.

Instructions

Preview file deletion.

Generates a preview of what would be deleted. Returns a token that must be used to confirm the deletion within 5 minutes.

Args: path: Absolute path to delete (file or directory).

Returns: FileDeletePreviewOutput with preview token and would_delete list.

Raises: PathSecurityError: If path validation fails. FileNotFoundError: If path 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_delete_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to delete

Output Schema

NameRequiredDescriptionDefault
pathYes
expires_atYes
total_sizeYes
would_deleteYes
preview_tokenYes

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?

With no annotations, the description usefully discloses that this is a preview rather than an actual deletion, that the returned token expires in 5 minutes, and which errors can occur. It does not cover permission requirements or whether repeated previews invalidate prior tokens, but it provides strong behavioral context.

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 description is front-loaded with the preview purpose and token expiry, then organized with Args, Returns, and Raises sections. The Returns section is somewhat redundant given the output schema, but the structure remains efficient and easy to scan.

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 single-parameter preview tool with an output schema, this is close to complete: it covers path semantics, token lifetime, return shape, and failure modes. The main gap is not explicitly naming the confirm tool or stating whether calling preview is required before deletion.

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 already 100%, so the baseline is 3, but the description adds meaning beyond the schema by clarifying that the path must be absolute and may refer to either a file or a directory.

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?

The description clearly states a specific verb and resource: previewing file or directory deletion and generating a confirmation token. It does not explicitly name the confirm sibling, but the token workflow makes the non-destructive preview role clear.

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?

It implies the tool should be used before confirming a deletion by requiring the returned token for confirmation within 5 minutes. However, it does not explicitly say when to use this versus vphone_file_delete_confirm or whether a preview is mandatory.

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