Skip to main content
Glama

Hosts

hosts

Manage reachable inventory entries: list, add, test, set up, rename, or remove machines, pin SSH keys, and verify read-only and change accounts before Ansible runs.

Instructions

List, add, test, set up, rename or remove the hosts this server may reach. Adding pins the host key, asks the user in a dialog on the Mac (never ask for it in the chat), then tests both accounts: look (only reads) and change (sudo or admin). On Linux, adding also gives the look account docker ps/logs/inspect and journalctl through sudo, nothing else; setup does that for a host added earlier. Rename and remove ask nothing; they grant no access.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "hosts"
  }
}

Input Schema

NameRequiredDescriptionDefault
jumpNoadd: name of a host added with kind="jump" (a bastion, or the server a reverse tunnel ends on) to reach this host through
kindNoadd: linux (default), macos, synology, routeros, openwrt, windows, or jump (a bastion that only carries connections)
nameNothe host's name in the inventory (letters, digits, . _ -), e.g. web-1
portNoadd: SSH port. Default 22
actionYeslist (default), add, test, setup, rename or remove
groupsNoadd: extra inventory groups, e.g. ["home"]. The kind is always a group too
addressNoadd: IP address or DNS name; 127.0.0.1 for a host behind a reverse tunnel on its jump
key_fileNoadd: private key path for both accounts, e.g. ~/.ssh/ops. Default: your SSH agent
look_keyNoadd: key for the look account, if not key_file
new_nameNorename: the host's new name
look_userNoadd: the account that only reads (no sudo; RouterOS: a read-only group)
change_keyNoadd: key for the change account, if not key_file
change_userNoadd: the account that changes things (passwordless sudo; Windows: an administrator)
create_lookNoadd, Linux: log in as the change account first and create the look account if missing (no password, no sudo, no groups, the change account's keys). Default false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: adding pins a host key and triggers a user dialog on the Mac, both accounts are tested afterwards, and on Linux the look account is limited to docker ps/logs/inspect and journalctl via sudo, "nothing else." It also pre-empts a likely misuse by stating rename and remove ask nothing and grant no access.

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 action list, then ordered by workflow (add, then Linux access, then setup, then rename/remove). It is dense with nested parentheticals, which costs some readability, but essentially every clause carries distinct operational information.

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?

For a 14-parameter multi-action tool with no output schema, the description covers the risky parts well: the key dialog, account testing, and the access implications of add/setup. It does not describe what list or test return, nor failure behavior for an already-existing host, which are the remaining gaps.

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, but the description goes further by explaining the behavioral consequence of the account parameters (what look versus change can actually do, and what create_look/setup grant on Linux). It still leaves per-action parameter applicability (e.g. which fields test or remove consume) to the schema's inline descriptions.

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?

The description opens with a specific verb set and resource: "List, add, test, set up, rename or remove the hosts this server may reach," enumerating every action the enum supports. An agent can tell this is inventory/onboarding management for reachable hosts, distinct from execution tools like look or apply.

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?

It gives real sequencing guidance, notably distinguishing add from setup ("setup does that for a host added earlier") and warning to collect the host key via the Mac dialog rather than in chat. It does not explicitly route the agent to sibling tools for the actual read/change work, so the when-to-use-this-vs-alternatives picture is incomplete.

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

Deploy Server

Other Tools