Skip to main content
Glama

Git Repository Analytics

git_analytics
Read-onlyIdempotent

Computes read-only analytics from local Git history for contributors, churn, activity, summaries, and file stats to help assess repository trends.

Instructions

Read-only repository analytics computed from local git history. Use action=contributors|churn|activity|summary|file-stats.

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": {
      "action": "<action>"
    },
    "name": "git_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAnalytics operation.
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
response_formatNoOutput format for the response.markdown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact, that analytics are computed from the local repository history, but says nothing about cost, repository size limits, or what each action produces.

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?

Two short sentences with the core purpose front-loaded and no filler. The second sentence is largely redundant with the action enum, which is the only mild inefficiency.

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

Completeness3/5

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

With only three simple parameters and full annotation coverage, the definition is callable as written. However, a five-action analytics tool with no output schema leaves the agent unable to predict what contributors, churn, activity, summary, or file-stats actually return, which is a meaningful gap for choosing the right action.

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%, including the repo_path fallback to GIT_REPO_PATH/--repo-path and the response_format default, so the schema carries the parameter burden. The description's enumeration of action values duplicates the enum without explaining what any action computes, adding no meaning beyond the schema.

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 states a specific verb and resource: analytics computed from local git history, with a read-only qualifier. It is clear enough to separate this from mutation siblings, but it never names or contrasts with likely alternatives such as git_history or git_commits, leaving the boundary to inference.

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?

The only guidance is 'Use action=contributors|churn|activity|summary|file-stats', which restates the schema enum rather than explaining when to choose this tool over git_history, git_commits, or git_status. There are no exclusions, prerequisites, or selection criteria for the individual actions.

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