Skip to main content
Glama

github_get_repository

Fetch read-only metadata for a GitHub repository using its owner and name to inspect repository details without making changes.

Instructions

读取一个仓库的元数据(只读)。

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_repository"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it does disclose the single most important trait: this operation is read-only and non-mutating. Beyond that it says nothing about authentication needs, behavior on private or missing repositories, or rate limits, leaving meaningful gaps for a zero-annotation tool.

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?

A single short sentence with zero wasted words, and the resource is front-loaded. It is arguably too terse rather than padded, which is a completeness issue rather than a structural one.

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?

The tool itself is simple (two required string params, no nesting), and the schema is fully documented, so the definition is close to sufficient. However, there is no output schema, so the description should at least indicate what 'metadata' encompasses (description, stars, default branch, visibility), and it does not.

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%: both `owner` and `repo` are documented inline as repository owner (user or organization) and repository name. The description adds no syntax, format, or naming-convention detail beyond that, so the baseline of 3 applies.

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: read a repository's metadata. 'Metadata' usefully distinguishes it from siblings that return file contents (github_get_file, github_get_readme) or sub-resources (github_get_commit, github_list_branches), though it never names those siblings 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 and no mention of alternatives. The parenthetical 'read-only' hints at the operation's nature but does not tell an agent when to pick this tool over github_get_file or github_search_repositories.

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