Skip to main content
Glama

find_by_name

Find files and directories matching a glob pattern like *.py within a given path. Use it instead of find or ls for targeted name searches.

Instructions

Find files or directories by name glob. Prefer this over find or ls.

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

Input Schema

NameRequiredDescriptionDefault
PathYesAbsolute directory to search.
PatternYesGlob matched against each name, such as *.py.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and discloses almost nothing beyond the verb. It never says whether the search is recursive, whether hidden entries are included, whether matching is case-sensitive, or what happens when nothing matches — all decision-relevant for a glob search tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the core purpose front-loaded and no filler. It is lean to the point of under-specification, but nothing written is wasted.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the schema fully covers both parameters. However, for a recursive-glob search tool with no annotations, the omission of recursion scope, hidden-file handling, and no-match behavior leaves real gaps.

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 description coverage is 100%, so both parameters (Path as absolute directory, Pattern as glob such as *.py) are already fully documented in the schema. The description's phrase 'name glob' adds no syntax or semantics beyond that baseline.

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 or directories) plus the matching mechanism (name glob), so an agent knows exactly what the tool returns. It does not differentiate itself from actual catalog siblings like grep_search or list_dir, only from shell commands, which keeps it short of a 5.

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 sentence 'Prefer this over find or ls' gives one routing rule, but 'find' and 'ls' are shell commands, not tools in this catalog, so it does not tell the agent when to pick this over grep_search or list_dir. No when-not guidance or exclusions are offered.

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