80trust / 100

Calculators Tip Calculator

by AgentTools in Company & people data

x402 APIPassing, checked 3 h ago

Calculate the tip for any bill, the grand total, and how much each person pays when splitting. Defaults to a 15% tip. Use this when an agent needs to tip amount, total and per-person split.

GET https://agentstoolshub.com/api/v1/calculators/tip-calculator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
166 ms typical, 194 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agentstoolshub.com/api/v1/calculators/tip-calculator?bill=64.5&people=1&tipPercent=15"
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%2Fagentstoolshub.com%2Fapi%2Fv1%2Fcalculators%2Ftip-calculator
const res = await pay("https://agentstoolshub.com/api/v1/calculators/tip-calculator?bill=64.5&people=1&tipPercent=15");
console.log(await res.json());

Example input

{
  "bill": 64.5,
  "people": 1,
  "tipPercent": 15
}

Example output

{
  "result": {
    "answer": "74.18",
    "answerLabel": "Total with 15% tip",
    "details": [
      {
        "label": "Tip amount",
        "value": "9.68"
      },
      {
        "label": "Bill",
        "value": "64.5"
      }
    ],
    "steps": [
      "Tip = 64.5 × 15 ÷ 100 = 9.68",
      "Total = 64.5 + 9.68 = 74.18"
    ],
    "value": 74.175
  },
  "tool": "tip-calculator"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402148 ms$0.002
7 h agoPassed402166 ms$0.002
10 h agoPassed402181 ms$0.002
14 h agoPassed402186 ms$0.002
18 h agoPassed402194 ms$0.002
21 h agoPassed402162 ms$0.002
25 h agoPassed402159 ms$0.002
28 h agoPassed402151 ms$0.002
33 h agoPassed402298 ms$0.002