# AgentsToolsHub IRR & NPV Calculator

> AgentsToolsHub IRR & NPV Calculator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Computes Net Present Value (NPV) at a given discount rate and solves for Internal Rate of Return (IRR) using bisection method for a series of period cash flows.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/finance/irr-npv?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstoolshub-irr-npv-calculator-60910d05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7IdJ6MZ0BMxSREIb7mxP-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentstoolshub-irr-npv-calculator-60910d05
```

Example prompt: What's the NPV and IRR for an investment with these cash flows: -10000, 3000, 4000, 5000, 4000 — use a 10% discount rate?

## When to prefer this

Use this endpoint when an agent needs precise, reproducible NPV and IRR calculations for investment analysis, project comparison, or bond-style math without building custom financial logic. Prefer this over general-purpose code execution when you need a fast, deterministic finance API call with structured output.

## Known failure modes

- Missing required cashflows parameter returns an error
- IRR solver may fail to converge if no real IRR exists for the given cash flow pattern (e.g., all positive or non-sign-changing flows)
- Malformed cashflows string (wrong delimiter or non-numeric values) causes parsing error
- Discount rate not provided defaults to a standard rate or may error depending on endpoint behavior
- Payment failure or insufficient USDC balance returns 402

## How this service works

Compute NPV at any discount rate and solve IRR (bisection on the IRR equation) for a period cash-flow series: investment analysis, project comparison and bond-style math with exact, reproducible results. Period 0 is the initial outflow. Use this when an agent needs to internal rate of return + discounted value of cash flows.

## Output

Returns the computed NPV (net present value) discounted at the provided rate percentage, and the IRR (internal rate of return) solved via bisection on the cash flow series. Results are exact and reproducible, with period 0 treated as the initial outflow.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "cashflows"
     ],
     "properties": {
      "ratePct": {
       "type": "number",
       "description": "Discount rate (%)"
      },
      "cashflows": {
       "type": "string",
       "description": "Cash flows"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstoolshub-irr-npv-calculator-60910d05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentstoolshub.com](https://www.zero.xyz/host/agentstoolshub.com/llms.txt)
