Skip to main content
Glama

github_mcp.get_repository_info

Read-only

Inspect an allowlisted repository's metadata and default branch before creating a job; returns GitHub metadata, not file contents.

Instructions

Inspect an allowlisted repository's metadata, default branch and available GitHub information. Use before creating a job; remote sources may require vault credentials. Returns metadata, not file contents.

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": {
      "repository": "<repository>"
    },
    "name": "github_mcp.get_repository_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
repositoryYesAllowlisted owner/repo identifier from list_repositories.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.2
    • addedInput schema / properties / repository / description
      Added value: +"Allowlisted owner/repo identifier from list_repositories."
  2. First observedv1.0.1

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is known. The description adds real value with the allowlist constraint, the vault-credential requirement for remote sources, and the explicit note that file contents are not returned. That exceeds the annotation bar but stops short of describing pagination, rate limits, or error behavior.

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 action and ending with a clarifying scope limit. No filler or restated field names.

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?

Output schema exists, so return values need not be explained, and the description covers purpose, prerequisite timing, and credential caveats. It is nearly complete for a single-parameter read tool; only an explicit pointer to list_repositories as the source of the identifier 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?

Only one parameter, and schema description coverage is 100%, with the schema already documenting the owner/repo format and its link to list_repositories. The description's phrase 'allowlisted repository' adds no information beyond the schema, so baseline 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?

States a specific verb and resource: 'Inspect an allowlisted repository's metadata, default branch and available GitHub information.' It also draws a boundary against content-reading siblings with 'Returns metadata, not file contents,' though it never names the closest alternative, list_repositories, which is where the identifier comes from.

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?

Gives a concrete trigger ('Use before creating a job') and a caveat about vault credentials for remote sources. It implies but does not explicitly state when not to use it, and does not route to a sibling by name.

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