Skip to main content
Glama
vmware-skills

VMware-Monitor

list_virtual_machines

Read-onlyIdempotent

List and filter VMware virtual machines by name, power state, or folder to resolve exact VM names before retrieving full VM details.

Instructions

[READ] List virtual machines, with filtering, sorting, and field selection.

Returns the family list envelope {items, returned, limit, total, truncated, hint}; total is the real post-filter count, so read truncated before summarising. Over 50 VMs with no limit/fields, only the first five fields below come back (mode says which). vms is a deprecated pre-1.8.0 alias of items, removed in 2.0 — read items.

Use this to resolve an exact VM name, then vm_info for detail or vm_investigation_bundle to drill into one; for a fleet-wide view start at cluster_health_summary instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax VMs (None = all).
fieldsNoAny of name, power_state, cpu, memory_mb, folder_path, guest_os, ip_address, host, uuid, tools_status (None = auto).
targetNovCenter/ESXi target from config (default if omitted).
sort_byNoname | cpu | memory_mb | power_state | folder_path.name
name_filterNoCase-insensitive substring of the VM name. Use this to find one VM by name on a large estate — it is what the "VM not found" errors elsewhere tell you to come here for.
power_stateNopoweredOn | poweredOff | suspended.
folder_filterNoCase-insensitive folder_path substring; nested folders match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.3
    • addedInput schema / properties / name_filter
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Case-insensitive substring of the VM name. Use this to find one VM by name on a large estate — it is what the \"VM not found\" errors elsewhere tell you to come here for.",
      +  "title": "Name Filter"
      +}
  2. Changed7 schema fields changedv1.9.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / fields / description
      Added value: +"Any of name, power_state, cpu, memory_mb, folder_path, guest_os, ip_address, host, uuid, tools_status (None = auto)."
    • addedInput schema / properties / folder_filter / description
      Added value: +"Case-insensitive folder_path substring; nested folders match."
    • addedInput schema / properties / limit / description
      Added value: +"Max VMs (None = all)."
    • addedInput schema / properties / power_state / description
      Added value: +"poweredOn | poweredOff | suspended."
    • addedInput schema / properties / sort_by / description
      Added value: +"name | cpu | memory_mb | power_state | folder_path."
    • addedInput schema / properties / target / description
      Added value: +"vCenter/ESXi target from config (default if omitted)."
  3. Changed1 schema field changedv1.5.22
    • addedInput schema / properties / folder_filter
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Folder Filter"
      +}
  4. Changed5 schema fields changedv1.5.18
    • addedInput schema / properties / fields
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Fields"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Limit"
      +}
    • addedInput schema / properties / power_state
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Power State"
      +}
    • addedInput schema / properties / sort_by
      Added value: +{
      +  "default": "name",
      +  "title": "Sort By",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "items": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "title": "Result",
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "list_virtual_machinesOutput",
      -  "type": "object"
      -}New value: +null
  5. First observedv0.1.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), yet the description adds substantive behavior: the {items, returned, limit, total, truncated, hint} envelope, the instruction to read `truncated` before summarising, and the non-obvious default that over 50 VMs with no limit/fields only the first five fields return. It also flags the pre-1.8.0 `vms` alias being removed in 2.0 — real operational context beyond structured data.

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 [READ] tag and purpose, then envelope semantics, then routing — a sensible order with no filler sentences. It is on the dense side (the `mode` reference is unexplained and mostly carries its weight as an aside), but nothing is redundant.

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 7-parameter, no-output-schema listing tool, the description covers the return envelope, the truncation sentinel, the default field projection, a deprecation notice, and sibling routing. An agent has everything needed to call it and interpret the result without a schema for the response.

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, and the description rises above it by explaining why `name_filter` exists ('what the "VM not found" errors elsewhere tell you to come here for') and how `limit`/`fields` interact with the 50-VM default projection. It does not, however, add format or syntax detail for sort_by, target, or power_state beyond what the schema states.

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 ('List virtual machines') plus the capabilities it supports (filtering, sorting, field selection), prefixed with a [READ] marker. It explicitly names the siblings it is not (vm_info, vm_investigation_bundle, cluster_health_summary), so an agent can place it in the fleet without opening another schema.

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?

Gives explicit routing: use this to resolve an exact VM name, then vm_info for detail or vm_investigation_bundle to drill into one, and start at cluster_health_summary for a fleet-wide view. The when-to-use-this vs when-to-use-alternatives decision is fully spelled out rather than implied.

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