Skip to main content
Glama

draft_commit_message

Generate a commit message draft from the archive manifest in an output directory, using the experiment name as the commit prefix.

Instructions

根据归档清单生成入库 commit message 草稿。

:param out_dir: 归档输出目录(读取其中的 归档清单.json)。 :param experiment: 实验名,用于 commit 前缀。

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

Input Schema

NameRequiredDescriptionDefault
out_dirYes
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?

No annotations are provided, so the description carries the full burden. It usefully discloses that the tool reads 归档清单.json from out_dir, but it does not say whether a file is written to disk or only returned, what happens if the manifest is missing or malformed, or whether the operation is side-effect free.

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 two parameter notes are terse and relevant. The Sphinx-style ':param' formatting is slightly unusual for a tool description but wastes no space.

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 simple two-parameter tool with an output schema (so return values need no explanation), the definition covers purpose, data source, and both parameters. The remaining gap is behavioral: whether anything is persisted and how manifest errors surface.

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: out_dir is explained as the archive output directory whose manifest is read, and experiment is explained as the commit prefix source. Only minor format/syntax detail (e.g. prefix formatting rules) is absent.

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 resource: generate a draft commit message for ingestion from the archive manifest. The data source (归档清单.json in out_dir) is stated, making the tool clearly distinct from siblings like archive_photos or build_archive_plan. It stops short of explicitly naming a sibling it replaces, so a 4 rather than 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?

Usage is only implied: the tool requires an archive output directory containing a manifest, which hints it should be run after archiving and before a commit. There is no explicit when-to-use statement, no when-not-to-use, and no alternative tool named for related tasks.

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