# AgentTools Percentage Calculator

> AgentTools Percentage 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 X% of Y, what percent X is of Y, and percent change between two values, with step-by-step working shown

## Facts

- Endpoint: GET https://agentstoolshub.com/api/v1/calculators/percentage-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-percentage-calculator-b26131d3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W7OffmJerjB8Oig5opgPU

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-b26131d3
```

Example prompt: What is 17.5% of 340, and can you show me the working step by step?

## When to prefer this

Choose this endpoint when you need a reliable, auditable percentage calculation with step-by-step working shown — especially useful when the agent needs to explain the math to a user. Supports three distinct operations: computing X% of Y, finding what percent X is of Y, and calculating percent change between two values.

## Known failure modes

- Missing required x or y query parameters returns a validation error
- Invalid op enum value returns an error listing accepted operations
- Division by zero scenario (e.g. Y=0 for percent_of) may return an error or undefined result
- Non-numeric values for x or y are rejected with a schema validation error

## 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 the calculation transparent and verifiable.

## 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-b26131d3/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)
