Skip to main content
Glama
amrsohil

Agent Ransack MCP

by amrsohil

search_files_content

Search a directory for files matching a name pattern and optionally locate text or regex inside those files, with recursive subfolder support.

Instructions

Search a folder using Agent Ransack (flpsearch.exe). Finds files by name pattern and optionally searches file contents. Use for large trees, regex-heavy searches, or cases where built-in search is insufficient. Omit containingText for filename-only search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regexNoTreat containingText as a regular expression (-cex). Default: false
folderYesAbsolute path to the directory to search
matchCaseNoCase-sensitive content search (-cm). Default: false
subfoldersNoSearch subfolders recursively. Default: true
filePatternNoFile name pattern, e.g. "*.cs" or "*.tsx". Default: "*.*"
containingTextNoText or regex to find inside files. Omit for filename-only search.
maxLinesPerFileNoMaximum matching lines to return per file (-ol). Optional.
Behavior3/5

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

No annotations provided, so description carries full burden. It mentions using an external executable and the ability to search by name/content, but does not detail behavior like performance, permission requirements, or return format. Moderately transparent.

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?

Three concise sentences, each adding value. Front-loaded with purpose and main use case. No wasted words, well-structured.

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?

Given 7 parameters, no output schema, and no annotations, the description covers purpose, usage scenarios, and parameter relationship (containingText omission). Lacks return format details but is sufficient for a search tool. Adequate.

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 coverage is 100%, baseline 3. Description adds value by clarifying the omission of containingText for filename-only search and implicitly covering regex, which goes beyond schema repetition. Slightly above baseline.

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 states the tool searches a folder using Agent Ransack for files by name pattern and optionally file contents, which is a specific verb+resource. It distinguishes from built-in search, fulfilling purpose clarity exceptionally well.

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

Usage Guidelines5/5

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

Explicitly states when to use: for large trees, regex-heavy searches, or when built-in search is insufficient. Also gives guidance on omitting containingText for filename-only search. Provides clear usage context.

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/amrsohil/Agent-ransack-MCP-cursor'

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