Skip to main content
Glama

merjax_repo_read_file

Read-only

Read a single file from a repository at a given ref (branch / tag / commit). Private repos are readable when the authenticated caller has access. Returns the text content (binary files rejected).

Input Schema

NameRequiredDescriptionDefault
refNoBranch / tag / commit. Defaults to the repository's actual default branch (which may not be 'main' — e.g. 'Main').
pathYesFile path within the repo
repoYesRepo name
ownerYesRepo owner — username or organisation slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/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. The description adds genuinely new behavior: private repos are accessible when the caller is authenticated with permission, and binary files are rejected rather than returned. It stops short of describing truncation, size limits, or error behavior.

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?

Three short sentences with the core action front-loaded and no filler. The parenthetical '(binary files rejected)' is compact and informative; nothing is redundant enough to cut, though it is not maximally structured.

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 four-parameter read tool with no output schema, the description covers access preconditions, ref semantics via the schema, and the return nature (text content, binary rejected). It would be stronger with a note on large-file truncation or failure modes, but nothing essential to correct invocation is missing.

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%, including the helpful note that ref defaults to the repo's actual default branch which may not be 'main'. The description's '(branch / tag / commit)' gloss merely restates the ref schema text, adding no new meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ('Read a single file from a repository') plus the addressing scope (owner/repo/path at a given ref), which is more precise than the bare name. It does not, however, differentiate itself from near-siblings such as merjax_read_file, merjax_list_tree, or merjax_search_code, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the phrase 'Read a single file' hints at the single-file case versus tree listing or code search, but no explicit when-to-use or when-not-to-use guidance is given. The private-repo access note is a useful precondition but not a routing rule between alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources