Skip to main content
Glama
aviz92

GitHub Plus MCP Server

by aviz92

github_get_file

Read-only

Read a text file from a GitHub repository at a branch, tag, or commit. Long files are truncated and flagged, making repository file inspection clear.

Instructions

Read a text file. Long files are cut and flagged truncated. For a directory use github_list_directory.

Input Schema

NameRequiredDescriptionDefault
refNoBranch, tag or commit sha. Defaults to the repo's default branch.
pathYes
repoNoRepository as 'owner/name'. Defaults to GITHUB_MCP_DEFAULT_REPO when omitted.

Output Schema

NameRequiredDescriptionDefault
refNo
pathYes
sizeYes
contentYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered, but the description adds non-obvious behavior: long files are cut and flagged `truncated`, which tells the agent results may be incomplete. It does not state what happens with binary/non-text files or whether private repos require additional auth, leaving some behavioral ground uncovered.

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 short sentences with zero filler; the core action comes first, followed by the truncation caveat and the alternative-tool routing. Every sentence earns its place.

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?

An output schema exists so return values needn't be explained, and the description usefully covers the truncation flag that appears in output. The only gap is handling of non-text or very large/binary files, which the tool name's scope implies but does not state outright.

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 coverage is 67%, with both non-obvious parameters (ref, repo) already documented in the schema including their defaults. The description adds no parameter-level meaning, so the schema does the heavy lifting and the baseline of 3 applies.

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?

States a specific verb and resource ("Read a text file") and explicitly demarcates the boundary against a sibling: "For a directory use github_list_directory." An agent can distinguish this from the list/get siblings without opening any schema.

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?

Names the alternative tool and the condition that selects it (directories → github_list_directory), which covers the most likely confusion case. It does not address other conditions such as binary files or when to prefer listing pull request files instead, but the key routing decision is stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.