Skip to main content
Glama
r28ai

GitHub + Linear Dev Workflows

by r28ai

github_repos_get_content

Read-onlyIdempotent

Read a file or list a directory from a GitHub repository, using an optional ref and empty path for the root. Returns file contents as decoded text.

Instructions

Read a file, or list a directory. Pass an empty path for the repository root. File contents come back decoded as text.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refNoThe name of the commit/branch/tag. Defaults to the repository's default branch.
pathYesThe path of the file or directory, relative to the repository root. Use an empty string for the root directory.
repoYesThe name of the repository without the `.git` extension. The name is not case sensitive.
ownerYesThe account owner of the repository. The name is not case sensitive.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered. The description adds genuinely new context by disclosing the return format ('contents come back decoded as text'), which is valuable since there is no output schema, though it omits truncation behavior for large files.

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, front-loaded with the core action and scoping hint, with zero filler.

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 read tool with no output schema, the description covers the essential behavior and the text-decoding return format. It could do more by describing what a directory listing returns or noting truncation limits on large files, but nothing critical 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%, so the schema already documents all four parameters, including the empty-string root convention that the description restates. Baseline 3 is appropriate because the description adds no parameter detail beyond the structured schema.

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 dual verb (read a file / list a directory) plus the resource and its location, so the agent can distinguish it from siblings like github_repos_get_readme and github_repos_get 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 Guidelines3/5

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

The description gives a usage hint for the empty-path case, which implies root-directory listing, but it never says when to prefer this over github_repos_get_readme, github_search_code, or github_pulls_list_files. Usage is implied rather than explicitly routed.

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

Deploy Server

Other Tools