Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

List duplicate groups

list_duplicate_groups
Read-onlyIdempotent

List groups of identical files from the duplicate index within a path, paged by offset. Use it after scan_duplicates to review duplicates before planning a trash run.

Instructions

List groups of identical files from the duplicate index, every copy inside path. Use when: reviewing duplicates after scan_duplicates. Instead: trash_duplicates (needs --mcp-write) with dry_run for the trash plan. Requires: --mcp-tools duplicates. Behavior: read-only; the index as of the last scan, no file is read. Groups are ordered by algorithm, then hash value, so offset pages are stable; empty files never group. keep=true marks the oldest copy (no mtime: the shorter, then alphabetically first path), the one trash_duplicates keeps. Pages with offset and max_groups. Time limit: 15 s. Returns: {path, truncated, groups: [{algorithm, value, size, copies: [{path, size, mtime (Unix seconds), modified (ISO 8601), scan_id, keep}]}]}.

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_duplicate_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe folder (absolute, or relative to the MCP root). Default on the local backend: the MCP root; other backends need it.
offsetNoGroups to skip, for the next page: the previous offset + max_groups.
backendNoBackend id from list_backends; omit for the default.
scan_idNoOnly groups with at least one copy from this scan (a scan_id from list_duplicate_scans); 0 = rows from before scans were recorded. Omit for all scans.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
algorithmNoOnly groups hashed with this algorithm; omit for every algorithm.
max_groupsNoReturn at most this many groups; more sets truncated=true.

Output Schema

NameRequiredDescriptionDefault
pathYes
groupsYes
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent annotations: index is as of the last scan, no file is read, empty files never group, groups are ordered by algorithm then hash so offset pages are stable, and there is a 15 s time limit plus a --mcp-tools duplicates requirement. The only gap is that the keep=true tie-break rule is dense and could be stated more plainly.

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?

Labeled sections (Use when / Instead / Requires / Behavior / Returns) front-load the decision-relevant facts, and the Returns block is compact despite covering a nested payload.

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?

Covers prerequisites, side-effect profile, ordering/pagination guarantees, timing limits, and the keep flag for a 7-parameter read tool; nothing an agent needs to call it correctly 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; the description still adds value by explaining that offset/max_groups produce stable pages and that path bounds every copy in a group, which the schema 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?

States a specific verb and resource ("List groups of identical files from the duplicate index") plus the scoping constraint ("every copy inside path"), which immediately separates it from scan_duplicates and trash_duplicates.

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?

Explicit "Use when: reviewing duplicates after scan_duplicates" and "Instead: trash_duplicates (needs --mcp-write) with dry_run for the trash plan" give both the trigger and the alternative with its precondition.

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