Skip to main content
Glama

Change SSH security settings

vps_set_ssh_security
Idempotent

Change a VPS's SSH hardening in sshd_config over SSH and reload sshd; open sessions stay connected. Pass only the settings to change; at least one. Read the current state with vps_get_ssh_security first. Key exchange and cipher changes are tested with sshd -t and rolled back if the test fails. Before turning passwordAuth off, make sure a key login works (vps_list_ssh_keys, vps_upload_ssh_key); if SSH is already unreachable, use vps_rescue_password_auth instead. Returns the result per setting.

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": {
      "id": "<id>"
    },
    "name": "vps_set_ssh_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe VPS ID
sha1HmacNoAllow legacy hmac-sha1 MAC algorithms. Keep false unless an old client cannot connect
bannerHiddenNoHide the Debian/Ubuntu version banner shown before login (DebianBanner no)
passwordAuthNoAllow password login (PasswordAuthentication). false leaves key login only
legacyCiphersNoAllow legacy CBC and 3DES ciphers. Keep false unless an old client cannot connect
postQuantumKexNoOffer post-quantum key exchange sntrup761x25519-sha512. Needs OpenSSH 9.0 or newer (vps_update_openssh)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare non-readonly, idempotent, non-destructive; the description adds substantive behavior the annotations cannot convey: open sessions stay connected after reload, kex/cipher changes are validated with sshd -t and rolled back on failure, and a lockout-prevention prerequisite before turning off passwordAuth. The rollback and validation semantics are exactly the risk information an agent needs before calling a mutation tool.

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?

Front-loads the action and mechanism, then moves through partial-update rule, read-first routing, rollback behavior, lockout prerequisite, and return value. Every clause carries operational information; nothing is filler despite the density.

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 6-parameter mutation tool with no output schema, the description covers the safety prerequisites, rollback behavior, session impact, per-setting return shape, and recovery path. An agent has everything needed to call it without risking a lockout.

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 100%, so the per-flag meaning is already documented; the description adds the merge/partial-update semantic ('pass only the settings to change; at least one') and the empirical note that kex and cipher changes are test-applied and rolled back, which explains why experimenting with legacyCiphers/postQuantumKex is safe. It stops short of restating individual flag tradeoffs like the legacy-client caveats in the schema.

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 ('Change a VPS's SSH hardening in sshd_config') plus the mechanism ('over SSH and reload sshd'). It is immediately distinguishable from the read-only sibling vps_get_ssh_security, which it names.

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 explicit when-to-use guidance ('Read the current state with vps_get_ssh_security first') and a key precondition for disabling password auth, routing to vps_list_ssh_keys / vps_upload_ssh_key for verification and to vps_rescue_password_auth when SSH is already unreachable. It also states the partial-update contract ('Pass only the settings to change; at least one'), which is a usage rule not present in the schema.

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.