Skip to main content
Glama

archive_photos

Archive photos by date: create folders, rename files, and generate traceability manifests, indexes, and comparison reports; supports multi-source input, incremental runs, and dry-run indexing.

Instructions

按日期归档:建文件夹、重命名、生成追溯清单、索引与对比报告。

:param plan: build_archive_plan 产出的计划列表。 :param source_dir: 原始图片所在目录(主候选)。 :param out_dir: 归档输出目录。 :param copy: True 复制文件;False 只生成清单与索引(dry-run)。 :param source_dirs: 多源目录候选;不传则用 [source_dir]。 :param incremental: True 跳过已在归档清单中的原始文件名。 :param figures_dir: 若指定,flag=paper 的图另存到该目录并记录用途。

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": {
      "plan": "<plan>",
      "source_dir": "<source_dir>",
      "out_dir": "<out_dir>"
    },
    "name": "archive_photos"
  }
}

Input Schema

NameRequiredDescriptionDefault
copyNo
planYes
out_dirYes
source_dirYes
figures_dirNo
incrementalNo
source_dirsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden, and it does disclose real side effects: folder creation, file renaming, manifest/index/report generation, and an extra write path for figures when flag=paper. The dry-run switch and incremental skip semantics are valuable behavioral disclosures; it does not cover overwrite behavior on existing archives or failure/reversibility of renames.

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?

Front-loaded one-line summary of the operation followed by a tight param list; every line adds information and there is no filler or repetition of the schema.

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

Completeness4/5

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

The tool has an output schema, so return values need not be described, and the description covers the mutation surface and its dry-run variant adequately for a 7-parameter destructive operation. Remaining gaps are edge behavior such as handling of pre-existing archives or partial failures.

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 description coverage is 0%, and the docstring compensates by documenting all seven parameters with semantics beyond titles: the origin of plan, source_dirs defaulting to [source_dir], copy as dry-run toggle, incremental skip rule, and the conditional purpose of figures_dir. The one gap is the internal structure required in each plan entry, which remains opaque.

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 opening line names a specific verb and resource ('按日期归档' – archive by date) and enumerates concrete outputs (folders, renames, traceability manifest, index, comparison report). It also reveals its pipeline position by saying the plan comes from build_archive_plan, though it never explicitly contrasts itself with preview_archive_plan or scan_photos.

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?

Usage is only implied: copy=False is described as a dry-run that produces just the manifest and index, and incremental skips files already archived, which hints at preview-then-commit workflows. There is no explicit statement of when to prefer this over preview_archive_plan or what prerequisites/permissions are needed first.

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