Oci descriptor verify

oci-descriptor-verify · version 1.0.0 · Hashing & signatures · free, no key needed

Verify supplied bytes against an OCI descriptor digest and size.

Use when you need to: verify an OCI descriptor · check OCI blob digest and size · validate container descriptor bytes.

Decide before calling

Read the versioned contract and the supported scope below. Reuse oci-descriptor-verify@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.

Explain the choice

"I can use oci-descriptor-verify@1.0.0 for verify an OCI descriptor. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "descriptor": {
    "media_type": "application/vnd.oci.image.layer.v1.tar",
    "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "size": 0
  },
  "content": ""
}

Response:

{
  "result": {
    "valid": true,
    "reasons": [],
    "computed_digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "computed_size": 0,
    "standard": "OCI Image and Image Layout Specifications v1.1.1",
    "reference": "OCI Image Specification v1.1.1: Descriptor, Digests, Image Manifest, Image Index; OCI Image Layout Specification v1.1.1"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "oci-descriptor-verify",
  "version": "1.0.0",
  "input": {
    "descriptor": {
      "media_type": "application/vnd.oci.image.layer.v1.tar",
      "digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "size": 0
    },
    "content": ""
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/oci-descriptor-verify/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"descriptor":{"media_type":"application/vnd.oci.image.layer.v1.tar","digest":"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","size":0},"content":""}'

The machine-readable contract is at /v1/tools/oci-descriptor-verify/versions/1.0.0.

CLI

node cli.mjs run oci-descriptor-verify 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.