Skip to main content
Glama
Prabhas125

universal-mcp-fs

by Prabhas125

Search File Contents

search_content
Read-onlyIdempotent

Search files in a directory for a case-sensitive substring. Returns matching lines with two lines of context; supports file pattern and result limit.

Instructions

Grep-like search: find a text query across files in a directory, returning matching lines with 2 lines of context before/after.

Args:

  • directory (string): Base directory to search within.

  • query (string): Text to search for (case-sensitive, literal substring match).

  • file_pattern (string, optional): Glob to limit which files are searched (e.g. "**/*.js"). Default: all files.

  • max_results (number, optional): Cap on returned matches. Default: 50.

Returns: matching lines with file path, line number, and surrounding context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesText to search for (literal substring, case-sensitive)
directoryYesBase directory to search within
max_resultsNoMaximum matches to return
file_patternNoGlob to limit searched files, e.g. "**/*.js"
Behavior5/5

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

Annotations already indicate read-only and non-destructive behavior. The description adds details: case-sensitive literal substring matching, 2 lines of context, and default max_results, which go beyond 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 concise, front-loaded with purpose, and well-structured with Args and Returns. No unnecessary words.

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?

The description covers key aspects like query behavior and defaults. It could mention recursive directory search explicitly, but overall it is sufficiently complete given the schema and annotations.

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?

Schema has 100% coverage with descriptions. The description adds defaults for file_pattern and max_results, providing additional guidance over the schema alone.

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 'Grep-like search: find a text query across files in a directory, returning matching lines', which specifies the verb and resource. It distinguishes from sibling tools like search_files (file names) and read_file (single file).

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 implies usage for content search but does not explicitly differentiate from sibling tools like search_files. However, the context is clear enough for an agent to understand when to use it.

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/Prabhas125/universal-mcp-fs'

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