Skip to main content
Glama

PrivateByte

Add SSH keys to a server

add_ssh_keys
Destructive

Let SSH keys log in to a server as its administrator (root). Give key_ids of saved keys, or public_key to save a new key first and add it. The server must be running; keys already on it stay and nothing restarts. Windows servers take no SSH keys. confirm must repeat the server id, because this grants login to the machine. Needs a key with vm:destroy (and vm:write to save a new key). The account owner is told.

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": {
      "server_id": "<server_id>",
      "confirm": "<confirm>"
    },
    "name": "add_ssh_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA label for the new key
confirmYesRepeat the server id
key_idsNoIds of saved keys, from the create_server question or the ssh_keys.list operation
server_idYes
public_keyNoA new public key line, for example "ssh-ed25519 AAAA... name". Never a private key.
request_idNoAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the supplied destructiveHint=true, the description discloses the concrete blast radius: added keys grant root login, existing keys are preserved, nothing restarts, Windows servers are unsupported, and the account owner is notified. It also names the authorization model ('Needs a key with vm:destroy (and vm:write to save a new key)') and the safety interlock ('confirm must repeat the server id'), which are exactly the mutation risks an agent needs before calling.

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?

Six short sentences, front-loaded with the core effect and its two input paths, then constraints and permissions. No restatement of the name or title and no filler; every clause carries a distinct operational fact.

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 destructive, permission-gated mutation with no output schema, the definition covers preconditions, additive side effects, platform exclusion, required scopes, the confirmation guard, and owner notification. Nothing an agent must know before invoking it 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?

Schema coverage is 83%, which sets a baseline of 3 for the structured fields, but the prose adds a relationship the schema does not encode: key_ids and public_key are alternative ways to supply a key (existing vs. saved-first). It also explains why confirm exists ('because this grants login to the machine'), reinforcing the schema's terse 'Repeat the server id'.

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 first sentence names a specific verb and target ('Let SSH keys log in to a server as its administrator (root)') and immediately distinguishes the two input modes: existing 'key_ids' or a 'public_key' that is saved and then added. That is concrete enough to separate it from siblings such as add_proxy_whitelist_ip or create_server without opening any schema.

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 clear preconditions and exclusions: the server must be running, already-present keys stay, nothing restarts, and Windows servers take no SSH keys. It also points to where saved key ids come from (the create_server question or the ssh_keys.list operation). It stops short of naming a sibling to use instead when the target is a Windows server or when keys should be supplied at creation, so it is not a full when/when-not/alternative statement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources