Skip to main content
Glama
slepp
by slepp

ssh_glob

Find remote files by glob pattern over SSH, with support for wildcards, alternation, and recursive matching for precise results.

Instructions

Find remote files by name pattern over SSH — the remote counterpart of the local filename-pattern tool. Supports '', '?', '[seq]'/'[!seq]', '{a,b}' alternation, and '' for matching across multiple path segments (e.g. 'src//.ts'). A path segment starting with '.' is only matched by a pattern segment that itself starts with '.'. Enumerates under 'path' via remote find, skipping .git/.hg/.svn; matching is done locally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRemote base directory to search under. Default: '.' (the SSH login directory).
portNo
targetYesOpenSSH target such as host, alias, or user@host.
patternYesGlob pattern to match, relative to 'path', e.g. '**/*.ts' or '*.{ts,tsx}'.
timeoutNoLocal timeout in seconds.
head_limitNoCap the number of returned matches.
identity_fileNo
extra_ssh_argsNoAdditional ssh(1) flags passed verbatim, e.g. ["-J", "jumphost"]. Prefer the dedicated port, identity_file, and strict_host_key_checking parameters.
known_hosts_fileNo
strict_host_key_checkingNoBoolean or one of yes, no, ask, accept-new, off.
Behavior4/5

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

With no annotations present, the description carries the full burden of behavioral disclosure. It adds valuable details beyond the name: enumerates via remote find, skips .git/.hg/.svn directories, performs matching locally, and explains the dot-file matching rule. It does not mention potential performance implications or return format, but the disclosed behavior is substantial.

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 three sentences and front-loads the primary purpose. Every sentence adds distinct value: purpose, pattern syntax, and behavioral details (VCS skipping, local matching, dot rule). There is no filler or redundant repetition of schema fields.

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 10 parameters, no annotations, and no output schema, the description covers the key behavioral aspects: matching semantics, base directory, and VCS exclusion. It does not explicitly state the return format, but that is inferred from 'Find'. The description is largely sufficient for an agent to decide when to invoke it and how to construct patterns.

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?

Schema description coverage is 70%, and the description adds significant meaning beyond the schema. It explains the glob pattern syntax ('*', '?', '[seq]', '{a,b}', '**'), the special dot-segment matching rule, and clarifies that enumeration happens under 'path'. This goes well beyond the schema's simple 'Glob pattern to match' and 'Remote base directory to search under.'

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: 'Find remote files by name pattern over SSH' with the specific verb 'Find' and resource 'remote files'. It also differentiates itself by calling itself 'the remote counterpart of the local filename-pattern tool,' distinguishing it from other SSH operations like exec or scp.

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 provides clear context that this is the remote counterpart to a local filename-pattern tool, implying it should be used when you need to find files by name pattern over SSH. However, it does not explicitly mention when not to use it or name alternative sibling tools (e.g., ssh_grep), so it stops short of full when/when-not guidance.

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/slepp/ssh-mcp'

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