Skip to main content
Glama

locus_diff

Preview what a directory re-index would add, change, or delete without modifying the corpus, so you can assess the impact before syncing.

Instructions

Preview what would change if a directory were re-indexed now. Returns lists of new, changed, and deleted files without modifying the corpus. Run before locus_sync to understand the impact.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
patternNo**/*.md
store_pathNo.locus

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A4/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 it does disclose the most important trait: this is a non-mutating preview ("without modifying the corpus") that returns new/changed/deleted file lists. Remaining gaps are error behavior (missing path, non-existent store) and cost/scale on large trees, which are not mentioned.

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?

Three short sentences, front-loaded with the core action, then return shape, then the safety guarantee and workflow placement. No filler or restated title.

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?

The lack of an output schema is offset by the description naming the three result buckets, and the dry-run safety profile is stated. However, for a 3-parameter tool with zero schema coverage and no annotations, the undefined `pattern` and `store_path` semantics leave an agent guessing at invocation details.

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% for three parameters, so the description must compensate and does not: only "path" is weakly implied by "if a directory were re-indexed now." The `pattern` (default "**/*.md") and `store_path` (default ".locus") parameters are left entirely unexplained, including what patterns are matched against and where the corpus lives.

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?

"Preview what would change if a directory were re-indexed now" gives a specific verb (preview/diff) and resource (a directory's index state), and the description explicitly names the sibling it complements (locus_sync). An agent can distinguish this dry-run tool from the actual sync operation without opening either schema.

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

Usage Guidelines4/5

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

"Run before locus_sync to understand the impact" gives explicit sequencing guidance relative to a named sibling, which is the key usage decision for this tool. It does not state when to skip it (e.g., small/no-op changes) or any prerequisites, so it falls short of full when/when-not coverage.

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