Skip to main content
Glama

Copy Ssh Config

tm_remote_copy_ssh_config

Copy a local SSH config file to a remote host to synchronize client settings. Provide local and remote config paths for targeted replication.

Instructions

Copy ssh config (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.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true, so the safety profile is partly known. The description adds no behavioral context such as whether the remote SSH config is overwritten, what permissions are required, or what happens on failure.

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?

The description is short and front-loads the action, which is good. The second sentence is somewhat generic filler, but it does not bloat the description.

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?

Given a 19-parameter schema and a mutating copy operation, the description is too sparse to be complete. It does not clarify which shared params are relevant to copy_ssh_config, how it differs from the inventory variant, or what the operation modifies; an output schema helps with return values but not with invocation context.

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%, so all 19 parameters are documented in the schema itself. The description only mentions 'shared connection params' without adding meaning to any specific parameter, so the baseline of 3 applies.

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?

The first sentence states a specific verb and resource ('Copy ssh config') and scopes it with '(tm_remote)', so the basic operation is clear. However, the second sentence is generic and does not distinguish this tool from tm_inventory_copy_ssh_config or explain that the 19-param schema is a shared parameter set rather than a multi-operation tool.

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?

No guidance is given on when to use this tool versus tm_inventory_copy_ssh_config or the other tm_remote_* siblings. The phrase 'Single-host SSH operations' hints at a single-host scope but never states the alternative (inventory-wide copy) or any prerequisites.

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