Skip to main content
Glama
ks6573
by ks6573

search_files

Read-onlyIdempotent

Search your macOS system for files by name, content, or type. Uses Spotlight to locate documents, images, code, and more with optional filters.

Instructions

Search for files using macOS Spotlight (mdfind). Much faster than find — searches the entire system instantly. Use for finding files by name, content keywords, or type. macOS only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNoOptional type filter: 'pdf', 'image', 'video', 'audio', 'folder', 'application', 'code', or 'document'.
limitNoMaximum results to return (1–200, default 50).
queryYesFile name fragment or Spotlight query (e.g. 'budget', 'author:Alice').
scopeNoDirectory to restrict the search to (default: home directory).~
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the bar for added transparency is lower. The description adds meaningful behavioral context by revealing the underlying mechanism (Spotlight/mdfind), performance trait (much faster than find, instant system-wide search), and platform restriction (macOS only). This goes beyond the annotations.

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 compact and front-loaded with the core purpose, followed by a key advantage, usage directions, and platform constraint. Every sentence contributes value with no redundancy or 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?

For a simple search tool with four well-documented parameters and safety annotations, the description is sufficiently complete for an agent to select and invoke it. It includes platform, usage scope, and the search mechanism. While the return format is not described, the tool's output is unambiguous (file paths), and no output schema exists so it is not mandatory.

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 all parameters (kind, limit, query, scope) already have detailed descriptions in the schema. The description reinforces that searches can be by name, content, or type, which maps to the query and kind parameters, but it does not add new parameter-level information beyond what the schema provides.

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: 'Search for files using macOS Spotlight (mdfind)' and specifies the resource (macOS files), the action (search), and the scope (by name, content keywords, or type). It differentiates from sibling tools like find_large_files and grep_files by emphasizing system-wide instant search and macOS-only availability.

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 gives clear usage context: 'Use for finding files by name, content keywords, or type' and notes 'macOS only'. It also implies a preference over 'find' due to speed. However, it does not explicitly mention when not to use it (e.g., if a non-indexed search is needed) or name alternative tools for those cases.

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/ks6573/SysControl'

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