Skip to main content
Glama

detect_changes

Compares the current filesystem against the last cached index to show added, modified, and removed files, helping you identify what changed between sessions.

Instructions

Diff the current filesystem against the last cached index. Shows which files were added, modified, or removed since the last index run. Use this to know what changed between sessions.

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": {
      "repo_path": "<repo_path>"
    },
    "name": "detect_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
repo_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

With no annotations, the description carries the full burden. It reveals the comparison basis (cached index) and the output categories, which implies a read-only diff, but it does not state what happens when no cached index exists, whether the index is refreshed as a side effect, or whether the operation is expensive on large repos.

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?

Three short sentences, front-loaded with the core action, with no filler. The second sentence partially restates the first ("since the last index run" repeats the cached-index comparison), but the redundancy is minor.

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 values need no explanation, and the description covers the core mechanics. However, for a tool whose correctness depends on a prior index state, the absence of any prerequisite or failure-mode information leaves a meaningful gap.

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 0% and the single parameter repo_path is never mentioned in the description. The description says "the current filesystem" without clarifying that scope is determined by repo_path, so an agent gets no added meaning beyond the bare property name and title.

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 uses a specific verb (diff) against a specific resource (current filesystem vs. last cached index) and enumerates the result categories: added, modified, removed. It is distinguishable from the analysis-oriented siblings, though it does not explicitly name or contrast with any of them.

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?

"Use this to know what changed between sessions" gives a clear scenario but no exclusions, no alternatives, and no prerequisites. It never states that a prior index run must exist, which is the key condition that determines whether the tool is usable at all.

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