# AgentTools Tip Calculator

> AgentTools Tip 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 tip amount, grand total, and per-person split for a bill given a bill amount, optional tip percentage, and optional number of people.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/calculators/tip-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-tip-calculator-7667ac82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sr5vfFcBf7e0IGcrx4ck6

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-tip-calculator-7667ac82
```

Example prompt: We just finished dinner and the bill came to $148.50 for 6 people — can you calculate the tip at 18% and tell me how much each person owes?

## When to prefer this

Use this endpoint whenever an agent needs to compute a restaurant or service tip, grand total, or per-person split from a dollar amount. Ideal for dining, catering, or any tipping scenario where the agent must present a breakdown. Prefer over manual calculation when the user specifies a custom tip percentage or group size.

## Known failure modes

- Missing required 'bill' query parameter returns an error
- Non-numeric or negative bill/people/tipPercent values may return validation errors
- bill=0 may return zero values or an error
- Very large bill values could cause floating-point precision issues
- Network or server unavailability returns a 5xx error

## How this service works

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.

## Output

Returns the computed tip amount, the grand total (bill + tip), and the per-person share based on the number of people splitting the bill. Defaults to 15% tip if tipPercent is not provided and defaults to 1 person if people is not provided.

## 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": [
      "bill"
     ],
     "properties": {
      "bill": {
       "type": "number",
       "description": "Bill amount"
      },
      "people": {
       "type": "number",
       "description": "Split between"
      },
      "tipPercent": {
       "type": "number",
       "description": "Tip %"
      }
     }
    }
   },
   "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-tip-calculator-7667ac82/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)
