# AgentTools ROI Calculator

> AgentTools ROI Calculator is a paid API for AI agents from agentstoolshub.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Calculates return on investment (ROI) as profit/loss and percentage return given an initial invested amount and a final value.

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/finance/roi-calculator?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-roi-calculator-79e03c13
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1amFIb8lJlcqs6rpZU-77

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 agenttools-roi-calculator-79e03c13
```

Example prompt: I invested $5,000 and it's now worth $6,750 — can you calculate my ROI and tell me the profit and percentage return?

## When to prefer this

Use this endpoint when you need a quick, reliable ROI computation from just an initial and final value — ideal for agents handling finance queries without needing to implement the math themselves. Prefer this over general-purpose computation endpoints when the user explicitly asks about investment return, profit/loss percentage, or portfolio performance in percentage terms.

## Known failure modes

- Missing 'initial' or 'final' query parameters returns a validation error
- Non-numeric values for initial or final cause a parse/type error
- Initial value of zero causes a division-by-zero error
- Negative initial investment may produce unexpected percentage results

## How this service works

Calculate return on investment: profit (or loss) and the percentage return relative to the initial amount invested. Use this when an agent needs to return on investment as a percentage.

## Output

Returns the profit or loss (final value minus initial investment) and the ROI as a percentage ((final - initial) / initial × 100), indicating whether the investment gained or lost value.

## 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": [
      "initial",
      "final"
     ],
     "properties": {
      "final": {
       "type": "number",
       "description": "Final value"
      },
      "initial": {
       "type": "number",
       "description": "Amount invested"
      }
     }
    }
   },
   "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/agenttools-roi-calculator-79e03c13/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)
