Skip to main content
Glama

list_changes

Read-onlyIdempotent

Lists changed functions in working files against a Git ref so you can see what a diff touches before review or commit, including uncommitted edits.

Instructions

Lists the functions changed in the working files against a git ref (HEAD by default): one line per changed file and one per changed function, with its line. Use it before a review or a commit, to see what a diff really touches; then use find_usages on a changed function to see who uses it. ref is any git ref (a branch, a tag, a commit, HEAD~3); the files on disk are compared with it, uncommitted edits included. It does not compare two commits with each other, and it lists functions, not other lines. Needs a git repository; when nothing changed it says so in one line. A long list stops at 200 items unless all is true.

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": "list_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoList everything instead of stopping at 200 items.
refNoGit ref, e.g. HEAD~3 or main.HEAD

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, yet the description still adds real context: a git repository is required, an empty result is reported in one line, the working tree including uncommitted edits is what gets compared, and output truncates at 200 items unless `all` is set. The truncation detail partly duplicates the `all` parameter description, which keeps this just short of a 5.

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?

Purpose is front-loaded and the follow-on guidance and caveats are ordered sensibly, with no filler sentences. It is a dense single paragraph with several semicolon-joined clauses, which costs a little scannability for an agent parsing it.

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

Completeness5/5

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

For a two-parameter read tool with no output schema, the description covers the prerequisites (git repo), the result shape, the empty case, truncation behavior, and what the tool cannot answer. Nothing an agent needs in order to call it correctly or interpret its output is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description earns more by explaining what `ref` means operationally: any branch, tag, commit, or HEAD~3, with the on-disk files compared against it and uncommitted edits included. That is semantics the schema's short example does not convey.

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

Purpose5/5

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

The description opens with a specific verb and resource plus the scope: functions changed in working files against a git ref, defaulting to HEAD. It explicitly delineates its output shape (one line per changed file, one per changed function) and states what it does not do (compare two commits, list non-function lines), so an agent can separate it from siblings like find_usages or query_graph without opening a schema.

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

Usage Guidelines5/5

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

It gives an explicit when: before a review or a commit, to see what a diff really touches. It also names the follow-up alternative and the condition for using it: run `find_usages` on a changed function to see who uses it. The exclusion (does not compare two commits) closes the main ambiguity around git-range tooling.

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