Cashflow irr

cashflow-irr · version 1.0.0 · Financial calculations · free, no key needed

IRR of equally spaced cash flows with every root reported, the chosen root named and no-solution cases signalled.

Use when you need to: internal rate of return of cash flows · IRR calculator for a series of payments · Excel IRR function equivalent.

Decide before calling

Read the versioned contract and the supported scope below. Reuse cashflow-irr@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 cashflow-irr@1.0.0 for internal rate of return of cash flows. 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:

{
  "cash_flows": [
    "-70000",
    "12000",
    "15000",
    "18000",
    "21000",
    "26000"
  ],
  "rate_scale": 4
}

Response:

{
  "result": {
    "irr": "0.0866",
    "roots": [
      "0.0866"
    ],
    "sign_changes": 1,
    "multiple_roots_possible": false,
    "method": "brent"
  }
}

How to call it

MCP

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

{
  "id": "cashflow-irr",
  "version": "1.0.0",
  "input": {
    "cash_flows": [
      "-70000",
      "12000",
      "15000",
      "18000",
      "21000",
      "26000"
    ],
    "rate_scale": 4
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/cashflow-irr/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"cash_flows":["-70000","12000","15000","18000","21000","26000"],"rate_scale":4}'

The machine-readable contract is at /v1/tools/cashflow-irr/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.