Skip to main content
Glama

hotspots

Read-onlyIdempotent

Rank repository files by change frequency and churn over a date range to show where risk and maintenance cost concentrate.

Instructions

Files ranked by how often they changed in the period, then by churn (added + deleted lines). Frequently changed, high-churn files are where risk and maintenance cost concentrate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository alias, see the git-insights://repos resource
limitNoMaximum number of items to return
sinceNoStart of the period (ISO date, inclusive, UTC); omit for all
untilNoEnd of the period (ISO date, inclusive, UTC); omit for now

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYes
sinceYes
untilYes
hotspotsYesRanked by commits, then churn
total_commitsYesNon-merge commits in the period

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 and side-effect profile is fully covered without the description. The description adds the conceptual ranking semantics (frequency first, churn tiebreaker), which is useful context but no operational traits such as pagination or limits.

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 compact sentences with no filler; the ranking rule is front-loaded and the rationale follows. Slight redundancy between the sentence about ranking and the rationale, but nothing egregious.

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?

An output schema exists, so return values need not be explained, and annotations carry the safety profile. For a read-only ranked-list tool with fully documented parameters, the description is nearly sufficient, missing only explicit sibling differentiation.

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 repo, limit, since, and until are already documented in the schema. The description references 'the period' but adds no format, default, or range detail beyond the schema, so it meets the baseline 3.

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 (rank) and resource (files) and gives the ranking criteria: change frequency then added+deleted lines churn. It does not name or distinguish itself from siblings like file_history or coupled_files, so the agent must infer the difference, but the resource and ordering are clear.

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 explicit when-to-use guidance, no prerequisites, and no named alternative among the siblings. The closing rationale ('where risk and maintenance cost concentrate') hints at analytical intent but is not an operational usage instruction.

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