Skip to main content
Glama
pranjal-sen-2004

GitHub Activity MCP Server

get_file_contents

Fetch file content from a GitHub repository by specifying owner, repo, and path. Supports optional ref to retrieve files from a specific branch, tag, or commit.

Instructions

Read the contents of a file from a GitHub repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNo
pathYes
repoYes
ownerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations present, the description carries the behavioral burden; it does clearly convey a read-only, non-destructive operation that does not take writes. It adds no further context such as the role of the optional ref parameter or base64/encoding behavior of the GitHub API, though the output schema compensates by documenting the return shape.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, tightly-worded sentence with the key action front-loaded. There is zero filler and the phrasing is appropriately sized for a unary read operation, though it leaves no room for optional-parameter details or sibling comparisons.

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?

The presence of an output schema covers return-value documentation, which lowers the burden. What remains missing is the meaning of the optional ref parameter and any routing hints against siblings, but for a straightforward read operation the essentials (owner, repo, path) are transparent and the system is usable as-is.

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%, so the description must compensate for all four parameters, and it says nothing about them. The names owner, repo, and path are fairly self-evident in a GitHub context, but the optional ref — presumably a branch, tag, or commit SHA — is completely unexplained, and the tool's own description does not clarify the owner/repo/path relationship beyond the tool name.

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 a specific verb ('read') and resource ('a file from a GitHub repository'), so an agent immediately knows what action applies to what object. Among the siblings, no other tool reads raw file contents — get_repository returns repo metadata and get_pull_request_diff returns diffs — so the description distinguishes this tool without needing to name alternatives.

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?

There is no guidance on when to use this tool versus alternatives such as get_repository or list_commits, and no excluded scenarios or prerequisites are stated. The intended context must be inferred entirely from the tool name and the single sentence, which is minimal but not explicit routing.

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/pranjal-sen-2004/github-mcp-server'

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