Skip to main content
Glama

Agent Data Tools: Full list (every tool as its own definition)

Tip calculator: tip, total and split per person

calc_tip
Read-only

Tip and total for a bill at a tip percentage, split between any number of people, optionally rounding each share up to the next whole amount. Use for receipts, expense apps and group payments. Example: bill=84.5. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bill": "<bill>"
    },
    "name": "calc_tip"
  }
}

Input Schema

NameRequiredDescriptionDefault
billYesBill amount before tip
peopleNoPeople sharing, 1-100 (default 1)
percentNoTip percent, 0-100 (default 15)
roundUpNotrue to round each share up to a whole amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.