Skip to main content
Glama
second-desk-provenance

second-desk-provenance

Official

verify_capsule

Verify a signed provenance capsule by recomputing its hashes and ID and checking the Ed25519 signature, trusted signer key, and chain link, returning the verdict with full evidence.

Instructions

Verify one capsule mechanically: recompute the record or payload hash, the extract hash or hashes (when you supply the extracts), and the capsule id, check the Ed25519 signature, check the signer against a trusted key when you supply one, and check the author link and the chain link when a chain is configured. The verdict names the capsule record type and version. Returns the verdict and the full evidence trail in one response.

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": {
      "capsule": "<capsule>"
    },
    "name": "verify_capsule"
  }
}

Input Schema

NameRequiredDescriptionDefault
capsuleYesA provenance capsule, as returned by attest_record.
extractNoOptional. The source extract to check against the capsule. Without it, the extract check is reported as not checked.
extractsNoOptional. For a version 2 capsule: the source extracts to check against its sealed extract hashes. Every supplied extract must match one of them.
chain_pathNoOptional. Path to the chain file. Falls back to the PROVENANCE_CHAIN environment variable.
trusted_public_keyNoOptional. The public key hex of the signer you trust. When given, a capsule or a root signed by any other key fails.

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 that verification is mechanical and local-hash based, that omitted inputs downgrade a check to "not checked" rather than failing, and that the response pairs a verdict with a full evidence trail. It stops short of saying the operation is read-only and does not say whether an invalid signature raises an error or simply yields a negative verdict.

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?

Two sentences, front-loaded with the verb and resource, then the check list, then the return contract. It is dense but every clause maps to a distinct check; minor cost is the long enumeration read as a single run-on sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a five-parameter tool with a nested capsule object, no annotations, and no output schema, the description covers the verification steps, the conditional behavior of optional inputs, and the shape of the return (verdict naming record type and version plus the evidence trail). An agent has enough to call it correctly without guessing.

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 coverage is 100%, so the schema already documents all five parameters in detail, including the trusted_public_key failure rule and chain_path's environment fallback. The description restates the optionality of extracts, trusted key, and chain configuration without adding syntax, format, or precedence rules beyond the schema, so baseline 3 applies.

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?

"Verify one capsule mechanically" gives a specific verb and a scoped resource, then enumerates exactly what is recomputed and checked (record/payload hash, extract hashes, capsule id, Ed25519 signature, signer trust, author and chain links). The word "one" and "mechanically" distinguish it from feed-scale verification, but no sibling is named explicitly, so the differentiation remains inferential.

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?

The description conveys when each check activates ("when you supply the extracts", "when you supply one", "when a chain is configured"), which is useful conditional guidance. It never states when to choose this over capsule_inspect or verify_feed_sample, nor any exclusions or prerequisites, so usage is implied rather than prescribed.

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