Byte size compare

bytesize-compare · version 1.0.0 · Units & sizes · free, no key needed

Compare two non-negative integer byte sizes by exact byte amounts.

Use when you need to: bytesize compare · compare binary byte sizes · compare kibibytes and mebibytes.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "left": {
    "value": "1",
    "unit": "KiB"
  },
  "right": {
    "value": "1024",
    "unit": "B"
  }
}

Response:

{
  "result": {
    "cmp": 0
  }
}

How to call it

MCP

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

{
  "id": "bytesize-compare",
  "version": "1.0.0",
  "input": {
    "left": {
      "value": "1",
      "unit": "KiB"
    },
    "right": {
      "value": "1024",
      "unit": "B"
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/bytesize-compare/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"left":{"value":"1","unit":"KiB"},"right":{"value":"1024","unit":"B"}}'

The machine-readable contract is at /v1/tools/bytesize-compare/versions/1.0.0.

CLI

node cli.mjs run bytesize-compare 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.