Skip to main content
Glama

Contributor summary

contributor_summary
Read-onlyIdempotent

Count commits per author on HEAD over a chosen day range and rank them by activity. Optionally limit results to a specific file or directory.

Instructions

Count commits per author on HEAD in the last N days, most active first. Optionally restricted to a path.

Input Schema

NameRequiredDescriptionDefault
daysNoTime window in days.
pathNoRestrict to this file or directory.
repoNoRepo name or path; defaults to the first configured repo.
limitNoMaximum number of results.
includeMergesNoCount merge commits too.

Output Schema

NameRequiredDescriptionDefault
repoYesName of the repository that was queried.
windowDaysYes
contributorsYes
totalCommitsYes
scanTruncatedYes
contributorCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.5.0
    • changedInput schema / properties / days / description
      Previous value: -"Size of the time window in days."New value: +"Time window in days."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of results (1-100)."New value: +"Maximum number of results."
    • changedInput schema / properties / repo / description
      Previous value: -"Repository name or absolute path from the allowlist. Defaults to the first configured repo."New value: +"Repo name or path; defaults to the first configured repo."
  2. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description does add real context beyond that: counts are computed on HEAD only, not all refs, and output is ordered by activity. It omits that merge commits are excluded by default, a behavior that materially changes the counts.

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 tight sentences, zero filler, with the core scope constraint (HEAD, last N days) and ordering front-loaded before the optional path restriction.

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 an output schema present, return values need no explanation, and the annotations cover the safety profile, so the description's scope details are largely sufficient. The one gap is silent merge-commit handling, which a caller counting commits would want flagged.

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 days, path, repo, limit and includeMerges are all documented in the schema. The description only echoes the days window and path restriction, adding no syntax or semantics beyond what the schema already carries. 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?

Specific verb (count) plus resource (commits per author), with scope (HEAD, last N days) and ordering (most active first) stated up front. An agent can distinguish this aggregation tool from commit_search or recent_activity, though the description never names or contrasts a sibling 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 among the many commit-history siblings (recent_activity, commit_search, file_hotspots). The per-author framing implies its use case but leaves the agent to infer when to pick it over neighbors.

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