Skip to main content
Glama

ssh_mkdir

Create a directory on a remote host via SFTP. Set recursive to true to create missing parent directories (like mkdir -p) while tolerating existing intermediate ones.

Instructions

Create a directory on a remote host via SFTP. Set recursive: true to create parent directories as needed (like mkdir -p). Existing intermediate dirs are tolerated; an existing leaf path is still an error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hostYesSSH hostname or IP address
pathYesAbsolute path of the directory to create
portNoSSH port (default: 22)
usernameNoSSH username (default: current user)
recursiveNoCreate parent directories as needed (default: false). Like `mkdir -p`.
credential_idNoAlias of an SSH password configured only on the MCP server (for example, ssh1 resolves to SSH_CREDENTIAL_SSH1). Never pass a real password here.
privateKeyPathNoPath to SSH private key
Behavior4/5

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

No annotations exist, so the description carries the behavioral burden. It discloses the non-obvious mkdir -p semantics clearly: existing intermediate directories are tolerated while an existing leaf path remains an error. It could also mention authentication expectations or result/error reporting, but the most important behavioral nuances are covered.

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?

Two focused sentences earn their place: the core operation comes first, and the second sentence explains the one flag that materially changes behavior. The code-style formatting is precise and the description contains no filler.

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?

The core operation, the important flag, and the key error semantics are all present, and the schema fully covers every parameter. The description could be more explicit about which authentication path to use or what the success/error return looks like, but the tool is simple enough that an agent can invoke it correctly with current information.

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 schema already documents all seven parameters at 100% coverage, so the baseline is 3. The description adds value by clarifying the recursive behavior beyond the schema, especially the tolerated-intermediate-dirs vs valid-leaf distinction. This pushes it slightly above baseline.

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 starts with a specific action and resource: create a directory on a remote host via SFTP. This clearly distinguishes it from sibling read, write, list, and transfer tools without requiring the agent to inspect schemas.

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?

The description gives practical guidance for the recursive flag and explains important edge-case behavior, which implies the intended use. However, it never explicitly compares this to alternatives such as using ssh_exec for mkdir, so the when-to-use-vs-sibling guidance is only 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/txcxgzs/ssh-mcp'

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