Skip to main content
Glama

search_files

Search for text across all files in an app. Returns matching lines grouped by file with line numbers. Skips node_modules, .git, and binary files. Max 500 results by default.

Supports grep-like options: context lines (-A/-B/-C), file glob filtering (e.g. ".ts", "src/**/.ts"), and output modes (content, files_with_matches, count).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appYesApp ID (UUID) or subdomain
globNoFile pattern filter, e.g. "*.ts", "src/**/*.ts", "**/*.{ts,js}". Matches against relative file paths.
queryYesText or regex pattern to search for
regexNoTreat query as a regular expression (default: false)
contextNoLines of context before AND after each match (like grep -C). Max 10.
maxResultsNoMaximum number of matches to return (default: 500)
outputModeNoOutput mode: "content" (default, returns matching lines), "files_with_matches" (returns file paths only), "count" (returns match count per file).
contextAfterNoLines of context after each match (like grep -A). Max 10.
caseSensitiveNoCase-sensitive search (default: false)
contextBeforeNoLines of context before each match (like grep -B). Max 10.

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It clearly states that node_modules, .git, and binary files are skipped, that results are capped at 500 by default, and that output can be grouped by content, files, or counts. This goes well beyond the schema by revealing real execution behavior and limits.

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 tightly written, with the first sentence stating the core purpose and the second adding return behavior. The second paragraph efficiently summarizes advanced options without redundancy. Every sentence contributes meaningful detail, and the structure front-loads the most important information.

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

Completeness5/5

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

Despite having 10 parameters and no output schema, the description covers the essential behaviors: search scope, return format, exclusions, result limit, and supported grep-like options. The schema covers individual parameter specifics, so the description provides sufficient high-level context for correct tool selection and invocation.

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

Parameters4/5

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

The input schema already covers all parameters with descriptions, so the baseline is 3. The description adds value by giving concrete examples for glob patterns ('*.ts', 'src/**/*.ts'), explaining context flags (-A/-B/-C), and naming output modes. It enhances understanding beyond the raw schema definitions.

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 opens with a specific action ('Search for text across all files in an app') that clearly identifies the tool's purpose and resource. It distinguishes itself from siblings like read_file and list_files by focusing on content search with line numbers. The scope ('in an app') and the return grouping are explicitly stated.

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 context for when to use the tool: when you need to search across all files rather than reading a specific file. It does not explicitly name alternatives or state when-not-to-use, but the 'grep-like' framing and options imply its role. The exclusion of node_modules, .git, and binary files also helps set expectations.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.7/5.0
Disambiguation4/5

Most tools have clearly distinct purposes, but a few pairs could be confused: get_app vs. get_app_status both report on app state, and update_app vs. set_node_version both modify runtime configuration. Descriptions are detailed enough to mitigate most ambiguity, but the overlap is notable.

Naming Consistency4/5

Tool names largely follow a consistent verb_noun snake_case pattern (e.g., list_apps, create_app, delete_file). Minor deviations include the bare verb 'login' and the noun-first 'git_info', which break the pattern slightly but are still understandable.

Tool Count3/5

At 37 tools, the set is on the heavy side, well above the typical 3-15 range. However, the server covers a broad PaaS domain (auth, app lifecycle, file management, packages, versions, git, metrics), and each tool addresses a distinct operation. It feels over-engineered in places but not gratuitously so.

Completeness5/5

The tool surface is impressively complete for a deployment platform: authentication, app CRUD, start/stop/restart, file operations (read/write/delete/rename/search/upload), package management, version snapshots and restore, git remote and push/pull, logs, metrics, and configuration. No critical dead-ends are apparent.

Resources