Skip to main content
Glama

github_repos_get_commit_activity_stats

Retrieve a GitHub repository's commit activity for the last year to analyze contribution trends and identify active development periods.

Instructions

Get the last year of commit activity

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

Input Schema

NameRequiredDescriptionDefault
repoYesrepo
ownerYesowner

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.4
  2. Removed
  3. Addedv1.0.2

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description bears the full burden of disclosing behavior. It only mentions the time range ('last year') but fails to note that this is a read-only operation, whether it's aggregated per week or day, or any rate limit considerations. The description is too sparse to adequately inform the agent.

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?

The description is a single, focused sentence with no extraneous words. It is front-loaded and quickly conveys the core purpose. However, it is somewhat under-specified, which prevents a perfect score.

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

Completeness2/5

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

The tool has no output schema, so the description should provide more context about what the returned data looks like (e.g., weekly aggregates, format). It only promises 'commit activity' without clarifying the structure, leaving the agent to guess the return type.

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?

The input schema provides basic 'owner' and 'repo' descriptions with 100% coverage. The tool description adds no additional meaning or usage context for these parameters beyond what the schema already defines. Baseline score of 3 is appropriate as the schema is sufficient but the description doesn't enhance it.

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 clearly states it retrieves commit activity data for a repository, with a specific time bound of 'the last year'. This distinguishes it from other repo stats tools like get_code_frequency_stats or get_punch_card_stats, though the term 'commit activity' could be more precise.

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?

No guidance is provided on when to use this tool versus the many other repository statistics tools available (e.g., get_contributors_stats, get_punch_card_stats). There is no mention of when not to use it or what makes it unique among siblings.

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

Deploy Server

Other Tools