Skip to main content
Glama

github_get_readme

Fetch a GitHub repository README by owner and repository name, with an optional ref, to inspect project documentation without cloning.

Instructions

读取仓库 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_get_readme"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
repoYes仓库名
ownerYes仓库所有者(用户或组织)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and the only behavioral claim is '只读' (read-only), which is useful but minimal. It does not say what happens when a repository has no README, what content format is returned (raw text vs. base64), or how the optional ref defaults.

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 single sentence is front-loaded and free of waste, but its brevity reflects under-specification rather than disciplined editing. It is appropriately sized for a trivial tool, yet too thin to be genuinely helpful.

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

Completeness3/5

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

For a simple two-required-parameter read tool with no output schema or annotations, the definition covers the core operation. The missing pieces, ref semantics and no-README behavior, are real gaps an agent would hit in practice.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the one undocumented parameter, ref, is also unexplained in the description. The description adds no meaning beyond the schema's '仓库名' and '仓库所有者' labels, leaving branch/tag/commit selection semantics entirely to guesswork.

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 states a specific verb and resource: it reads a repository's README. This is distinct enough from siblings like github_get_file or github_get_repository for an agent to choose it, though it never names or contrasts those alternatives explicitly.

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?

There is no when-to-use guidance, no mention of when to prefer github_get_file with a README path, and no prerequisites such as required auth or repository visibility. The agent must infer the tool's place in the catalog on its own.

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