Skip to main content
Glama

Code owners

code_owners
Read-onlyIdempotent

Rank authors by commits and lines changed for a file or folder, with first and last change dates, to identify likely maintainers; merge commits are skipped.

Instructions

Who knows a file or folder best: authors ranked by commits and lines changed under a path, with the dates of their first and last change. Merge commits are skipped.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "code_owners"
  }
}

Input Schema

NameRequiredDescriptionDefault
revNoBranch, tag or revision whose history to read.HEAD
pathNoFile or folder inside the repository. Defaults to the whole repository.
repoNoPath to the repository (or a folder inside it). Defaults to the first allowed root.
limitNoNumber of authors to return.
sinceNoOnly count changes after this date, e.g. "6 months ago" or "2026-01-01".
max_commitsNoNewest commits to read before stopping.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral detail beyond that: the ranking formula (commits + lines changed) and that merge commits are skipped, which materially affects result interpretation. It omits nothing dangerous, though cost/pagination behavior is unaddressed.

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 with the payload (what is ranked and how) front-loaded and the merge-commit caveat appended. No filler, no restatement of the name.

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?

For a six-parameter read-only analysis tool with full schema coverage and annotations, this covers the essentials: what is measured, how it is ranked, and a filtering quirk. A note on default scope or typical output shape would make it complete, but nothing critical is missing.

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 all six parameters are already documented, and the description adds only the path scoping notion. It contributes no extra syntax or meaning for since, limit, or max_commits, so 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?

States a specific outcome verb-and-resource: authors ranked by commits and lines changed under a path, with first/last change dates. That distinguishes it in spirit from git_blame (line-level authorship) and git_log, though no sibling is named explicitly.

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?

"Who knows a file or folder best" implies the use case (finding domain experts/owners), which is real guidance. It never states when not to use it or points to git_blame/git_log as alternatives, so routing is left to inference.

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