Skip to main content
Glama

lookup_archive

Trace archived photos by searching entries with archive filename, original filename, date, or tag to locate matching records in the archive manifest.

Instructions

反向检索归档清单:按归档文件名/原始文件名/日期/标签反查追溯条目。

:param out_dir: 归档输出目录。 :param keyword: 文件名关键词(归档名或原始名)。 :param date: 按日期精确匹配。 :param tag: 按标签精确匹配。 :param original: 按原始文件名精确匹配。

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

Input Schema

NameRequiredDescriptionDefault
tagNo
dateNo
keywordNo
out_dirYes
originalNo

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 behavioral burden; it does signal a read-only retrieval operation ('反向检索') and that it returns trace entries, which is useful. However, it omits error/empty-match behavior, precedence when several filters are given, and any permission or scoping constraints on out_dir.

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?

The purpose sentence is front-loaded and the parameter list is compact, with no filler wording. The param-doc formatting is slightly redundant with the schema field names but serves readers who lack schema descriptions.

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-value details are not required, and the description covers the retrieval concept plus every parameter. For a five-parameter, unannotated lookup, however, it leaves out date formatting, filter-combination rules, and what happens on zero matches.

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 description must compensate, and it does: all five parameters are explained, including that keyword matches either archive or original name, and that date, tag, and original are exact-match filters. The main gap is that the date string format and the combination semantics of simultaneous filters are not specified.

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 states a specific verb and resource: a reverse lookup (反向检索) over the archive manifest that returns trace entries (追溯条目), filtered by archive filename, original filename, date, or tag. An agent can tell what it searches and what it returns, though it is not explicitly contrasted with siblings such as query_ledger or inspect_archive.

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: the reader infers this tool is for finding entries when one of the four identifiers is already known. There is no statement of when to prefer it over query_ledger or inspect_archive, and no note about behavior when multiple filters are supplied together or when nothing matches.

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