Skip to main content
Glama

build_selection_page

Generate an offline, single-file photo selection webpage from scan records with inline data and relative thumbnails, so users can review and pick experiment photos.

Instructions

根据扫描记录生成单文件勾选网页(数据内联,缩略图走相对 thumbs/ 路径)。

:param records: scan_photos 返回的 records 列表。 :param html_path: 输出 HTML 路径;缩略图需放在同目录 thumbs/ 下。 :param experiment: 实验名,预填到网页并随清单导出。

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": {
      "records": "<records>",
      "html_path": "<html_path>"
    },
    "name": "build_selection_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo实验照片挑选台
recordsYes
html_pathYes
experimentNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.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 burden and does disclose useful traits: the output is a single self-contained file (data inlined) that depends on a sibling thumbs/ directory for images, and the experiment name is carried into the exported manifest. It does not say whether an existing file at html_path is overwritten, whether the parent directory must exist, or what happens if thumbnails are missing.

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?

Front-loaded with the outcome sentence, then a compact field list that maps one line per meaningful parameter. No filler; the only slack is the unmentioned title parameter, which makes the list feel slightly incomplete rather than verbose.

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?

An output schema exists, so return values need no explanation, and the description covers the file artifact, the inlining/thumbnail model, and three of four inputs. Missing file-system side effects (overwrite, directory creation) are the remaining gap for a tool whose entire job is writing a file.

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 largely does: records is tied to scan_photos' return value, html_path is constrained to a directory containing thumbs/, and experiment is explained as prefilled plus exported with the manifest. The title parameter is left undocumented, which keeps this below a 5.

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 first sentence states a specific verb and artifact: generate a single-file selection/check-off web page from scan records, with inlined data and thumbnails resolved via a relative thumbs/ path. That is clearly distinct from siblings like build_archive_plan or export_figures, though the description never names an alternative to contrast against.

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: '根据扫描记录' tells the agent this consumes scan_photos output, which positions it as a post-scan step, but there is no explicit when-to-use statement, no exclusion versus build_archive_plan, and no mention of prerequisites such as the thumbs/ directory existing.

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