Skip to main content
Glama

export_compressed

Create compressed copies of archived photos in a separate output directory, preserving the original folder structure and leaving source images unchanged.

Instructions

为归档图片另存压缩副本(沿用目录结构,原图保留不动)。

:param out_dir: 归档输出目录。 :param compress_dir: 压缩副本输出目录。 :param max_side: 压缩副本最长边像素;缺省取配置 compress.max_side。 :param quality: 压缩副本 JPG 质量;缺省取配置 compress.quality。

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": {
      "out_dir": "<out_dir>",
      "compress_dir": "<compress_dir>"
    },
    "name": "export_compressed"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_dirYes
qualityNo
max_sideNo
compress_dirYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden, and it does disclose two important behaviors: directory structure is mirrored and originals are not modified. It does not say what happens if compressed copies already exist, whether compress_dir is created, or whether traversal is recursive, which matters for a batch file-writing tool.

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?

One front-loaded purpose sentence followed by exactly four parameter lines, with no filler. The docstring style is compact and scannable; nothing is repeated or padded.

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 not be explained, and the parameters plus the non-destructive promise cover the core. Still missing for a tool that writes files: overwrite policy, whether the target directory must pre-exist, and what happens if out_dir and compress_dir coincide.

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%, so the :param: block is the only documentation, and it covers all four parameters plus both config fallbacks (compress.max_side, compress.quality). The weak point is out_dir being described only as 'archive output directory', which does not clarify how it differs functionally from compress_dir.

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 gives a specific verb and result: save a compressed copy of archived images while retaining the directory structure and leaving originals untouched. That is clear enough to distinguish it from a plain export or archive operation, though it never names a sibling (export_figures, archive_photos) to reinforce the boundary.

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 implied by 'for archived images' and by the non-destructive guarantee, so an agent can infer this is the safe 'make a smaller copy' path. However, there is no explicit when-to-use/when-not guidance and no alternative tool is named, so routing between this and export_figures/archive_photos must be guessed.

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