Skip to main content
Glama

Check hosts

check_hosts
Read-onlyIdempotent

Check live availability of SSH hosts by alias, bypassing the cache. Enable deep mode to test actual login and return detailed failure reasons.

Instructions

Check the availability of specific hosts right now, bypassing the cache.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deepNoFalse — TCP probe of the port ("host is up"); True — an actual login (`ssh ... true`, "key accepted, access granted"), failure reason in detail.
aliasesYesAliases from ~/.ssh/config; an unknown alias gets an unknown status.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare the safe, idempotent, read-only, open-world profile, so the description only needs to add context beyond that. 'Bypassing the cache' is a genuine behavioral disclosure not present in the annotations, but the description stays silent on the SSH-probe/authentication implications of the operation (which only the schema hints at).

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?

A single short sentence with the key scope ('right now, bypassing the cache') front-loaded and no wasted words.

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?

With a full output schema, complete parameter descriptions, and annotations covering the safety profile, the description supplies enough for correct invocation. It could note that 'deep' performs an actual login attempt, but the schema already carries that detail.

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 both aliases and deep are fully documented in the schema, including the TCP-vs-login distinction and the behavior for unknown aliases. The description adds no parameter meaning beyond that, which meets the baseline for full schema coverage.

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 ('check the availability of specific hosts') and adds a meaningful qualifier ('right now, bypassing the cache') that distinguishes it from any cached-status path. It does not explicitly name sibling tools like list_hosts or get_host, so the differentiation from those is left implicit.

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

Usage Guidelines3/5

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

'Right now, bypassing the cache' implies the tool is for cases needing fresh, real-time status rather than stored data. However, no sibling alternative is named and no explicit when/when-not condition is given, so usage is only implied.

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