Skip to main content
Glama

list_hosts

Lists every SSH host registered in the current workspace that MCP agents can see, including access status. Use it first to find a hostId before requesting access and opening a session.

Instructions

Start here to run anything on a remote server over SSH. Lists every host registered in this client's workspace that is visible to MCP agents (a host owner can hide any host from agents entirely; hidden hosts never appear here). Returns {"workspace": {"id", "name"}, "hosts": [...]}. IMPORTANT: this token is bound to ONE workspace for its whole life, named in "workspace" — switching workspaces in the ShellVibe window does not change what this tool returns, and hosts saved in another workspace are never listed here. If the user asks for a host that is missing, tell them which workspace you can see and that the host may live in a different one, which this connection cannot see. For each host this reports its maxMode (the most any grant there can allow), whether the caller currently has access ("granted"/"none") and, if granted, the access mode. The hostId returned here is the ONLY handle any MCP tool ever gives you on a host: hostname, port, username, and credentials are never returned by this or any other tool. To act on a host, request access with request_host_access, then open_session with its hostId.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the token's permanent single-workspace binding, that UI workspace switching does not change results, that hidden hosts are invisible, that hostId is the only handle ever exposed, and that hostname/port/username/credentials are never returned anywhere.

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 key routing sentence and organized around purpose, return shape, workspace binding, and next steps. It is dense and mostly earns its length, though the inline JSON return sketch and the workspace caveat run together in a single long block without formatting breaks.

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?

There is no output schema, so describing the returned object shape and per-host fields (maxMode, granted/none, access mode) is essential and present, along with the follow-up tool chain. Nothing an agent needs to call this correctly or interpret results is missing.

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 per the baseline this scores 4. The description adds relevant meaning around outputs (maxMode, granted/none, access mode) rather than parameters, which is useful but outside this dimension.

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 ('Lists every host registered in this client's workspace') and frames the tool's role as the entry point ('Start here to run anything on a remote server over SSH'), which clearly distinguishes it from open_session, request_host_access, and the run_* siblings.

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 request_host_access then open_session to act on a host, and prescribes behavior when a requested host is missing ('tell them which workspace you can see and that the host may live in a different one'). It even covers the when-not case implicitly by explaining hidden hosts and other workspaces never appear.

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