Skip to main content
Glama

Tip calculator

hopi_tip_calculator
Read-onlyIdempotent

Work out a tip on a bill and optionally split the total between people. Returns the tip amount, the total, and the amount per person. Source: https://hopi.co.uk/tip-calculator/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
billYesThe bill amount before tip
splitNoNumber of people to split between (default 1)
tipPercentNoTip as a percentage (default 12.5)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tipNo
billNo
splitNo
totalNo
summaryYes
perPersonNo
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
tipPercentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark the tool as read-only, idempotent, and non-destructive, so the safety profile is covered. The description adds useful behavioral context by stating what it returns: the tip amount, total, and per-person share. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short, front-loaded with the action, and every sentence contributes value. The source URL is a minor extra that does not detract from clarity or add significant noise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple calculator with full schema coverage, output schema, and safety-bearing annotations, the description is complete. It explains the purpose, optional split behavior, and the exact return values, which is sufficient for an agent to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, with all three parameters (bill, split, tipPercent) already described in the schema. The description does not add parameter-specific semantics beyond what the schema provides, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ('Work out a tip on a bill') and clearly states the optional split behavior. It is unambiguous and distinct from the large sibling set of calculators, especially since 'tip' is the core resource and the output items are named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description makes the usage context clear: use it to calculate a tip and optionally split the total. It does not explicitly mention alternatives like hopi_bill_splitter or state when not to use the tool, so it falls short of the 'explicit alternatives/exclusions' bar.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources