Skip to main content
Glama

update_ledger

Append the current photo archive manifest to a cross-experiment ledger, recording experiment, source note, and commit status for traceable research tracking.

Instructions

把当前归档清单追加进跨实验台账。

:param ledger_dir: 台账目录(归档台账.json 所在处)。 :param experiment: 实验名。 :param source_note: 来源说明(手机批次/目录名)。 :param committed: 是否已入库提交。

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": {
      "ledger_dir": "<ledger_dir>"
    },
    "name": "update_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault
committedNo
experimentNo未分组实验
ledger_dirYes
source_noteNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden. 'Append' implies a mutation, but the description does not say whether the run is idempotent, whether 归档台账.json is created when missing, whether entries are deduplicated, or whether concurrent writes are safe.

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 text is front-loaded with the action, and the parameter notes follow without padding. The Sphinx-style :param: lines are functional, and the only redundancy is the repeated type information already present in the schema.

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 tool has four parameters, one of which is required, and it has an output schema, so return values do not need explaining. However, a mutation tool with no annotations needs more, such as failure modes when the ledger is missing or malformed and the source of the 'current archive manifest', which is not a parameter.

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%, and the description compensates by explaining all four parameters: the ledger directory that contains 归档台账.json, the experiment name, the source note for phone batch or directory name, and whether the entry is already committed. The one-line glosses are terse, but they add real meaning beyond the bare schema, and only 'committed' remains slightly underspecified.

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: appending the current archive manifest into the cross-experiment ledger. An agent can tell this is a write-to-ledger tool, and the implied counterpart is the read-side query_ledger, though the sibling is not named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No statement of when to use this instead of query_ledger or when the ledger should be updated. It also omits prerequisites, such as whether the archive manifest must be produced by build_archive_plan first, and what happens if the ledger already contains the entry.

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