Skip to main content
Glama

copy_file_guest_to_host

Copy a file from a guest OS to the host machine, with automatic creation of missing destination directories. Use it to retrieve guest files for host-side analysis, backup, or processing without manual transfer.

Instructions

Copy a file from the guest OS to the host (CopyFileFromGuestToHost).

Args: vm: VM name, substring, or full .vmx path. guest_path: Source file path inside the guest OS. host_path: Destination file path on the host (parent dirs created automatically). guest_user: Guest OS username. guest_password: Guest OS password (masked in logs/responses).

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": {
      "vm": "<vm>",
      "guest_path": "<guest_path>",
      "host_path": "<host_path>"
    },
    "name": "copy_file_guest_to_host"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
host_pathYes
guest_pathYes
guest_userNo
guest_passwordNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 add real behavior: parent directories on the host are created automatically, and guest_password is masked in logs and responses. It omits important traits such as what happens if host_path already exists (overwrite vs fail), transfer size/time limits, and the failure modes when guest credentials are absent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Front-loaded one-line purpose followed by a compact Args block where each line adds information. The literal API name in backticks is the only mildly redundant element, and it is brief.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a cross-boundary file-copy mutation with five parameters and no annotations, the definition leaves out overwrite semantics, error/failure behavior, and prerequisite conditions. The presence of an output schema reduces the need to describe return values, but the operational gaps remain significant.

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 description coverage is 0%, so the description must compensate, and it largely does: it documents all five parameters, notes that vm accepts a name, substring, or full .vmx path, identifies guest_path as source and host_path as destination with auto-created parents, and explains the credential pair. The only gap is that the empty-string defaults on guest_user/guest_password are not explained (e.g., whether anonymous access is attempted).

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 (copy) and resource (file) plus the exact direction: guest OS to host, which is what separates it from the sibling copy_file_host_to_guest. It does not name the sibling explicitly, so differentiation relies on the reader noticing the direction wording, but the operative scope is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus the host-to-guest sibling, nor on prerequisites such as whether VMware Tools or guest credentials are required for the transfer to succeed. Usage must be inferred entirely from the tool name and one-line purpose.

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