Skip to main content
Glama

Check Ssh

tm_remote_check_ssh
Read-onlyIdempotent

Check SSH connectivity to a single host and execute remote commands or file transfers using shared connection parameters.

Instructions

Check ssh (tm_remote). Single-host SSH operations with shared connection params.

Input Schema

NameRequiredDescriptionDefault
cfgNoSSH config path; unset uses ~/.ssh/config.
cmdNoShell command (run_command).
keyNoKey path (test_key_auth/setup_passwordless).
hostNoInventory alias, or a raw hostname with an explicit user.
lcfgNoLocal SSH config (copy_ssh_config).
portNoPort; unset uses the inventory alias, else 22.
rcfgNoRemote SSH config (copy_ssh_config)./root/.ssh/config
userNoUsername; unset uses the inventory alias.
lpathNoLocal file path (send_file/receive_file).
proxyNoTeleport proxy; unset uses the alias.
rpathNoRemote file path (send_file/receive_file).
confirmNoConfirm a destructive action (remove_host_key) without elicitation.
id_fileNoPrivate key path; unset uses the alias.
new_keyNoNew private key path (rotate_key).
timeoutNoCommand timeout in seconds.
key_typeNoKey type: rsa or ed25519 (setup_passwordless/rotate_key).ed25519
certificateNoTeleport certificate; unset uses the alias.
known_hostsNoKnown hosts path (remove_host_key)./root/.ssh/known_hosts
password_refNoRuntime secret reference for the SSH password; unset uses the alias.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changedv3.4.6
    • changedInput schema / properties / certificate / default
      Previous value: -""New value: +null
    • changedInput schema / properties / certificate / description
      Previous value: -"Teleport certificate."New value: +"Teleport certificate; unset uses the alias."
    • addedInput schema / properties / cfg / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / cfg / default
      Previous value: -"/root/.ssh/config"New value: +null
    • changedInput schema / properties / cfg / description
      Previous value: -"SSH config path."New value: +"SSH config path; unset uses ~/.ssh/config."
    • removedInput schema / properties / cfg / type
      Removed value: -"string"
    • addedInput schema / properties / confirm
      Added value: +{
      +  "default": false,
      +  "description": "Confirm a destructive action (remove_host_key) without elicitation.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / host / description
      Previous value: -"Remote host."New value: +"Inventory alias, or a raw hostname with an explicit user."
    • changedInput schema / properties / id_file / default
      Previous value: -"/app/.ssh/id_ed25519"New value: +null
    • changedInput schema / properties / id_file / description
      Previous value: -"Private key path."New value: +"Private key path; unset uses the alias."
    • changedInput schema / properties / password_ref / default
      Previous value: -""New value: +null
    • changedInput schema / properties / password_ref / description
      Previous value: -"Runtime secret reference for the SSH password."New value: +"Runtime secret reference for the SSH password; unset uses the alias."
    • addedInput schema / properties / port / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / port / default
      Previous value: -22New value: +null
    • changedInput schema / properties / port / description
      Previous value: -"Port."New value: +"Port; unset uses the inventory alias, else 22."
    • removedInput schema / properties / port / type
      Removed value: -"integer"
    • changedInput schema / properties / proxy / default
      Previous value: -""New value: +null
    • changedInput schema / properties / proxy / description
      Previous value: -"Teleport proxy."New value: +"Teleport proxy; unset uses the alias."
    • changedInput schema / properties / user / default
      Previous value: -""New value: +null
    • changedInput schema / properties / user / description
      Previous value: -"Username."New value: +"Username; unset uses the inventory alias."
  2. Addedv3.3.1

TDQS

C2.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true, so the description need not repeat safety metadata. However, it adds almost no behavioral context: it does not clarify whether this is a diagnostic check, a command runner, a file-transfer helper, or a multiplexed operation surface, despite schema fields for run_command, send_file/receive_file, rotate_key, and remove_host_key.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded, but the first sentence mostly repeats the tool name and the second is a generic phrase. It is concise without being informative, so it earns a middling score rather than high marks.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 19 parameters, many operation-specific fields, no required params, and a rich sibling set, the description is far too sparse to orient an agent. An output schema exists, so return values need not be explained, but the description should at least clarify the tool's operational scope and relationship to the more specific SSH siblings.

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

Parameters3/5

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

Schema description coverage is 100%, with all 19 parameters documented in the schema, so the description does not need to explain individual parameters. The description adds only the general notion of 'shared connection params' and provides no additional meaning beyond the schema, which meets the baseline for high-coverage schemas.

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

Purpose2/5

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

The description largely restates the name and title: 'Check ssh (tm_remote)' plus the vague phrase 'Single-host SSH operations with shared connection params.' It does not specify what 'check' actually does or distinguish this tool from the many specific SSH siblings such as tm_remote_run_command, tm_remote_send_file, or tm_remote_rotate_key.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus any of the sibling SSH tools. The phrase 'Single-host SSH operations' implies broad usage but gives no exclusions, prerequisites, or alternative-routing advice despite an extensive sibling list.

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