Skip to main content
Glama

list_hosts

Retrieve all XCP-ng hypervisor hosts managed by Xen Orchestra, including hostname, address, CPU, memory, version, and enabled state; filter by name or enabled status.

Instructions

List all XCP-ng hypervisor hosts managed by Xen Orchestra. Returns hostname, address, CPU info, memory, software version, and enabled state.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
name_filterNoFilter hosts by name (case-insensitive substring match)
enabled_onlyNoOnly return enabled (active) hosts

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description has to carry the whole behavioral load. It does disclose what comes back: hostname, address, CPU info, memory, software version, and enabled state. It says nothing about read-only status, permissions, pagination, or result size, though for a simple enumeration tool those gaps are moderate.

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?

It is two sentences with no wasted wording, and the purpose is stated first. The second sentence covers return content, which is valuable because the tool has no output schema.

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?

This is a simple read-only listing tool with two optional, fully documented parameters and no nested objects. The description covers both purpose and return values, so an agent has almost everything it needs; only the relationship to get_host is missing.

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%, and both name_filter and enabled_only are already documented in the schema, including default values and matching behavior. The description adds no syntax or semantics beyond that, so it sits at the baseline.

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 and resource: 'List all XCP-ng hypervisor hosts managed by Xen Orchestra.' That is clearly distinct from sibling resources like list_vms, list_srs, and list_snapshots. It stops short of separating itself from get_host or get_host_stats, which list_hosts is closest to.

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?

The description never says when to use it instead of get_host or get_host_stats, and it gives no prerequisites. The only hint is the word 'all' in 'List all ... hosts'. The agent has to work out for itself that this tool enumerates hosts while the siblings return one host or its metrics.

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