Skip to main content
Glama

Remove host

remove_host
Destructive

Delete a host added to the managed SSH config and clean up its traces, including known_hosts entries by default; optionally delete the stored sudo secret.

Instructions

Remove a host from the managed file and clean up its trace.

Touches only entries added by the server: a host from the manual config is an error. By default also cleans known_hosts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasYesAlias previously added by add_host.
drop_secretNoAlso remove the ~/.ssh/<alias>.secret file with the sudo password.
forget_knownNoAlso remove this host's entries from known_hosts.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
aliasYes
secret_removedYeswhether the ~/.ssh/<alias>.secret file was removed
known_hosts_removedYesknown_hosts entries removed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag this as destructive and non-read-only, but the description adds real behavioral detail beyond them: the failure mode for manual-config hosts, the default known_hosts cleanup, and the implicit trace cleanup. It doesn't mention permissions, reversibility, or confirmation requirements.

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?

Three short lines, front-loaded with the core action before the scope restriction and default behavior. No filler sentences, though the line breaks read more like notes than a structured description.

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 three-parameter tool with full schema coverage and an output schema, the description covers the key caveat (server-managed entries only) and default side effect. Remaining gaps are the drop_secret option and any distinction from forget_host.

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 the schema already explains alias, drop_secret, and forget_known. The description only indirectly gestures at forget_known via 'By default also cleans known_hosts' and never mentions the drop_secret option, so it adds little beyond the schema baseline.

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?

States a specific verb and resource ('Remove a host from the managed file') and immediately scopes the blast radius ('Touches only entries added by the server'). It stops short of naming how it differs from the sibling forget_host, which appears to overlap with the known_hosts cleanup mentioned here.

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 an explicit applicability constraint: only entries added by the server can be removed, and a manual-config host is an error. This effectively functions as a when-not clause. It does not, however, route the agent between this tool and the similar-sounding forget_host sibling.

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