Skip to main content
Glama

github_repos_get_readme

Retrieves a GitHub repository's README from the default branch or a specified commit, branch, or tag to review setup and usage instructions.

Instructions

Get a repository README

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": {
      "owner": "<owner>",
      "repo": "<repo>"
    },
    "name": "github_repos_get_readme"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoThe name of the commit/branch/tag. Default: the repository’s default branch.
repoYesrepo
ownerYesowner

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.4
  2. Removed
  3. Addedv1.0.2

TDQS

C2.9/5.0
Behavior2/5

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

The description is minimal and does not disclose behavioral traits such as whether the tool returns raw content or metadata, what happens if the README does not exist (e.g., error vs. empty response), or any authentication requirements. With no annotations provided, the description should carry more burden but fails to do so.

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?

The description is concise with a single sentence. It is front-loaded with the action, but it could be more informative without losing conciseness. Still, it is efficient and not verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of output schema, the description should explain what the tool returns (e.g., README content, metadata). It does not describe error cases or provide context on how the 'ref' parameter affects behavior. The tool is simple but the description is incomplete for an agent to fully understand its use.

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?

All three parameters have descriptions in the input schema (100% coverage), so the description does not need to add much. However, the description adds no extra meaning beyond the schema—'owner' and 'repo' are trivial. The 'ref' parameter is well-described in the schema, so the baseline of 3 is appropriate.

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 'Get a repository README' clearly states the action and resource. However, it does not distinguish from sibling tools like 'github_repos_get_readme_in_directory', which retrieves a README from a subdirectory, so the purpose lacks differentiation.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. The description does not mention the optional 'ref' parameter for specifying a branch/tag, nor does it explain scenarios where this tool is preferred over other README-related tools.

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