Skip to main content
Glama

Get Repo

get_repo
Read-onlyIdempotent

Look up ONE named repository by its owner/repo slug, "facebook/react", "torvalds/linux", "vercel/next.js". Use this whenever the repository is named in the question. Answers how many stars / forks / watchers a repo has, what license and language it uses, its topics, description, open issue count, its default branch, and when it was last pushed (pushed_at).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "repo": "react",
      "owner": "facebook"
    },
    "name": "get_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name, e.g. "react". Also accepts the full slug "facebook/react".
ownerNoRepository owner (user or org), e.g. "facebook". May be omitted if `repo` carries the full "owner/repo" slug.

Output Schema

NameRequiredDescriptionDefault
urlYesRepository URL
nameYesRepository name
forksYesNumber of forks
ownerYesRepository owner login
starsYesNumber of stargazers
topicsYesRepository topics/tags
is_forkYesWhether the repository is a fork
licenseYesLicense SPDX ID or name
networkYesNetwork count
size_kbYesRepository size in kilobytes
archivedYesWhether the repository is archived
homepageYesHomepage URL
languageYesPrimary programming language
watchersYesNumber of watchers
full_nameYesFull repository name (owner/repo)
pushed_atYesLast push timestamp
created_atYesRepository creation timestamp
owner_typeYesOwner type (User/Organization)
updated_atYesLast update timestamp
visibilityYesRepository visibility (public/private)
descriptionYesRepository description
open_issuesYesNumber of open issues
subscribersYesNumber of subscribers
default_branchYesDefault branch name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / owner / description
      Previous value: -"Repository owner (user or org), e.g. \"facebook\""New value: +"Repository owner (user or org), e.g. \"facebook\". May be omitted if `repo` carries the full \"owner/repo\" slug."
    • changedInput schema / properties / repo / description
      Previous value: -"Repository name, e.g. \"react\""New value: +"Repository name, e.g. \"react\". Also accepts the full slug \"facebook/react\"."
    • changedInput schema / required
      Previous value: -[
      -  "owner",
      -  "repo"
      -]New value: +[
      +  "repo"
      +]
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "archived": {
      +      "description": "Whether the repository is archived",
      +      "type": "boolean"
      +    },
      +    "created_at": {
      +      "description": "Repository creation timestamp",
      +      "type": "string"
      +    },
      +    "default_branch": {
      +      "description": "Default branch name",
      +      "type": "string"
      +    },
      +    "description": {
      +      "description": "Repository description",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "forks": {
      +      "description": "Number of forks",
      +      "type": "number"
      +    },
      +    "full_name": {
      +      "description": "Full repository name (owner/repo)",
      +      "type": "string"
      +    },
      +    "homepage": {
      +      "description": "Homepage URL",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "is_fork": {
      +      "description": "Whether the repository is a fork",
      +      "type": "boolean"
      +    },
      +    "language": {
      +      "description": "Primary programming language",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "license": {
      +      "description": "License SPDX ID or name",
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "name": {
      +      "description": "Repository name",
      +      "type": "string"
      +    },
      +    "network": {
      +      "description": "Network count",
      +      "type": "number"
      +    },
      +    "open_issues": {
      +      "description": "Number of open issues",
      +      "type": "number"
      +    },
      +    "owner": {
      +      "description": "Repository owner login",
      +      "type": "string"
      +    },
      +    "owner_type": {
      +      "description": "Owner type (User/Organization)",
      +      "type": "string"
      +    },
      +    "pushed_at": {
      +      "description": "Last push timestamp",
      +      "type": "string"
      +    },
      +    "size_kb": {
      +      "description": "Repository size in kilobytes",
      +      "type": "number"
      +    },
      +    "stars": {
      +      "description": "Number of stargazers",
      +      "type": "number"
      +    },
      +    "subscribers": {
      +      "description": "Number of subscribers",
      +      "type": "number"
      +    },
      +    "topics": {
      +      "description": "Repository topics/tags",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "updated_at": {
      +      "description": "Last update timestamp",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "Repository URL",
      +      "type": "string"
      +    },
      +    "visibility": {
      +      "description": "Repository visibility (public/private)",
      +      "type": "string"
      +    },
      +    "watchers": {
      +      "description": "Number of watchers",
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "full_name",
      +    "description",
      +    "url",
      +    "homepage",
      +    "stars",
      +    "forks",
      +    "watchers",
      +    "open_issues",
      +    "language",
      +    "topics",
      +    "default_branch",
      +    "size_kb",
      +    "visibility",
      +    "archived",
      +    "is_fork",
      +    "license",
      +    "owner",
      +    "owner_type",
      +    "created_at",
      +    "updated_at",
      +    "pushed_at",
      +    "subscribers",
      +    "network"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "owner": "facebook",
      +    "repo": "react"
      +  },
      +  {
      +    "owner": "torvalds",
      +    "repo": "linux"
      +  }
      +]
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is fully covered and the description adds only a capability summary of answerable attributes. Behaviors an agent might actually need — what happens when the slug is unknown or the repo is private — are not addressed, and the attribute list largely restates what the output schema already exposes.

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?

Two sentences, front-loaded with the core action and identifier format before the capability list. The three example slugs are mildly redundant with the schema examples but cheap and they make the input convention unmistakable.

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?

With a full output schema, complete parameter documentation and rich annotations, the description only needs to establish selection criteria and input form, which it does. The remaining gap is failure semantics (nonexistent slug, private repo, ambiguous owner), which an agent would benefit from knowing for an open-world lookup.

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 both `repo` and `owner` are already documented, including the rule that `repo` may carry a full slug. The description's slug examples reinforce that convention but add no syntax, validation, or edge-case meaning beyond the schema, so the baseline of 3 applies.

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 verb and resource ('Look up ONE named repository') plus the exact identifier form ('owner/repo slug') with concrete slugs. The emphasis on 'ONE' distinguishes it clearly from the listing-style siblings such as list_repo_issues or github_trending_repos.

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?

'Use this whenever the repository is named in the question' gives an explicit trigger condition, and the singular-repo framing implies it is the wrong tool for browsing or enumerating repos. It stops short of naming a concrete alternative or stating an exclusion case (e.g. don't use for searching by keyword), so it is clear but not complete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.