Money allocate

money-allocate · version 1.0.0 · Money & pricing · free, no key needed

Split a money amount by weights or into equal parts with the largest remainder method; shares sum exactly to the total.

Use when you need to: split 100 dollars three ways · divide amount by weights without losing a cent · allocate 1003 cents 50/50.

Decide before calling

Read the versioned contract and the supported scope below. Reuse money-allocate@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 money-allocate@1.0.0 for split 100 dollars three ways. 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:

{
  "amount": "100.00",
  "currency": "USD",
  "parts": 3
}

Response:

{
  "result": {
    "allocations": [
      "33.34",
      "33.33",
      "33.33"
    ],
    "total": "100.00",
    "currency": "USD",
    "scale": 2,
    "data_version": "iso4217-datasets-7cdc784-2026-07-27"
  }
}

How to call it

MCP

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

{
  "id": "money-allocate",
  "version": "1.0.0",
  "input": {
    "amount": "100.00",
    "currency": "USD",
    "parts": 3
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/money-allocate/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"amount":"100.00","currency":"USD","parts":3}'

The machine-readable contract is at /v1/tools/money-allocate/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.