29trust / 100
Calculators Percentage Calculator
by AgentTools in Other
x402 APIFailing, checked 2 h ago
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.
GET https://agenttools-hub.vercel.app/api/v1/calculators/percentage-calculator
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 13.3%
- Response time
- 177 ms typical, 177 ms slowest 5%
- Last check
- 2 h ago: Expected HTTP 402, got 308
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/calculators/percentage-calculator?op=percent_of&x=15&y=200"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fcalculators%2Fpercentage-calculator
const res = await pay("https://agenttools-hub.vercel.app/api/v1/calculators/percentage-calculator?op=percent_of&x=15&y=200");
console.log(await res.json());Example input
{
"op": "percent_of",
"x": 15,
"y": 200
}Example output
{
"result": {
"answer": "30",
"answerLabel": "15% of 200",
"steps": [
"15% of 200 = 15 ÷ 100 × 200 = 30"
],
"value": 30
},
"tool": "percentage-calculator"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Expected HTTP 402, got 308 | 308 | 45 ms | - |
| 6 h ago | Expected HTTP 402, got 308 | 308 | 46 ms | - |
| 11 h ago | Expected HTTP 402, got 308 | 308 | 71 ms | - |
| 15 h ago | Expected HTTP 402, got 308 | 308 | 47 ms | - |
| 19 h ago | Expected HTTP 402, got 308 | 308 | 206 ms | - |
| 23 h ago | Expected HTTP 402, got 308 | 308 | 99 ms | - |
| 27 h ago | Expected HTTP 402, got 308 | 308 | 104 ms | - |
| 31 h ago | Expected HTTP 402, got 308 | 308 | 101 ms | - |
| 34 h ago | Expected HTTP 402, got 308 | 308 | 102 ms | - |
| 39 h ago | Expected HTTP 402, got 308 | 308 | 72 ms | - |
| 43 h ago | Expected HTTP 402, got 308 | 308 | 73 ms | - |
| 47 h ago | Expected HTTP 402, got 308 | 308 | 19 ms | - |
| 2 days ago | Expected HTTP 402, got 308 | 308 | 17 ms | - |
| 2 days ago | Passed | 402 | 177 ms | $0.002 |
| 2 days ago | Passed | 402 | 216 ms | $0.002 |