Skip to main content
Glama

vphone_file_rename_preview

Preview file or directory rename/move operations and return a token to confirm the change within 5 minutes.

Instructions

Preview file rename/move operation.

Generates a preview of the rename operation. Returns a token that must be used to confirm the rename within 5 minutes.

Args: old_path: Current path of file or directory. new_path: New path for file or directory.

Returns: FileRenamePreviewOutput with preview token and overwrite status.

Raises: PathSecurityError: If either path validation fails. FileNotFoundError: If old_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": {
      "old_path": "<old_path>",
      "new_path": "<new_path>"
    },
    "name": "vphone_file_rename_preview"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_pathYesDestination path
old_pathYesSource path

Output Schema

NameRequiredDescriptionDefault
new_pathYes
old_pathYes
expires_atYes
preview_tokenYes
would_overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/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 disclose the token TTL, the overwrite status in the return, and three named failure modes (PathSecurityError, FileNotFoundError, NotConnectedError). It stops short of stating explicitly that nothing is mutated until confirm, or how the preview token behaves if it expires or is reused.

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 purpose is front-loaded in the first line, which is good, but the Args/Returns/Raises block duplicates schema and output-schema content. The value-carrying sentences are the token TTL and the error conditions; the parameter list is filler.

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 two-parameter preview tool with an output schema, the definition covers the operational contract (token, TTL, errors) that the structured fields do not. Missing only the explicit non-mutating reassurance and overwrite semantics, which are minor given the output schema documents the return shape.

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 coverage is 100%, so old_path and new_path are already documented in structured fields; the Args section merely restates 'current path' and 'new path'. The description adds no meaning beyond the schema, such as whether paths are absolute, sandboxed, or whether moving across directories is allowed.

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 opens with a specific verb+resource ('Preview file rename/move operation') and states the preview scope, so it is distinguishable from the confirm step it names functionally ('must be used to confirm the rename'). It never names the sibling tool vphone_file_rename_confirm explicitly, so routing relies on inference from the two-step flow.

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 contract is clear: generate a preview, then use the returned token to confirm, with a 5-minute deadline. That tells the agent when to use this rather than a direct rename, but there is no explicit when-not guidance (e.g., what to do if a preview already exists, or how overwrite decisions are handled).

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