Skip to main content
Glama

get_repo_stats

Read-only

Fetch comprehensive statistics for a specific GitHub repository. Returns total stars, forks, issues (open/closed), pull requests, watchers, last commit date, and contributor count. Returns metrics useful for assessing project popularity and maintenance status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository name within the owner (e.g. 'linux', 'vscode', 'gpt-2')
ownerYesGitHub username or organization name (e.g. 'torvalds', 'microsoft', 'openai')

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true. The description adds beyond this by enumerating the exact return metrics (stars, forks, issues, PRs, watchers, last commit, contributor count), giving a clear picture of what the agent can expect. It does not mention output format or pagination, but for a read-only stats tool the described scope is adequate.

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 verb and resource, then a concise list of return metrics and use case. Every sentence earns its place with no redundancy or fluff.

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 only two well-documented parameters, read-only annotations, and no output schema, the description compensates by listing all expected return fields. It gives a complete enough picture for the agent to invoke correctly, though it could note potential exclusions like private repo access or data freshness. Overall adequate for a tool of this complexity.

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 coverage is 100% — both 'owner' and 'repo' are described with examples. The description adds no parameter-specific detail beyond what the schema already provides. Baseline 3 is appropriate since the schema handles parameter semantics fully.

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?

The description uses a specific verb 'fetch' and a clear resource 'comprehensive statistics for a specific GitHub repository', listing concrete metrics. It clearly distinguishes this from siblings like compare_repos (which compares repos) and search_repos (which searches), making the purpose unmistakable.

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?

The description provides clear context by stating the tool is for 'a specific GitHub repository' and is 'useful for assessing project popularity and maintenance status'. This implies when it should be used, though it does not explicitly mention alternatives or when not to use it. With siblings visible, the context is sufficient but slightly indirect.

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.

TDQS

A4.3/5.0
Disambiguation5/5

Each tool targets a distinct task: searching, analyzing a single repo, analyzing language composition, and comparing multiple repos. Even though stats and compare both return metrics, their purposes are clearly separated (single vs. multi-repo), so no ambiguity.

Naming Consistency5/5

All tool names follow the verb_noun pattern in snake_case (compare_repos, get_repo_languages, get_repo_stats, search_repos). The verbs are semantically appropriate and consistent in style.

Tool Count5/5

The server is scoped to repository analytics and discovery, and four tools cover the core workflows without being sparse or bloated. Each tool has a clear purpose and earns its place.

Completeness4/5

The tool set covers the main steps of repository analysis: finding repos, getting overall stats, examining language breakdown, and comparing multiple candidates. Minor gaps exist (e.g., no direct tool for fetching README or file structure), but the provided surface is sufficient for the implied use case.

Resources