Skip to main content
Glama

esxi_api_transfer

Destructive

Handles HTTPS URLs from GuestFileManager or HttpNfcLease to transfer guest files and OVF/NFC data via PUT/POST, with dry-run previews, progress refresh, and lease Complete/Abort.

Instructions

处理 GuestFileManager 或 HttpNfcLease 返回的 HTTPS URL,完成 guest 文件/OVF-NFC 的 HTTP 阶段。

仅连接当前 ESXi 的 guestFile/NFC 路径。上传默认预览,执行需普通和高级写开关。 lease 传发现的 HttpNfcLease 引用以在下载源文件/上传时刷新进度,最后用 API 调用 Complete/Abort。 OVF 流式 VMDK 通常用 POST 和 application/x-vnd.vmware-streamVmdk;guest 文件用 PUT。 该工具不是一键 OS 安装器;guest 需要 Tools 和认证,OVA 需先取得描述符和独立磁盘数据。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
leaseNo
dry_runNo
max_bytesNo
operationYes
source_urlNo
data_base64No
http_methodNoPUT
content_typeNoapplication/octet-stream
transfer_urlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true, non-idempotent, readOnly=false, closed-world. The description adds real behavior beyond that: the dry-run/preview default, the requirement for normal and advanced write switches to actually execute, the lease-completion/abort lifecycle, and authentication prerequisites. This is meaningful context on top of the annotation baseline.

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?

Five front-loaded lines that each carry distinct information (mechanism, scoping constraint, write-switch behavior, lease lifecycle, HTTP method mapping) with a closing limits statement. It is appropriately sized for a 9-parameter, destructive transfer tool, with only minor jargon density.

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?

Given an output schema exists, return values need no explanation, and the description covers the transfer flow, HTTP verb selection, lease refresh/complete/abort, write-switch gating, and prerequisites. The remaining gap is that a 9-parameter tool with 0% schema coverage does not describe the operation types or source/data parameters, but overall it is complete enough to call correctly.

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 0% across 9 parameters, so the description must carry the burden. It partially does: it explains lease ('传发现的 HttpNfcLease 引用'), http_method/content_type (OVF streaming uses POST with application/x-vnd.vmware-streamVmdk; guest files use PUT), and touches dry_run (preview default). But operation, source_url, data_base64, and max_bytes receive no explanation, leaving several parameters undocumented in both schema and description.

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 names a specific resource and mechanism: handling HTTPS URLs returned by GuestFileManager/HttpNfcLease to complete the HTTP phase for guest-file and OVF-NFC transfers. It also clarifies what it is not ('not a one-click OS installer'), which sharpens scope. It does not, however, name a sibling tool it supersedes (e.g. esxi_datastore_transfer or esxi_transfer_start), so differentiation is only partly achieved.

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 gives usable context: only connect to the current ESXi guestFile/NFC paths, uploads are preview-by-default while execution needs write switches, and it states prerequisites (guest needs Tools/auth, OVA needs descriptor and disk data first). However, it never explicitly says when to choose this over sibling transfer tools like esxi_datastore_transfer, esxi_transfer_start, or esxi_ovf_import, so routing is left to inference.

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