Length add

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

Add integer length terms in mixed units and return the exact sum in a chosen unit.

Use when you need to: length add · add length measurements · sum length terms into a unit.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "terms": [
    {
      "value": "1",
      "unit": "ft"
    },
    {
      "value": "6",
      "unit": "in"
    }
  ],
  "to": "in"
}

Response:

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

How to call it

MCP

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

{
  "id": "length-add",
  "version": "1.0.0",
  "input": {
    "terms": [
      {
        "value": "1",
        "unit": "ft"
      },
      {
        "value": "6",
        "unit": "in"
      }
    ],
    "to": "in"
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.