Skip to main content
Glama

gluecron_read_file

Read-only

Read a file from a repo at a given ref. Mirrors GET /api/v2/repos/:owner/:repo/contents/:path. Returns {path, size, content, encoding, totalLines}. Pass start_line / end_line (1-based, inclusive) to read only part of a text file. A text file over ~60 KB read with no range returns its first ~60 KB of whole lines with truncated: true, startLine/endLine and a hint — ask for the next range to read on.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoBranch / tag / sha (default HEAD)
pathYes
repoYes
ownerYes
encodingNo'utf8' (default) or 'base64'
end_lineNoLast line to return (1-based, inclusive; clamped to the file's length). Text files only.
start_lineNoFirst line to return (1-based, inclusive). Text files only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / end_line
      Added value: +{
      +  "description": "Last line to return (1-based, inclusive; clamped to the file's length). Text files only.",
      +  "type": "number"
      +}
    • addedInput schema / properties / start_line
      Added value: +{
      +  "description": "First line to return (1-based, inclusive). Text files only.",
      +  "type": "number"
      +}
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources