Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Move duplicates to trash

trash_duplicates
DestructiveIdempotent

Move duplicate copies within a folder to a restorable trash while keeping the oldest marked copy, after listing duplicate groups. Run a dry-run plan first to preview which files will be moved.

Instructions

Keep the copy marked keep=true (the oldest) of each duplicate group inside path and move the others to the axross trash; copies outside path do not count. Use when: after list_duplicate_groups; run dry_run=true first. Instead: list_duplicate_groups to look; delete_path to delete for good. Requires: --mcp-tools duplicates. Behavior: destructive but restorable; dry_run=true (default) only plans. Trashed copies leave the index. Copies are re-checked first; changed ones go to refused. Moves done before a cancel or timeout stay: rerun to finish. The trash is .axross-trash in the MCP root (remote: home); restore in the axross app. Time limit: 30 min. Returns: {path, dry_run, groups, undated_groups (survivor chosen by path), keep, trash (planned), removed (done; [] on dry_run), refused, failed, trash_root}.

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

Input Schema

NameRequiredDescriptionDefault
pathNoThe folder (absolute, or relative to the MCP root). Default on the local backend: the MCP root; other backends need it.
backendNoBackend id from list_backends; omit for the default.
dry_runNotrue: only return the plan; false: move the planned copies to the trash.
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.

Output Schema

NameRequiredDescriptionDefault
keepYes
pathYes
trashYes
failedYes
groupsYes
dry_runYes
refusedYes
removedYes
trash_rootYes
undated_groupsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: destructive but restorable, trash location per backend (.axross-trash in the MCP root, home on remote), trashed copies leave the index, changed copies are re-checked and routed to refused, already-completed moves survive a cancel or timeout (rerun to finish), and a 30-minute limit. The restore path (axross app) is also disclosed, which annotations cannot convey.

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?

Front-loaded and labeled (Use when / Instead / Requires / Behavior / Returns), so an agent can skim to the relevant line. Slightly heavy: it restates the dry_run default already in the schema, and the Returns field list partly duplicates the existing output schema.

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 destructive, non-idempotent-looking dedupe operation it covers safety (dry_run first), reversibility, partial-failure semantics, and preconditions. With a full input schema, an output schema, and destructive annotations all present, nothing an agent needs in order to call it safely 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 already 100%, but the description adds real meaning: which copy survives (keep=true, the oldest, path-chosen for undated groups), that path bounds which copies count, and that dry_run=true (default) only plans. Backend, scan_id, path_b64, and algorithm are left to the schema, which is reasonable.

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: keep the copy marked keep=true (the oldest) of each duplicate group inside path and move the others to the axross trash. It also pins down scope ('copies outside path do not count'), which distinguishes it from list_duplicate_groups and delete_path 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 Guidelines5/5

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

Explicit 'Use when: after list_duplicate_groups; run dry_run=true first' and 'Instead: list_duplicate_groups to look; delete_path to delete for good' give both the precondition and the named alternative for the two competing actions.

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