Skip to main content
Glama

add_ssh_key

Import an existing SSH private key the user already has (e.g. their local ~/.ssh/id_ed25519). Same validation as the web app's add-key form: OpenSSH-format RSA/Ed25519, no passphrase. The private key is encrypted at rest and never returned afterwards. Prefer generate_ssh_key unless the user explicitly wants to reuse an existing key.

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>",
      "private_key": "<private_key>"
    },
    "name": "add_ssh_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYes
private_keyYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/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 substantial work: it discloses validation rules (OpenSSH RSA/Ed25519, no passphrase), the security posture (encrypted at rest, never returned afterwards), and the web-app parity for error expectations. It stops short of stating what happens on a duplicate label, whether the key can later be replaced or deleted, or any account/auth prerequisites.

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?

Three sentences, front-loaded with the action, then constraints, then the alternative-tool rule. Every clause carries information an agent needs; nothing is padding.

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?

An output schema exists, so return values need not be described, and the format/security constraints are well covered for a simple two-parameter mutation. The remaining gap is the undefined label parameter and the absence of any statement about failure or duplicate-key behavior.

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 0%, so the description must compensate, and it does so for the risky parameter: private_key's required format, supported algorithms, and passphrase prohibition are all spelled out, which the schema does not say. The label parameter receives no explanation at all — whether it must be unique, its length, or its display purpose — leaving one of two params undefined.

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 ('Import an existing SSH private key') and immediately grounds it with a concrete example (~/.ssh/id_ed25519). It also distinguishes itself from the sibling generate_ssh_key, so an agent can choose between them without opening either schema.

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 routing rule: 'Prefer generate_ssh_key unless the user explicitly wants to reuse an existing key.' Combined with the stated precondition that the user already has the key, both the when and the when-not are covered.

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