Skip to main content
Glama

vphone_file_rename_confirm

Executes a validated file or directory rename/move by confirming the preview token and matching source and destination paths.

Instructions

Execute file rename/move operation.

Executes the rename after validating the preview token. The token must be valid, not expired, and match both paths exactly.

Args: old_path: Current path of file or directory. new_path: New path for file or directory. preview_token: Token returned by vphone_file_rename_preview. confirm: Must be True to execute rename.

Returns: FileRenameConfirmOutput with rename results.

Raises: PathSecurityError: If either 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": {
      "old_path": "<old_path>",
      "new_path": "<new_path>",
      "preview_token": "<preview_token>"
    },
    "name": "vphone_file_rename_confirm"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoConfirm rename
new_pathYesDestination path
old_pathYesSource path
preview_tokenYesToken from preview step

Output Schema

NameRequiredDescriptionDefault
successNo
new_pathYes
old_pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 preconditions (valid, unexpired, path-matching token) and names three failure modes (PathSecurityError, VPhoneError, NotConnectedError). It omits what happens if the destination already exists — overwrite vs. error — which is the key behavioral unknown for a move operation.

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?

Front-loaded with the action, then organized into Args/Returns/Raises blocks. The opening two sentences overlap slightly ('Execute file rename/move operation' then 'Executes the rename'), but the structure is scannable and nearly every line adds information.

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 the brief Returns line suffices, and error conditions are spelled out for a tool with no annotations. The remaining gap is destination-collision/overwrite semantics, which matters for a destructive move operation.

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 adds real meaning by explaining that preview_token must originate from vphone_file_rename_preview and must match both paths exactly, and that confirm must be True to execute. It leaves the confirm=False behavior undefined.

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?

States a specific verb and resource ('Execute file rename/move operation') and ties itself to the preview sibling by naming vphone_file_rename_preview as the token source. An agent can tell this is the execution half of a two-step rename workflow without opening either schema.

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?

The two-step workflow is clear: the token must come from the preview call and be valid, unexpired, and matching both paths. It does not explicitly state what to do if no preview has been run, nor when to prefer this over the preview tool, but the sequencing is strongly implied.

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