Skip to main content
Glama

Analyze Commit Patterns

analyze_commit_patterns
Read-onlyIdempotent

Analyze commit lists or recent history to reveal recurring development patterns and trends, helping teams understand project activity.

Instructions

Analyze patterns in a list of commits or recent history

Input Schema

NameRequiredDescriptionDefault
maxCountNoMaximum number of commits to analyze. Default: 50
use_test_dbNo

Output Schema

NameRequiredDescriptionDefault
codeNoError code (e.g. VALIDATION_ERROR, INTERNAL_ERROR)
errorNoHuman-readable error message
detailsNoAdditional error context
successYes
analysisNo
categoryNoError category (validation, query, connection, internal)
suggestionNoSuggested fix for the error
recoverableNoWhether the error is recoverable
aggregated_errorsNoDetails of individual errors in a multi-step operation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv9.0.0

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already establish that this is a safe, read-only, idempotent operation, so the description adds little. It does not explain what analysis is performed, whether it operates on a passed list versus stored history, or what use_test_db changes behaviorally.

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 short sentence with no wasted words and is front-loaded. Its brevity is efficient, though it comes at the cost of substance covered in other dimensions.

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 an output schema and annotations, so return format and safety need not be repeated. However, for an analysis tool with two parameters and a vague scope, the description leaves critical context missing: what patterns are analyzed, what input is used, and what use_test_db does.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 50%: maxCount is documented in the schema, but use_test_db has no description anywhere. The tool description provides no parameter guidance and does not compensate for the undocumented parameter or clarify how a 'list of commits' is supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description restates the name and title almost verbatim: 'Analyze patterns in a list of commits or recent history.' It does not specify what patterns are detected (authorship, timing, frequency, churn) or how this differs from siblings like get_commit_history or search_commits.

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 guidance on when to choose this tool over get_commit_history or search_commits, no prerequisites, and no exclusions. The phrase 'or recent history' hints at a context but does not tell the agent which condition selects this tool.

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