Skip to main content
Glama

Read a GitHub repository

read_repo
Read-only

An open GitHub repository read through its API, never cloned: stars, forks, issues, the licence and whether it permits commercial use, stars per month and in the last 30 days, releases and contributors. depth "tree" adds two levels with tests, CI and every licence file, from the root or any folder; find searches every path by glob or name; depth "file" reads one file, as untrusted data. Says how much of GitHub's hourly allowance is left. Cached for the day. Free. Free: nothing is charged. Needs the write scope.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "<repo>"
    },
    "name": "read_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
findNoA glob (**/*.activity.ts) or a piece of a path (orchestrator). Implies depth 'find'.
pathNoFrom the repository root: the file at depth 'file' (README.md), or the folder a 'tree' or 'find' is drawn under (apps/orchestrator).
repoYesowner/name ("gitroomhq/postiz-app") or a github.com URL (a /blob/ link names the file too).
depthNo'meta' (default), 'tree' (meta plus the file tree), 'find' (paths matching find), or 'file' (one file).
budgetUsdNoOptional: the most this call may spend, in dollars, default 2, max 10.

Output Schema

NameRequiredDescriptionDefault
toolYes
mediaYes
outputNoThe tool's own result, shaped by the tool.
chargedUsdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / depth / description
      Previous value: -"'meta' (default), 'tree' (meta plus the file tree), or 'file' (meta plus one file)."New value: +"'meta' (default), 'tree' (meta plus the file tree), 'find' (paths matching find), or 'file' (one file)."
    • changedInput schema / properties / depth / enum
      Previous value: -[
      -  "meta",
      -  "tree",
      -  "file"
      -]New value: +[
      +  "meta",
      +  "tree",
      +  "file",
      +  "find"
      +]
    • addedInput schema / properties / find
      Added value: +{
      +  "description": "A glob (**/*.activity.ts) or a piece of a path (orchestrator). Implies depth 'find'.",
      +  "type": "string"
      +}
    • changedInput schema / properties / path / description
      Previous value: -"The file to read at depth 'file', from the repository root, e.g. README.md."New value: +"From the repository root: the file at depth 'file' (README.md), or the folder a 'tree' or 'find' is drawn under (apps/orchestrator)."
  2. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, openWorldHint, destructiveHint=false), and the description adds genuinely new behavior: results are cached for the day, the response reports remaining hourly GitHub allowance, file contents are returned as untrusted data, and the call needs the write OAuth scope. The untrusted-data flag and the scope prerequisite are exactly the kind of context an agent cannot get from structured fields. It is undercut by an unclear cost story ("Free. Free: nothing is charged." while the schema exposes a spend cap), which muddies rather than clarifies.

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

Conciseness3/5

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

The opening clause is front-loaded and information-dense, but the body is a semicolon-chained run-on and contains overt waste: "Free. Free: nothing is charged." says the same thing twice, and "Needs the write scope." is a dangling fragment appended without context. Tightening these two spots would materially improve it.

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 five-parameter tool with an output schema and full annotation coverage, this covers the essential operational facts: what metadata comes back, what each depth mode yields, caching, rate-limit reporting, and the trust level of file contents. The remaining gap is coherence around cost and permissions, where "free" conflicts with the budget parameter and the write-scope requirement is asserted without explaining why a read needs it.

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 100% and every parameter already carries a description, including the glob form for find, the owner/name or URL form for repo, and the enum meanings for depth, so the baseline is 3. The description does add a little beyond the schema, notably that tree pulls in two levels with tests and CI and that file output is untrusted. It does not resolve the tension between "free" and the budgetUsd cap of default 2 / max 10, which is the one parameter point that most needs explaining.

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 names a specific verb and resource ("An open GitHub repository read through its API, never cloned") and then enumerates the concrete payload: stars, forks, issues, licence and commercial-use terms, stars per month, releases, contributors. That is far more than a restatement of the name, and "never cloned" usefully distinguishes it from a checkout-style tool. It does not explicitly contrast with the listed read siblings (read_page, reference_read, brain_read), so an agent must infer the split from the subject matter alone.

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?

The description gives real routing guidance across the four modes: depth "tree" adds two levels including tests, CI and licence files, find searches every path by glob or name, depth "file" reads one file, and both tree and find can be drawn from a subfolder. That tells the agent which mode fits which question. It stops short of naming when not to use this tool or which sibling to prefer for non-GitHub content, and never states a negative case.

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.