Skip to main content
Glama
maniranjan2023

MCP Open Library & File Search Server

search_in_file

Search for a keyword inside a local text file. Returns matching lines and their line numbers.

Instructions

Search for a specified keyword within a given file. Returns the lines containing the keyword and their line numbers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYes
keywordYes
Behavior3/5

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

Without annotations, the description bears the full burden. It states it returns lines and line numbers, which is good, but lacks details like case sensitivity, partial matching, or handling of large files. The behavior is partially 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?

Two concise sentences, front-loaded with the main action and output. No redundant words.

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

Completeness3/5

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

For a simple 2-parameter tool with no output schema, the description covers the core function but omits contextual details like case sensitivity, encoding, or binary file handling. It is adequate but not comprehensive.

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

Parameters2/5

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

Schema description coverage is 0%, but the description adds no extra meaning beyond the parameter names. 'filePath' and 'keyword' are not elaborated (e.g., path format, match type). It provides minimal value 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 it searches for a keyword within a file and returns matching lines with line numbers. The verb 'search', resource 'file', and output are specific. The sibling 'search_author' helps distinguish it as a file-content search.

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 this tool over 'search_author' or other alternatives. The description does not mention when not to use it or any prerequisites.

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/maniranjan2023/MCP-Server'

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