Skip to main content
Glama

generate_ssh_key

Generate a new ed25519 SSH keypair for the user, server-side. Returns the PUBLIC key (register it with the git host, e.g. as a Gitea deploy key or a GitHub account key) plus the key_id needed to bind it via attach_git_remote. The private key is encrypted at rest and is never returned on any channel — there is no private-key paste step at all.

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

Input Schema

NameRequiredDescriptionDefault
labelYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/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 well: it discloses that generation happens server-side, that the private key is encrypted at rest and never returned on any channel, and that only the public key plus key_id come back. It leaves unstated whether this persists a key the agent should later clean up via delete_ssh_key, and whether any auth/session prerequisite applies.

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?

Three sentences, front-loaded with the core action and return contract, with zero filler. The closing clause about no private-key paste step is mildly redundant with "never returned on any channel," though it earns its place as sibling disambiguation.

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 single-purpose mutation tool with an output schema already covering the return shape, the description supplies the missing security semantics and the follow-up tool to call. The only material omission is any explanation of the required label parameter.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and there is one required parameter (label), yet the description never mentions it — no guidance on what the label identifies, whether it must be unique, or how it appears in list_ssh_keys. This is the one place the description was obligated to compensate for the schema and did not.

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, resource, algorithm, and execution locus ("Generate a new ed25519 SSH keypair for the user, server-side"). It also implicitly separates itself from add_ssh_key by asserting "there is no private-key paste step at all," so an agent can tell the two apart 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear downstream context: the public key is meant to be registered with the git host (Gitea deploy key / GitHub account key) and the key_id bound via attach_git_remote, naming a concrete alternative tool. It stops short of an explicit "use this when you have no existing key; use add_ssh_key when you already have one" rule, leaving that routing to inference.

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