Skip to main content
Glama

inspect_archive

Verify an archive directory by checking folder and image counts, total size, and whether manifests and indexes are complete.

Instructions

核对归档目录:文件夹数、图片数、总体积、清单与索引是否齐全。

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>"
    },
    "name": "inspect_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
out_dirYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. '核对' signals a read-only check and the listed metrics reveal what the tool reports, but it does not say what happens when the manifest or index is missing (error vs. reported as absent) or whether anything is written.

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?

A single front-loaded sentence with the resource first and the checked items enumerated after a colon. Nothing is wasted and nothing is buried.

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?

The output schema exists, so return values need not be explained. However, with no annotations, one undocumented parameter, and no statement of prerequisites or failure behavior, the definition is only minimally sufficient for a validation tool in a multi-step archive pipeline.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

One required parameter at 0% schema description coverage, and the description never mentions it. Worse, 'out_dir' reads like an output destination while the description implies the tool inspects the archive directory — the description does not resolve which directory the path points to.

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?

States a concrete verb (核对/inspect-verify) plus the resource (归档目录) and enumerates exactly what is checked: folder count, image count, total size, manifest and index presence. That is far more specific than a restatement of the name, though it never contrasts itself with the planning/export siblings.

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 — an agent can infer this is a post-archive validation step — but there is no explicit when-to-use, no prerequisite (e.g. must the plan already be built/committed?), and no named alternative such as preview_archive_plan or archive_photos.

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