Byte size add

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

Add non-negative integer byte-size terms in mixed IEC units and return the exact sum in a chosen unit.

Use when you need to: bytesize add · add binary byte sizes · sum kibibyte amounts.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "terms": [
    {
      "value": "1",
      "unit": "KiB"
    },
    {
      "value": "512",
      "unit": "B"
    }
  ],
  "to": "B"
}

Response:

{
  "result": {
    "numerator": "1536",
    "denominator": "1"
  }
}

How to call it

MCP

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

{
  "id": "bytesize-add",
  "version": "1.0.0",
  "input": {
    "terms": [
      {
        "value": "1",
        "unit": "KiB"
      },
      {
        "value": "512",
        "unit": "B"
      }
    ],
    "to": "B"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/bytesize-add/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"terms":[{"value":"1","unit":"KiB"},{"value":"512","unit":"B"}],"to":"B"}'

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

CLI

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

Get the client at /clients/cli/.