# AgentTools Percentage Calculator

> AgentTools Percentage Calculator is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Calculates X% of Y, what percent X is of Y, or the percent change between two values, with step-by-step working shown.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/calculators/percentage-calculator?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenttools-percentage-calculator-37ebbdb7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hbC7_dBd-tXcQIdqdU4tU

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-percentage-calculator-37ebbdb7
```

Example prompt: What is 18% of 250, and can you show me the step-by-step working?

## When to prefer this

Choose this endpoint when you need a quick, verifiable percentage calculation — especially when the step-by-step working needs to be shown to a user or included in a report. Prefer it over general-purpose math tools when the operation is strictly one of: X% of Y, what percent X is of Y, or percent change between two values.

## Known failure modes

- Missing required parameters x or y returns an error
- Invalid op enum value causes a bad request error
- Non-numeric values for x or y result in a validation error
- Division by zero scenarios (e.g. Y=0 for what_percent or percent_of) may return an error or undefined result

## How this service works

Calculate X% of Y, what percent X is of Y, and the percent change between two values — with step-by-step working shown. Use this when an agent needs to percent of a number, ratios and percent change.

## Output

Returns the numeric result of the requested percentage operation along with step-by-step working that shows how the answer was derived, making it easy to verify or present the calculation.

## 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": [
      "x",
      "y"
     ],
     "properties": {
      "x": {
       "type": "number",
       "description": "X"
      },
      "y": {
       "type": "number",
       "description": "Y"
      },
      "op": {
       "enum": [
        "percent_of",
        "what_percent",
        "change"
       ],
       "type": "string",
       "description": "Operation"
      }
     }
    }
   },
   "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-percentage-calculator-37ebbdb7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
