Skip to main content
Glama

file_experts

Identify who knows a file or directory by ranking authors from git blame and recent changes, and report bus factor plus inactive authors.

Instructions

Who knows this file or directory? Weights each author by surviving lines (git blame ignoring whitespace and moved lines) and by lines changed in the last recent_days (score = 0.6 blame share + 0.4 recent share). Reports the bus factor (fewest authors holding more than 50% of the code) and flags authors with no activity for inactive_days. For a directory, the max_files biggest text files are blamed.

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": {
      "path": "<path>"
    },
    "name": "file_experts"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoHEAD
pathYes
repoNo
as_ofNo
max_filesNo
max_authorsNo
recent_daysNo
inactive_daysNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses the blame methodology (whitespace and moved lines ignored), the exact 0.6/0.4 weighting, the bus-factor definition (fewest authors holding >50%), the inactivity flagging, and directory sampling via max_files. Missing behavioral context is the cost/latency profile of blaming up to 200 files and whether 'repo' implies a remote fetch or auth requirement.

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?

Four dense but purposeful sentences, front-loaded with the question the tool answers and followed by methodology. The parenthetical clarifying blame semantics is compact and informative; only the formula restatement is arguably surplus.

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?

An output schema exists, so return-value shape need not be described, and the core tuning parameters are covered. For an 8-parameter analysis tool with zero schema coverage, though, the unexplained repo/as_of/ref trio leaves real ambiguity about what history and which repository is being analyzed.

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 0%, so the description must compensate; it explains recent_days, inactive_days, and max_files through their role in the scoring. It says nothing about ref, repo, as_of, max_authors, or path, leaving four of eight parameters (including the remote/local meaning of repo and the time-travel meaning of as_of) undefined anywhere.

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 names a specific resource (file or directory) and a specific output (weighted author expertise, bus factor, inactive-author flags), with the scoring formula spelled out. It is clear what the tool produces, but it never explicitly distinguishes itself from the sibling bus_factor, which overlaps on the bus-factor output.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The opening question 'Who knows this file or directory?' implies the use case (ownership/expertise lookup), and the directory clause implies when to point it at a directory rather than a file. However, there is no explicit when-to-use, when-not-to-use, or routing to alternatives such as bus_factor or file_history.

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