Skip to main content
Glama
ParitoshMaurya

mcp-repo-search

read_file

Read file contents from a cloned repo by specifying a path relative to the repo root. Provides code context for analysis.

Instructions

Read a file from the cloned repo. Path is relative to repo root. Call ensure_repo first. Resets idle timer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath relative to repo root
Behavior4/5

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

With no annotations, the description carries the burden of disclosing behavior. It reveals that the path is relative to the repo root and that the tool "Resets idle timer," which is a non-obvious side effect. The read-only nature is implied by "Read" but not explicitly stated, which is acceptable for such a simple tool.

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 four short sentences, each adding value: purpose, path constraint, prerequisite, and idle timer behavior. It is front-loaded and avoids 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?

For a simple 1-parameter tool with no output schema, the description covers the core purpose, path semantics, prerequisite, and a behavioral side effect. It would be slightly more complete if it explicitly stated that the file contents are returned, but this is strongly implied by the tool name and 'read' verb.

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?

The schema already documents the single parameter 'path' with "Path relative to repo root," which is also repeated in the description. Since schema coverage is 100%, the description adds no additional semantic meaning. The baseline for high coverage is 3.

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 the tool's function: "Read a file from the cloned repo," with a specific verb and resource. It distinguishes from siblings like list_directory and search_repo by focusing on reading a single file's content. The path constraint "relative to repo root" adds precise scope.

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 provides a clear prerequisite: "Call ensure_repo first," telling the agent when this tool can be used. It does not explicitly discuss alternatives or exclusions, but the context is clear enough for a simple read operation.

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/ParitoshMaurya/mcp-repo-search'

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