Skip to main content
Glama
samdoran

mcp_linux_ssh

by samdoran

Run SSH read only

run_ssh_read_only

Execute SSH commands on remote Linux hosts in read-only mode, blocking system modifications. Automatically adds --no-pager to systemctl commands to prevent hanging.

Instructions

Only run commands that would not make changes to the system. sudo is not allowed.

When using systemctl, make sure to add --no-pager to prevent the command from hanging.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYes
commandYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior1/5

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

The description explicitly claims the tool only runs read-only commands, but the 'readOnlyHint' annotation is false, creating a contradiction. Also lacks disclosure of error handling or behavior for write commands.

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 very concise (3 sentences) and front-loads the critical constraint (read-only). Every sentence adds value, though the contradiction undermines its effectiveness.

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?

Despite having an output schema, the description lacks behavioral detail (e.g., error handling, what happens if a write command is attempted) and provides no parameter context, making it incomplete for safe invocations.

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

Parameters1/5

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

With 0% schema description coverage and no mention of parameters in the description, the agent gets no additional meaning for 'host' or 'command' beyond the schema.

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?

The description clearly states the tool's purpose: running read-only commands via SSH, and the name reinforces this. It distinguishes from sibling 'run_ssh' by specifying the read-only constraint.

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?

The description gives usage guidance: sudo is not allowed and systemctl needs --no-pager. However, it does not explicitly state when to use this tool versus alternatives, though it's implied by the read-only focus.

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/samdoran/mcp_linux_ssh'

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