Skip to main content
Glama
JMComic AI

JMComic AI

by hect0x7

post_process

Converts downloaded manga albums into ZIP, PDF, or long-image files with configurable output paths, optional encryption, and original-file cleanup.

Instructions

对已下载的本子进行后处理(生成 Zip、PDF 或长图)。

参数: album_id: 要处理的本子 ID。 process_type: 后处理类型,可选值为 "zip", "img2pdf", "long_img"。 params: 后处理参数字典。支持: - dir_rule: 输出路径规则。格式: {"rule": "Bd/{Atitle}.zip", "base_dir": "D:/Comics"}。 - delete_original_file: 布尔值,处理完成后是否删除原始文件。 - level: album(默认整本)或 photo(每章单独导出)。 - filename_rule: 同目录 DSL 的单段规则;默认使用 [JM车号]标题。 - encrypt: ZIP/PDF 加密参数,可用 password 或 type: random。

返回: 包含以下内容的字典: - status: "success" 或 "error" - process_type: 后处理类型 - album_id: 本子 ID - output_path: 输出文件/目录的绝对路径 - output_paths: 插件实际生成的全部文件绝对路径 - is_directory: 输出是否为目录 - message: 成功或错误消息

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": {
      "album_id": "<album_id>",
      "process_type": "<process_type>"
    },
    "name": "post_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNo
album_idYes
process_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully flags the destructive option (delete_original_file removes source files after processing) and the encryption choices, but omits whether the call blocks, whether it fails on a missing local album, and any rate/concurrency limits.

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?

Purpose is front-loaded in one line, then clearly sectioned into parameters and returns. The return-value block duplicates the existing output schema, so it does not fully earn its space, but nothing is genuinely redundant or padded.

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?

For a three-parameter mutation tool with nested options, the definition covers parameters, output shapes, and the destructive flag well. Remaining gaps are explicit error conditions and confirmation of the download precondition, which matter for an agent orchestrating a download-then-process pipeline.

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 0%, so this description does the heavy lifting: it supplies the process_type enum values (zip/img2pdf/long_img) absent from the schema and documents the params keys, including a concrete dir_rule format example and album vs photo granularity. The filename_rule explanation ('同目录 DSL 的单段规则') is opaque and relies on external conventions.

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 opens with a specific verb and resource: post-process an already-downloaded album into Zip, PDF, or long image. That distinguishes it from the download_* siblings, which produce the source files. It never names an alternative tool explicitly, so it falls short of a 5.

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?

The phrase '已下载的本子' implies a prerequisite workflow: use this after download_album/start_download has produced files. However, no sibling is named, no when-not-to-use condition is given, and it does not state what happens if the album was never downloaded.

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