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

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 30830845 ms-
6 h agoExpected HTTP 402, got 30830846 ms-
11 h agoExpected HTTP 402, got 30830871 ms-
15 h agoExpected HTTP 402, got 30830847 ms-
19 h agoExpected HTTP 402, got 308308206 ms-
23 h agoExpected HTTP 402, got 30830899 ms-
27 h agoExpected HTTP 402, got 308308104 ms-
31 h agoExpected HTTP 402, got 308308101 ms-
34 h agoExpected HTTP 402, got 308308102 ms-
39 h agoExpected HTTP 402, got 30830872 ms-
43 h agoExpected HTTP 402, got 30830873 ms-
47 h agoExpected HTTP 402, got 30830819 ms-
2 days agoExpected HTTP 402, got 30830817 ms-
2 days agoPassed402177 ms$0.002
2 days agoPassed402216 ms$0.002