Skip to main content
Glama

find_by_name

Search a directory for files and subdirectories by glob pattern, extension, or type across local and Remote-SSH/WSL workspaces.

Instructions

Search for files and subdirectories within a directory by glob pattern, extension, and type (works across Local and Remote-SSH/WSL).

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": {
      "SearchDirectory": "<SearchDirectory>"
    },
    "name": "find_by_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
TypeNoFilter by entry type.
PatternNoOptional glob pattern to match file/folder names.
ExcludesNoOptional glob patterns to exclude.
FullPathNoMatch Pattern against relative path rather than basename.
MaxDepthNoMaximum directory depth to traverse.
ExtensionsNoOptional file extensions to include (without leading dot).
SearchDirectoryYesThe root directory to search within.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose one non-obvious trait not in the schema — that it works across Local and Remote-SSH/WSL — and implies recursive traversal via 'subdirectories', but is silent on defaults (MaxDepth, Type), result limits, and what the read-only search returns.

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?

A single sentence with no wasted words, front-loading the verb, resource, and matching criteria before the environment caveat. Nothing is buried or repeated.

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?

For a read-only search with a fully documented 7-parameter schema and no output schema, the description covers purpose, matching dimensions, and environment scope. Missing only default behaviors (depth, type) and return-shape hints, which are minor for this tool class.

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% and every parameter is documented in the schema, so the baseline of 3 applies. The description restates three of the seven parameters (Pattern, Extensions, Type) but adds no format, default, or interaction detail beyond what the schema already says.

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 and resource ('Search for files and subdirectories within a directory') plus the three facets that define the match (glob pattern, extension, type). An agent can tell this is a name/structure-based lookup rather than a content search, though no sibling is named explicitly.

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 only implied: matching 'by glob pattern, extension, and type' signals this is for locating entries by name rather than searching file contents (grep_search) or enumerating one level (list_dir). There is no explicit when-to-use/when-not statement or named alternative, so the agent must infer the split.

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