Skip to main content
Glama
ssh-remote-mcp
by wcbup

Find Remote Files

ssh_find
Read-onlyIdempotent

Find files and directories matching a glob pattern under a remote directory over SSH, automatically excluding .git and node_modules to reduce noise in search results.

Instructions

Find files/directories matching a glob pattern under a remote directory. Automatically excludes .git and node_modules; prefers ripgrep (rg) on Unix when installed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "target": "<target>",
      "path": "<path>",
      "pattern": "<pattern>"
    },
    "name": "ssh_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesExplicit remote absolute path (e.g. /etc/nginx/nginx.conf or C:\Services\app.json) or home-relative ~/... path. Bare relative paths are rejected.
targetYesSSH target as configured host alias, host, user@host, user@host:port, or [ipv6]:port. Never include remote paths in target.
patternYesFilename or relative path glob pattern (e.g. '*.conf', '**/*.ts')
max_resultsNoMaximum results to return (default: 200)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower. The description still adds real behavioral value by disclosing the built-in .git/node_modules exclusions and the ripgrep backend preference, but it says nothing about result ordering, truncation when max_results is hit, or behavior on unreadable directories.

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 short sentences, zero filler, and the core matching semantics are front-loaded ahead of the secondary implementation notes.

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?

With rich annotations, full schema coverage and no output schema, the definition covers what an agent needs to invoke it correctly, including the exclusion rules that affect results. The remaining gap is how results are returned/truncated at the max_results cap.

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

Parameters3/5

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

Schema coverage is 100%, so all four parameters (including max_results default and bounds) are already documented in the schema. The description adds only that the pattern is matched 'under a remote directory' and that exclusions are applied automatically, which is marginal beyond the structured data.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('find') and resource ('files/directories matching a glob pattern under a remote directory'), which is enough to separate it from ssh_ls (directory listing) and ssh_grep (content search) implicitly. It stops short of naming those siblings explicitly, so differentiation is inferred rather than stated.

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?

Usage is implied: it's the tool for locating files by name/path pattern on a remote host. There is no explicit 'use this when... instead of ssh_ls/ssh_grep' guidance, and no mention of prerequisites such as an established connection or target format expectations.

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