Skip to main content
Glama
second-desk-provenance

second-desk-provenance

Official

chain_seal_day

Seal one UTC day of the provenance chain into a signed, self-contained root artifact for static publishing or byte-for-byte mirroring; requires a signing key.

Instructions

Fold one day of the chain into its daily root artifact and sign it. The artifact is self contained (date, root hash, entry count, sequence range, previous root, signer key) so a static page can carry it and a mirror can copy it byte for byte. Needs the signing key.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "chain_seal_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoThe day to seal, YYYY-MM-DD in UTC. Defaults to today.
roots_dirNoOptional. Folder holding the daily root artifacts. Falls back to the PROVENANCE_ROOTS environment variable.
chain_pathNoOptional. Path to the chain file. Falls back to the PROVENANCE_CHAIN environment variable.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 it does disclose meaningful traits: the operation signs, requires a signing key, and produces a self-contained artifact with a named field set. It does not state whether re-sealing an existing day overwrites or fails, whether the chain itself is mutated, or what is returned (path vs. artifact content).

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?

Three sentences, front-loaded with the action, then the artifact contents, then the auth prerequisite. The 'static page / mirror' rationale justifies the self-containment claim rather than padding, though the parenthetical field list is dense.

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?

For a three-optional-parameter, defaults-driven tool with no output schema, the description covers the action, artifact shape, and key requirement. It leaves the return value and the already-sealed-day case unaddressed, which an agent would need before invoking confidently.

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

Parameters3/5

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

Schema description coverage is 100%, so all three parameters (date, roots_dir, chain_path) are already documented with defaults and env-var fallbacks. The description adds no parameter-level meaning beyond that, which is the expected baseline when the schema does the work.

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 concrete verb pair ('fold ... and sign') and a precise resource ('one day of the chain into its daily root artifact'), which is enough to distinguish it from siblings like chain_verify and chain_status. 'Fold' is domain jargon, but the object of the operation is unambiguous.

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 implied rather than stated: sealing is what produces the signed daily artifact, and the prerequisite ('Needs the signing key') is disclosed. There is no explicit when-to-use vs. when-not framing against chain_verify or chain_status, and no note on what to do if a day is already sealed.

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