Skip to main content
Glama

list_hosts

Read-onlyIdempotent

Lists registered test/build hosts with shell, GPU, path facts, and current lock state so you can verify ownership before driving a host and avoid conflicts or stuck sessions.

Instructions

List registered test/build hosts with their facts (shell, GPU, paths) and current lock state. CHECK THIS before driving any host: a fresh lock means another session/workstream owns it. Each lock carries phase (what the owner is doing), phase_age_sec and stuck — the SERVER marks a lock STUCK when its heartbeat is fresh but the phase has not moved past the configured threshold (liveness is not progress). Treat lock.stuck=true as "the owner may be hung".

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, openWorldHint=false), so the bar is lower; the description still adds real value by explaining that `stuck` is computed server-side from heartbeat freshness versus phase movement, and that `lock.stuck=true` means the owner may be hung. That is interpretation the schema cannot convey. It stops short of covering empty-list behavior or ordering.

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?

Three sentences, front-loaded with what is listed, then the call-to-action, then the interpretation rule. Every sentence earns its place; the parenthetical field list and backticked field names are compact. Slightly dense line-wrapping, but no redundant restatement of the name.

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?

With an output schema present and no parameters, the description only needs to cover purpose and how to act on results — which it does, including the non-obvious stuck-lock heuristic. Only minor gaps remain (whether an empty host list is possible, and which tool to use once a lock is detected).

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?

The tool takes zero parameters, so there is nothing to disambiguate and the baseline of 4 applies. The description instead spends its space on the semantics of returned lock fields, which is appropriate.

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?

Specific verb + resource ('List registered test/build hosts') plus an explicit statement of what is returned: facts (shell, GPU, paths) and current lock state. An agent can distinguish this from get_host (single host) or claim_host (acquire) without consulting schemas.

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

Usage Guidelines4/5

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

'CHECK THIS before driving any host' gives an explicit pre-condition for calling, with the rationale (a fresh lock means another session/workstream owns it). It does not name the concrete alternative calls (get_host, probe_host, claim_host) an agent might use once it sees a lock, so it stops short of full routing guidance.

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