Skip to main content
Glama

verify_envelope

Read-onlyIdempotent

Verify a single signed commit envelope offline using Ed25519 cryptography. Checks signature validity, policy compliance, and expiry in one read-only operation.

Instructions

Verify one signed commit envelope offline against RFC 8032 Ed25519 rules.

Use for a single commit SHA or explicit envelope JSON file. Prefer
``verify_pr_range`` for PR/branch ranges and ``audit_export`` for procurement
bundles spanning many commits. Do not use when you only need hook status —
call ``status`` instead.

Read-only: no network or SSX360_API_KEY required. Does not modify Git state.
Returns ``{ok, sha, actor_type, mode, error?, envelope?}``; ``ok`` is false
on signature, policy, expiry, or missing-envelope errors.

Parameters:
    workspace: Git repo root (defaults to detected repo).
    commit_sha: Commit SHA to verify (uses local envelope file).
    envelope / envelope_path: Optional explicit path to envelope JSON.
    require_mode: Policy filter, e.g. emulated or hardware (empty skips).
    trusted_keys / trusted_keys_file: JSON file listing trusted public keys.
    check_expiry: Reject envelopes with expired delegation timestamps.
    require_actor_types / deny_actor_types: Actor policy allow/deny lists.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
envelopeNoPath to a commit envelope JSON file to verify. Alias for envelope_path; use when importing bundles from CI artifacts or audit exports.
workspaceNoGit repository root. Empty auto-detects from the working directory.
commit_shaNoCommit SHA whose local envelope file should be verified offline.
check_expiryNoWhen true, reject envelopes whose signed delegation or agent-scope manifest includes an expired ``expires_at`` timestamp (ISO 8601 UTC).
require_modeNoPolicy filter on signature mode, e.g. emulated or hardware. Empty skips mode enforcement.
trusted_keysNoPath to a JSON policy file listing trusted Ed25519 public keys (device_id or base64 public keys). Alias for trusted_keys_file.
envelope_pathNoOptional explicit path to an envelope JSON file instead of the default ``.matrixscroll/envelopes/<sha>.json`` location.
deny_actor_typesNoIf set, fail verification when provenance.actor_type matches any denied value.
trusted_keys_fileNoPath to a JSON policy file listing trusted Ed25519 public keys.
require_actor_typesNoIf set, fail verification unless provenance.actor_type is in this list.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already indicate read-only and idempotent. The description adds: 'Read-only: no network or SSX360_API_KEY required. Does not modify Git state.' It also details the return format and error conditions, going beyond annotations.

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 description is concise: two short paragraphs and a bulleted parameter list. Front-loaded with purpose and usage. The parameter list is slightly redundant with the schema but serves as a quick reference.

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?

Covers all necessary aspects: purpose, usage, behavior, return format, error cases, and parameter overview. No gaps given the rich schema and annotations.

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 baseline is 3. The description lists parameters but adds little beyond what the schema descriptions already provide (e.g., aliases and defaults are already in 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 starts with a specific verb and resource: 'Verify one signed commit envelope offline against RFC 8032 Ed25519 rules.' It also explicitly distinguishes from sibling tools like verify_pr_range, audit_export, and status.

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

Usage Guidelines5/5

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

Provides clear when-to-use: 'Use for a single commit SHA or explicit envelope JSON file.' It also tells when to prefer alternatives and what not to use it for (hook status).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SSX360/matrixscroll'

If you have feedback or need assistance with the MCP directory API, please join our Discord server