Skip to main content
Glama

ssh_get_local_info

Read-onlyIdempotent

Retrieve OS, home directory, current working directory, and path style (Windows or POSIX) of the MCP server to determine the correct local_path format for file transfers.

Instructions

Return OS, home directory, cwd, and path style of the machine running the MCP server.

Call this before ssh_upload_file or ssh_download_file to discover the correct local_path format (Windows backslash vs POSIX forward-slash).

Args: response_format: 'json' (default) or 'markdown'.

Returns: OS info including: os, home, cwd, path_style ('windows' or 'posix').

Examples: - Before uploading: ssh_get_local_info() → learn that local_path needs Windows format - Debugging path errors: confirm the server's working directory

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
response_formatNojson

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description does not contradict these and adds details about the return fields (os, home, cwd, path_style) and the two response formats. No additional behavioral traits are disclosed beyond what annotations imply, but the description is consistent and informative.

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 concise and well-structured. It begins with the core purpose, then provides usage guidance, followed by structured sections for Args, Returns, and Examples. Every sentence adds value without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (one optional parameter, non-destructive, read-only), the description covers purpose, usage, parameter details, return fields, and examples. The inclusion of an output schema is noted, but the description itself is complete for an agent to use the tool correctly.

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 only parameter, response_format, is documented with its default value and enum options in the 'Args' section of the description. Since schema coverage is 0%, the description fully carries the burden of explaining the parameter, which it does adequately.

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 returns OS, home directory, cwd, and path style of the MCP server machine. It provides a specific verb and resource, and distinguishes itself from sibling tools like ssh_upload_file and ssh_download_file by explicitly stating when to call it beforehand.

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

Usage Guidelines5/5

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

The description explicitly says 'Call this before ssh_upload_file or ssh_download_file to discover the correct local_path format' and also mentions debugging path errors. This provides clear guidance on when to use the tool and the context for its use.

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/muradmalik23/sshand'

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