Skip to main content
Glama
rodhayl
by rodhayl

search

Search local files and code with four modes: intelligent LLM ranking, structured symbol-aware queries, context gathering, or filename matching.

Instructions

Unified search (intelligent|structured|gather|filenames). root defaults to "." when omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction: intelligent (LLM ranking), structured (symbol-aware), gather (collect relevant files), filenames (find files/dirs by name/path)
queryYesSearch query or context description
rootNoOPTIONAL: Root directory to search. Defaults to "." (workspace root) when omitted. Use "." explicitly or specify a subdirectory path like "src/" to narrow scope.
filePatternNoFilter by file glob pattern (intelligent action)
targetTypeNoFilter by symbol type (structured action)
languagesNoLanguages to search (structured action)
pathNoPath for context gathering (gather action)
scopeNoContext scope (gather action)
strategyNoContext strategy (gather action)
maxFilesNoMaximum files to analyze (gather action)
maxResultsNoMaximum results (default: 20)
includeHiddenNoInclude hidden files/directories (filenames action, default: false)
includeDirectoriesNoInclude directory matches in results (filenames action, default: false)
includePatternsNoFile patterns to include (e.g., ["*.py", "src/**"]). If set, only matching files are searched.
excludePatternsNoFile patterns to exclude (e.g., ["venv/**", "node_modules/**"]). Uses smart defaults if not specified.
formatNoOutput format: compact (paths only), dense (minimal), detailed (full), json (raw)
deterministicNoIf true, disable LLM ranking for exhaustive exact-match results (slower but complete)
Behavior2/5

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

No annotations provided, so description carries full burden. Despite 17 parameters and 4 distinct behavioral modes (LLM ranking, symbol-aware, context gathering, filename search), description provides no behavioral context about performance, side effects, return structure, or auth requirements.

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

Conciseness3/5

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

Extremely brief (two fragments), but the root default sentence wastes space repeating schema documentation. Front-loading the action modes is efficient, though parenthetical syntax is cryptic.

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

Completeness2/5

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

Severely inadequate for a 17-parameter tool with four distinct operational modes. No output schema means description should explain return values and mode selection strategy, but it provides only a terse mode list.

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%, establishing baseline 3. Description redundantly restates root's default value already documented in schema, and lists action enum values without adding semantic relationships (e.g., which parameters are valid for which actions).

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

Purpose3/5

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

Lists four specific search modes (intelligent|structured|gather|filenames) which helps identify capabilities, but 'Unified search' is vague and doesn't distinguish from siblings like index_symbols, find_duplicates, or cross_file_links that also search/explore code.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use each action type (intelligent vs structured vs gather vs filenames) or when to choose this tool over sibling search/analysis tools. Only mentions a default parameter value.

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/rodhayl/mcpLocalHelper'

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