Skip to main content
Glama

vphone_file_delete_confirm

Deletes a file after validating a preview token, ensuring the path matches the approved preview. Use it to finalize deletion only after reviewing the preview step.

Instructions

Execute file deletion.

Executes the deletion after validating the preview token. The token must be valid, not expired, and match the path exactly.

Args: path: Absolute path to delete. preview_token: Token returned by vphone_file_delete_preview. confirm: Must be True to execute deletion.

Returns: FileDeleteConfirmOutput with deletion results.

Raises: PathSecurityError: If path validation fails. VPhoneError: If preview token is invalid or expired. 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>",
      "preview_token": "<preview_token>"
    },
    "name": "vphone_file_delete_confirm"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to delete
confirmNoConfirm deletion
preview_tokenYesToken from preview step

Output Schema

NameRequiredDescriptionDefault
pathYes
successNo
freed_sizeYes
deleted_countYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 the token-validation gate, expiry behavior, exact path matching, and three specific error classes (PathSecurityError, VPhoneError, NotConnectedError) including a bridge-connection requirement. It stops short of stating irreversibility or whether recursive directory deletion is supported.

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?

Uses a clean docstring layout with Args/Returns/Raises, front-loading the action before the mechanics. Minor waste in the duplicated 'Execute file deletion' / 'Executes the deletion...' opening, and the Returns line is redundant given an output schema exists.

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 destructive two-parameter operation with no annotations, the description supplies the workflow dependency, validation rules, and error surface needed to call it safely, and an output schema covers return values. Only irreversibility/recursion 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 baseline is 3, but the description adds real meaning: preview_token is sourced from the preview step and must match the path, and confirm must be True to actually execute. Slight tension exists because confirm is optional in the schema (default true) yet described as mandatory, though the default makes them functionally consistent.

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 ('Execute file deletion') and clarifies the two-phase nature by naming the preview token from vphone_file_delete_preview. It is distinguishable from its siblings, though the opening line and the following sentence largely restate the same action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

Implies the required workflow: a preview token must first come from vphone_file_delete_preview, and it must be unexpired and path-matched. It does not explicitly say 'do not call this without running preview first' or contrast it with other file tools, but the gating conditions are clear.

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