Skip to main content
Glama

seal-ssh-key

Destructive

Seal an existing SSH private key or generate and seal a new ed25519 pair using its full path. Store the random passphrase under a managed secret ref to protect credentials.

Instructions

dbabrain common.cli seal-ssh-key: One SSH private key to seal (or generate and seal) by its full path, and the ref for its passphrase. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • key_file (required): The key's FULL path - this command reads no configuration (rules R09).

  • passphrase_ref (required): The secret ref its random passphrase is stored under; one already holding another value is refused.

  • generate: Make a new ed25519 pair at key_file (and its .pub) instead of sealing one; never over a file.

  • comment: The .pub's comment when generating (default: the file's name).

  • also_plaintext: Also write the ref into secrets/secret_text.json, which deploy regenerates the store from (a master).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "seal-ssh-key"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description adds real value on top: 'Changes or removes something', refusal when the ref already holds another value, and the warning that also_plaintext writes into a file deploy regenerates the store from (a master). What is missing is failure/rollback behavior for the sealed key file, but the destructive profile is well disclosed.

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?

Front-loads the resource and the path plus ref, then moves to a clean bulleted field list, which suits a tool whose schema is opaque. Some waste remains: the CLI-prefixed title, the parenthetical '(rules R09)', and 'as on the command line' add little for an agent caller.

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 destructive, one-parameter command with an output schema, the description covers the destructive intent, the confirmation protocol, every request field, and the master-file side effect. The only gap is what happens to artifacts on error or how the existing key file relates to the sealed output.

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

Parameters5/5

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

Schema coverage is 0% and the only parameter is an undifferentiated free-form `request` object, so the description carries the entire burden — and it does, enumerating all five request fields with required status, meaning, defaults, and the generate/comment dependency. An agent can construct a valid request purely from this text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource: seal one SSH private key by full path, with an alternative mode (generate-then-seal). This is clearly distinct from siblings such as key-renew or key-status. Slight deduction for the 'dbabrain common.cli' prefix and inline rule reference (R09), which add noise before the actual purpose lands.

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 concrete preconditions rather than vague context: it is on the emergency-operations list, so it requires confirm:"yes" and a reason in the request. It also states the generate-vs-seal decision rule and that generate never runs over an existing file. No explicit named alternative for the same job, which keeps it from a 5.

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

Deploy Server

Other Tools