# CoCo Tip Split Calculator

> CoCo Tip Split Calculator is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Calculates tip, tax, and per-person split for a restaurant bill given bill amount, number of people, tax percentage, and tip percentage

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/tip-split?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-tip-split-calculator-8bcb332a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8bPPKNjBApjHbPBOMXYIm

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 coco-tip-split-calculator-8bcb332a
```

Example prompt: We just finished dinner and the bill is $100, there are 4 of us, tax is 8%, and we want to tip 18% — can you calculate how much each person owes?

## When to prefer this

Use this endpoint when you need a quick, deterministic server-side calculation of tip, tax, and per-person split for a restaurant bill. Prefer this over doing the arithmetic yourself when you want consistent rounding behavior or when embedding tip-split logic in a larger agent workflow without writing custom math.

## Known failure modes

- Missing required parameters (bill, people, tax_pct, tip_pct) may return incomplete or error response
- Non-numeric string values passed as query params may cause computation errors
- Division by zero if people=0
- Negative or nonsensical values may produce unexpected numeric results

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

Returns a JSON object with computed values: tax amount (number), tip amount (number), total bill amount including tax and tip (number), and per-person share (number) based on the bill, tax percentage, tip percentage, and number of people provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "bill": {
       "type": "string"
      },
      "people": {
       "type": "string"
      },
      "tax_pct": {
       "type": "string"
      },
      "tip_pct": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "tax"
     ],
     "properties": {
      "tax": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tax": 0,
  "tip": 18,
  "total": 118,
  "per_person": 118
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coco-tip-split-calculator-8bcb332a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cocoeatsai.com](https://www.zero.xyz/host/cocoeatsai.com/llms.txt)
