Skip to main content
Glama
zhywwyzh

Global-MCP-Server

by zhywwyzh

ssh_hosts

List SSH host aliases and connection details from ~/.ssh/config to show which machines are ready for direct SSH connections.

Instructions

列出 ~/.ssh/config 中已配置的主机别名及连接信息。

返回每个 Host 的 别名 / HostName / User / Port / IdentityFile, 用于查询当前哪些机器可用 ssh_exec 直接连。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full weight. It clearly indicates the tool reads ~/.ssh/config and returns structured connection info, and it frames the behavior as a pre-flight lookup rather than a connection action. This is sufficient for a simple read-style utility, though it does not mention potential errors like an absent config file.

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?

The description is compact, scannable, and front-loaded with the action and resource. The second sentence lists return fields and the intended downstream use, all without filler or repetition.

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?

Given the zero-parameter interface and an existing output schema, the description is nearly complete for invocation. It explains where data comes from, what fields are returned, and how the result relates to ssh_exec. It could add an edge case note about a missing config file, but nothing necessary for correct invocation is missing.

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

Parameters4/5

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

The tool has zero parameters, so the description cannot benefit from or contradict the input schema. It indirectly explains the main data being produced (host connection fields), which is useful context. With no parameters, schema coverage is trivially complete and the description adds no unnecessary parameter detail.

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?

Uses a specific verb ('列出') with a concrete resource (~/.ssh/config) and enumerates the exact returned fields (alias, HostName, User, Port, IdentityFile). It also ties the purpose to 'ssh_exec', which distinguishes it from neighboring tools like ros_topic_* or exec_cmd.

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?

States the primary use case: discovering which hosts are available for direct connection with ssh_exec. This gives the agent a clear trigger condition. It does not explicitly mention when not to use it or name alternatives, but the relationship with ssh_exec is clearly implied.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhywwyzh/Global-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server