Skip to main content
Glama
CyberKnightLabs

vmware-knight

batch_deploy_from_spec

Deploy multiple VMs from a declarative YAML spec with shared defaults and per-VM overrides. Supports full clone, template, linked clone, OVA, or empty VM creation, continuing past failures.

Instructions

[WRITE] Deploy multiple VMs in one call from a declarative YAML spec file.

Use for fleet provisioning (several VMs, shared defaults); for a single VM prefer deploy_vm_from_template, vm_clone, deploy_vm_from_ova, or deploy_linked_clone. The channel is chosen by spec keys: "source" (full clone), "template", "linked_clone: {source, snapshot}", per-VM "ova", else empty-VM creation (optionally "iso"). A "defaults" block sets cpu/memory_mb/disk_gb/network/ datastore/snapshot/power_on, overridable per VM. VMs deploy sequentially and one VM's failure does not stop the rest.

Returns: One dict per VM: name, status ("ok" or "error"), and messages with per-step results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNovCenter/ESXi target name from config.yaml; omit to use the default target.
spec_pathYesLocal filesystem path to the deploy.yaml specification file.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.12.10

TDQS

A5/5.0
Behavior5/5

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

Discloses non-obvious execution behavior: VMs deploy sequentially, one VM's failure does not stop the rest, and a per-VM status dict is returned. This goes beyond the annotations, which only indicate write/non-idempotent behavior.

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?

The description is dense but well-organized: purpose first, usage guidance second, spec semantics and failure behavior next, and Returns clearly delimited. Every sentence earns its place for a complex batch operation.

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

Completeness5/5

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

For a tool with only two parameters, the description fully covers target selection, spec file meaning, YAML channel semantics, defaults/overrides, execution order, failure isolation, and return format. Nothing essential is missing for an agent to use it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds essential meaning to spec_path by explaining the YAML contract: source/template/linked_clone/ova/iso keys, defaults block, and per-VM overrides. This is critical semantic content absent from the schema's one-line path description.

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?

Opens with a specific verb+resource+method: 'Deploy multiple VMs in one call from a declarative YAML spec file.' It clearly separates itself from single-VM siblings by naming deploy_vm_from_template, vm_clone, deploy_vm_from_ova, and deploy_linked_clone as alternatives.

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

Usage Guidelines5/5

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

States when to use it ('fleet provisioning (several VMs, shared defaults)') and when not to ('for a single VM prefer ...'). It also explains channel selection via spec keys, so the agent understands the tool covers multiple deployment modes from one spec.

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