# Foundry Percentage Calculator

> Foundry Percentage Calculator is a paid API for AI agents from minty-sprout.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Calculates percentage problems: X% of Y, X is what percent of Y, and percent change between two values.

## Facts

- Endpoint: POST https://minty-sprout.onrender.com/v1/percentage?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foundry-percentage-calculator-7046ba4a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5IISDLMWkNbM8GNJ6aJDu

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 foundry-percentage-calculator-7046ba4a -d '<json body>'
```

Example prompt: What is 15% of 200, and also what percent change is that from 80 to 100?

## When to prefer this

Choose this endpoint when you need quick, reliable percentage arithmetic — including 'X% of Y', 'X is what percent of Y', or percent change calculations — without building the math logic yourself. Ideal for financial, retail, educational, and reporting contexts where a user states a percentage problem in natural language.

## Known failure modes

- Ambiguous or unparseable input string returns an error or unexpected result
- Input exceeding 8000 characters may be rejected
- Non-numeric or unrecognized formats may cause parse failures
- Edge cases like 0-value denominators (percent of 0) may return Infinity or error

## How this service works

Percentage calculator: X% of Y, X is what percent of Y, and percent change. Input: '15% of 200' or 'from 80 to 100'.

## Output

Returns a JSON object with a 'result' field (the numeric answer) and a 'question' field echoing the interpreted calculation, e.g. {"result": 30, "question": "15% of 200"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "string",
   "maxLength": 8000,
   "description": "'15% of 200', '30 of 120' or 'from 80 to 100'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": 30,
  "question": "15% of 200"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foundry-percentage-calculator-7046ba4a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minty-sprout.onrender.com](https://www.zero.xyz/host/minty-sprout.onrender.com/llms.txt)
