Cid canonical check

cid-canonical-check · version 1.0.0 · Numbers & math · free, no key needed

Check canonical CID text or binary representation and return a stable verdict.

Use when you need to: check canonical cid text · check canonical cid binary · verify cid representation.

Decide before calling

Read the versioned contract and the supported scope below. Reuse cid-canonical-check@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 cid-canonical-check@1.0.0 for check canonical cid text. 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:

{
  "cid": "bafybeie5nqv6kd3qnfjuprw2scvucpip3oda2pxyf7hyfasar4zu5flr5m"
}

Response:

{
  "result": {
    "valid": true,
    "canonical": true,
    "version": 1,
    "canonical_text": "bafybeie5nqv6kd3qnfjuprw2scvucpip3oda2pxyf7hyfasar4zu5flr5m",
    "reasons": [],
    "standard": "Multiformats CID Specification 1.0",
    "reference": "CID specification 1.0 §CIDv0/§CIDv1 and multicodec/multihash/multibase tables",
    "data_version": "multiformats tables snapshot 2026-10-24"
  }
}

How to call it

MCP

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

{
  "id": "cid-canonical-check",
  "version": "1.0.0",
  "input": {
    "cid": "bafybeie5nqv6kd3qnfjuprw2scvucpip3oda2pxyf7hyfasar4zu5flr5m"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/cid-canonical-check/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"cid":"bafybeie5nqv6kd3qnfjuprw2scvucpip3oda2pxyf7hyfasar4zu5flr5m"}'

The machine-readable contract is at /v1/tools/cid-canonical-check/versions/1.0.0.

CLI

node cli.mjs run cid-canonical-check 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.