Skip to main content
Glama
SSH MCP Server
by termau

remove_connection

Destructive

Removes a manually saved SSH connection from the config file by name. Use it to delete connections added via add_connection; auto-discovered BinaryLane connections cannot be removed this way.

Instructions

Remove a manual SSH connection from the config file.

Only removes connections added via add_connection (source: config). Auto-discovered BinaryLane connections cannot be removed this way.

Parameters:

  • name: Name of the connection to remove

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

Input Schema

NameRequiredDescriptionDefault
nameYesName of the connection to remove

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the description's added value is the blast radius: a config file entry is edited and only config-sourced connections are eligible. It does not disclose what happens on a non-existent or discovered name (error vs. silent no-op) or whether the config write is immediate/reversible.

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-loaded with the action and scope in the first sentence, with the eligibility constraint immediately after. The trailing parameter block duplicates the schema and is the only expendable text.

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 single-parameter config mutation whose safety profile is already in annotations, the description covers what is deleted and what is protected. Remaining gaps are minor: no error/no-op behavior for invalid names and no note on whether the change is persisted immediately.

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?

With a single parameter at 100% schema description coverage, the schema already carries the meaning. The 'Parameters: - name' block restates the schema description verbatim and adds no format hints, matching conventions, or lookup guidance (e.g., whether the name is case-sensitive or where to find valid names).

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 (remove a manual SSH connection) plus the exact scope (from the config file), and explicitly segments config-sourced connections from auto-discovered BinaryLane ones, which separates it from siblings like add_connection and refresh_connections.

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 when-to-use and when-not-to-use conditions: only connections added via add_connection (source: config) qualify, and auto-discovered connections cannot be removed this way. It falls short of a 5 because it hints at 'this way' implying an alternative path without naming the tool an agent should use instead for discovered connections.

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