Skip to main content
Glama
AyoubTRD
by AyoubTRD

Get File Content

get_file_content

Retrieve file content from a git repository to provide additional context when reviewing code changes.

Instructions

Retrieve the content of a file in a git repository. Use it when the diff doesn't provide enough context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoPathYesFull path to the git repository.
filePathYesRelative path to the file within the repository
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions the tool retrieves file content, which implies a read-only operation, but doesn't disclose behavioral traits like error handling, performance, or authentication needs. The description adds basic context but lacks depth for a tool with no annotation coverage.

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 two sentences with zero waste: the first states the purpose, and the second provides usage guidance. It's front-loaded with essential information and appropriately sized for the tool's complexity.

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 no annotations and no output schema, the description is complete enough for a simple read operation with clear purpose and usage guidelines. However, it lacks details on return format or error cases, which would be helpful for full contextual understanding.

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?

Schema description coverage is 100%, so the schema already documents both parameters (repoPath and filePath) fully. The description doesn't add any parameter-specific details beyond what the schema provides, such as format examples or constraints, meeting the baseline for high schema coverage.

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 specific action ('Retrieve the content') and resource ('a file in a git repository'), distinguishing it from siblings like get_diff (which shows differences) and get_staged_files (which lists staged files). It precisely defines what the tool does.

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?

The description explicitly states when to use this tool: 'Use it when the diff doesn't provide enough context.' This provides clear guidance on usage context and implies an alternative (get_diff), helping the agent choose between siblings effectively.

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/AyoubTRD/git-codereview-mcp'

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