Skip to main content
Glama

add_host

Saves a new SSH server in ShellVibe after the user approves it, using only hostname and port; the user supplies credentials separately. If the host is already saved, returns its host ID instead.

Instructions

Saves a new SSH server in ShellVibe, after the user approves it in a window that shows the address you give. You give only the address: never a password, key or other credential. The user attaches their own credentials in that window. If a host with the same hostname and port is already saved, nothing is added and you get its hostId (status "exists"); a label another host already has is refused. A saved host is not granted to you: call request_host_access for it before open_session. Its host key is not trusted yet, so the first open_session may answer HOST_KEY_UNTRUSTED until the user connects once from ShellVibe. Use this only when the user asked you to work on a server that list_hosts does not have.

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": {
      "label": "<label>",
      "hostname": "<hostname>"
    },
    "name": "add_host"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoThe SSH port. Defaults to 22.
labelYesA short name the user will recognize, e.g. "web-1".
hostnameYesThe DNS name or IP address to connect to.
usernameNoThe user to log in as, if known. It is used over the user name of the identity the user attaches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/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 well: it discloses the approval window, the prohibition on passing credentials, dedupe by hostname+port returning an existing hostId with status "exists", label-collision refusal, and the HOST_KEY_UNTRUSTED first-connection caveat. It stops short of describing the response shape beyond the hostId/status case, but covers the failure modes an agent must handle.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action, then approval, parameter constraints, dedupe outcomes, and the access/trust follow-ups in a logical order. Every sentence conveys a distinct rule or failure mode; nothing is redundant with the schema.

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 four-parameter mutating tool with no annotations and no output schema, the description supplies the prerequisites, the non-obvious side effects, the collision behavior, and the required next call. An agent can invoke it and react to its outcomes without further information.

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%, so the schema already documents label, hostname, port and the username-override behavior, making 3 the baseline. The description adds the meaningful constraint that only the address is supplied and no credential ever goes in parameters, which reinforces why username is optional context rather than authentication.

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 (saves a new SSH server in ShellVibe) and immediately scopes it as requiring user approval in a dialog. It is clearly distinguishable from list_hosts, request_host_access and open_session, which it names.

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 an explicit when-to-use rule ('only when the user asked you to work on a server that list_hosts does not have') and a mandatory follow-up sequence (request_host_access before open_session). The alternatives are named rather than inferred.

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