Git object id compute

git-object-id-compute · version 1.0.0 · Hashing & signatures · free, no key needed

Compute the Git object id git itself would give a blob, tree, commit or tag under Git's exact object framing.

Use when you need to: sha1 of a git blob · what commit id would git compute · hash of a git tree object.

Decide before calling

Read the versioned contract and the supported scope below. Reuse git-object-id-compute@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 git-object-id-compute@1.0.0 for sha1 of a git blob. 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:

{
  "object_type": "blob",
  "content": ""
}

Response:

{
  "result": {
    "object_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
    "object_type": "blob",
    "size": 0,
    "hash_algorithm": "sha1",
    "sorted_entries": null
  }
}

How to call it

MCP

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

{
  "id": "git-object-id-compute",
  "version": "1.0.0",
  "input": {
    "object_type": "blob",
    "content": ""
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/git-object-id-compute/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"object_type":"blob","content":""}'

The machine-readable contract is at /v1/tools/git-object-id-compute/versions/1.0.0.

CLI

node cli.mjs run git-object-id-compute 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.