Decimal sum

decimal-sum · version 1.0.0 · Money & pricing · free, no key needed

Add up to 10,000 decimal strings exactly and report count, smallest and largest, with optional final rounding.

Use when you need to: sum a list of decimal numbers exactly · add up invoice line amounts · total of a column of prices.

Decide before calling

Read the versioned contract and the supported scope below. Reuse decimal-sum@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 decimal-sum@1.0.0 for sum a list of decimal numbers exactly. 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:

{
  "values": [
    "0.1",
    "0.2",
    "0.3"
  ]
}

Response:

{
  "result": {
    "sum": "0.6",
    "count": 3,
    "min": "0.1",
    "max": "0.3",
    "min_index": 0,
    "max_index": 2,
    "exact": true
  }
}

How to call it

MCP

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

{
  "id": "decimal-sum",
  "version": "1.0.0",
  "input": {
    "values": [
      "0.1",
      "0.2",
      "0.3"
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/decimal-sum/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"values":["0.1","0.2","0.3"]}'

The machine-readable contract is at /v1/tools/decimal-sum/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.