Skip to main content
Glama

SSH keys on a machine

instance_ssh_keys
DestructiveIdempotent

List, add or take off the SSH keys that can log in to a running machine. With only instance_id: the keys on it (fingerprint, comment, the saved key's name). add_ssh_key_ids / add_public_keys: more keys can log in (a teammate's, a new laptop's), at once. remove_fingerprints: those keys can't log in any more (rotate a key: add the new one and remove the old one in one call); taking keys off takes up to half a minute, and at least one key must stay. Free: it changes no billing. Keys are never returned, only fingerprints.

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": {
      "instance_id": "<instance_id>"
    },
    "name": "instance_ssh_keys"
  }
}

Input Schema

NameRequiredDescriptionDefault
instance_idYes
add_public_keysNoPublic keys that can log in too (the .pub file's line).
add_ssh_key_idsNoSaved keys (list_ssh_keys) that can log in too.
remove_fingerprintsNoFingerprints (SHA256:...) of keys on the machine to take off.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description adds genuinely new behavioral facts: removal can take up to 30 seconds, at least one key must remain on the machine, the operation has no billing impact, and key material is never returned—only fingerprints. These are exactly the operational constraints an agent cannot infer from the annotations or schema.

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?

The description is dense and front-loaded: purpose first, then per-parameter modes, then constraints and billing. Some sentences are clipped into fragments (e.g., 'Free: it changes no billing.', 'With only instance_id: the keys on it'), which is efficient but slightly awkward to parse; no sentence is outright waste.

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 mutation tool with no output schema, the description covers what an agent needs: which modes exist, the rotation pattern, a time expectation, a hard constraint on removing the last key, and the return shape (fingerprints only, never keys). Nothing material is left to inference.

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 75% and each of the three optional parameters is already documented in the schema. The description still adds meaning: it links add_ssh_key_ids to saved keys from list_ssh_keys, clarifies that add_public_keys is 'the .pub file's line', and frames remove_fingerprints in terms of revocation and rotation, which the schema does not explain.

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 compound verb set and resource: 'List, add or take off the SSH keys that can log in to a running machine.' It also names the machine scope (instance_id) and what is returned (fingerprints, comment, key name), so an agent can distinguish this from sibling tools like get_instance or list_ssh_keys without opening the 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 maps each parameter mode to an intent: only instance_id to list, add_ssh_key_ids/add_public_keys to grant access, remove_fingerprints to revoke, and it gives the rotation recipe (add new + remove old in one call). It does not name any alternative tool or state when *not* to use this one, so it falls short of full when/when-not coverage.

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