Skip to main content
Glama
second-desk-provenance

second-desk-provenance

Official

attest_record

Seals a data record with its source reference, extract hashes, and retrieval timestamp into a signed Ed25519 provenance capsule for later verification.

Instructions

Wrap one record in a signed provenance capsule: the payload, its source reference, the hashes of the source extracts it rests on, and the retrieval timestamp, sealed and signed with the configured Ed25519 key. The capsule is the version 2 unified envelope unless version 1 is asked for: it carries a record type (FACT, OBLIGATION, SOURCE, or EXPERIENCE) and a link to the author previous capsule. When a chain is configured, the capsule is also appended to the chain and carries its chain link, and the author link is read from the chain. Needs a signing key (the PROVENANCE_SIGNING_KEY environment variable).

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": {
      "source": "<source>"
    },
    "name": "attest_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordNoThe record to attest, as a JSON object. It is sealed into the capsule as given.
sourceYes
extractNoThe source extract the record came from, exactly as captured. It is hashed into the capsule and never stored.
payloadNoThe payload to attest, under the envelope name. Same argument as record; either name works.
versionNoThe envelope version to seal. Defaults to 2, the unified envelope.
extractsNoFor a version 2 capsule resting on more than one source extract: every extract, exactly as captured. Each is hashed into the capsule and never stored. When given, it replaces extract.
chain_pathNoOptional. Path to the chain file. Falls back to the PROVENANCE_CHAIN environment variable.
record_typeNoThe record type for a version 2 capsule. Defaults to FACT.
retrieved_atNoOptional. When the record was retrieved from its source, in UTC, for example 2026-12-01T06:00:00Z. Defaults to now.
author_previousNoFor an unchained version 2 capsule: the capsule id of the author previous capsule, when this is not the author first. On a chain the link is read from the chain itself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/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 substantial work: it discloses the PROVENANCE_SIGNING_KEY requirement, the side effect of appending to a chain file, that extracts are hashed and never stored, and how author linkage differs on versus off a chain. It omits what the tool returns (a capsule id appears to be needed for later author_previous references) and what happens when the key or chain is missing, which are meaningful gaps for a mutation tool with zero annotation coverage.

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 dense sentences that are front-loaded with the core action and its output artifact, followed by version and chain behavior. Some detail duplicates the schema (version defaults, record_type enum values), but nothing is padding and the ordering serves an agent deciding whether to call it.

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 10-parameter tool with nested objects, no annotations, and no output schema, the description explains inputs and side effects well but never says what is returned — notably the capsule identifier that later chaining and verification tools would need. The key-missing failure mode is also unstated, so an agent cannot fully predict the outcome of a call.

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 90%, so the schema already documents the parameters, their defaults, the record/payload alias, and the extract/extracts replacement rule. The description adds only modest meaning beyond that, mainly the interaction between a configured chain and the author link; it largely restates defaults already present in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Wrap one record in a signed provenance capsule") and enumerates the capsule contents, so the agent can tell this creates a capsule rather than inspecting or verifying one (capsule_inspect, verify_capsule). It also names the signature scheme (Ed25519) and the envelope versions, leaving no ambiguity about what the tool produces.

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: the agent learns the tool needs a signing key and that a chain may be configured, which implies preconditions. However, there is no explicit when-to-use versus when-to-use-an-alternative guidance, and no mention of when to prefer version 1 over version 2 or when to attest versus verify.

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