Skip to main content
Glama

Calculate tip

calculate_tip
Read-onlyIdempotent

Calculate a suggested tip and total for a bill using Tipping Rules country norms (percent or round-up). Returns amounts plus canonical country and calculator URLs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
billYesBill amount in local currency units (positive number).
countryYesCountry slug or name for local tipping norms.
serviceNoService category. Prefer restaurant, bar, taxi, delivery, hotelStaff, or tourGuides.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, and non-destructive behavior. The description adds useful behavioral context: it computes tip and total, may use percent or round-up, and returns amounts plus canonical country and calculator URLs. No conflicts 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?

One dense, front-loaded sentence covers purpose, calculation mode, and return value highlights without filler. Every clause adds information an agent needs.

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

Completeness4/5

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

Given the annotations, full schema coverage, and presence of an output schema, the description supplies enough for safe invocation. A minor gap is that it does not explain how the optional service parameter affects the result or how the percent-vs-round-up mode is selected.

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%, so bill, country, and service already have descriptions. The description adds that country norms drive the calculation and mentions percent or round-up, but it does not otherwise clarify parameter mechanics beyond the schema. Baseline 3 is appropriate.

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

Purpose4/5

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

The description clearly names the action (calculate) and the resource (suggested tip and total), and scopes it to Tipping Rules country norms. It is distinguishable from get_tipping_rules and search_countries by function, though it does not explicitly contrast with them.

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

Usage Guidelines3/5

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

It implies this tool is for computing a tip/total for a given bill and country, but provides no explicit conditions about when to prefer it over get_tipping_rules or search_countries. There are no exclusions or alternative routing statements.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool has a clearly distinct role: searching for countries, retrieving tipping rules, and calculating tips. There is no overlap or ambiguity between them.

Naming Consistency5/5

All tool names follow the same verb_noun snake_case pattern: calculate_tip, get_tipping_rules, search_countries. The naming is predictable and consistent.

Tool Count5/5

With three focused tools, the set is lean but well-scoped for the domain. Each tool serves a necessary and distinct part of the tipping guidance workflow.

Completeness4/5

The server covers the core workflow of discovering a country, reading its tipping rules, and calculating a tip. A minor gap is the lack of a bulk 'list all countries' tool, but search by name or region sufficiently covers discovery.

Resources