Skip to main content
Glama

FreeDailyPro Calculators

calculate_tip

Read-onlyIdempotent

Tip calculator

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>",
      "tipPercent": "<tipPercent>"
    },
    "name": "calculate_tip"
  }
}

Input Schema

NameRequiredDescriptionDefault
billYesBill (0 to any) as a plain number, for example 10.
peopleNoNumber of people, a whole number, for example: 4.
tipPercentYesTip in percent, for example: 18 for 18%.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / bill / description
      Added value: +"Bill (0 to any) as a plain number, for example 10."
    • addedInput schema / properties / people / description
      Added value: +"Number of people, a whole number, for example: 4."
    • addedInput schema / properties / tipPercent / description
      Added value: +"Tip in percent, for example: 18 for 18%."
  2. First observed

TDQS

C2.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered structurally. The description adds no behavioral context whatsoever: it does not say whether the result is a total, a per-person split, or whether the optional people parameter changes the output shape.

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

Conciseness2/5

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

Two words with no wasted phrasing, but the brevity is under-specification rather than economy. There is no front-loaded statement of inputs or return value, so nothing in the text earns its place by conveying information.

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

Completeness2/5

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

The tool is simple with fully documented parameters and no nested objects, but there is no output schema, and the description does not clarify what is returned (total tip, total bill, or per-person amount) or how the optional people parameter affects that. For a calculation tool whose value is entirely in its result, that gap matters.

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 description coverage is 100%: bill, tipPercent and people all carry examples and ranges in the schema itself. The description adds no meaning beyond that, so the baseline of 3 applies rather than a penalty.

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

Purpose2/5

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

"Tip calculator" only restates the tool name and the title annotations ("Calculate Tip") in noun form. It names no verb, no output, and gives no basis for distinguishing this from siblings such as calculate_discount or calculate_sales_tax, which are equally plausible for a bill-plus-percentage computation.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of when to prefer calculate_discount or calculate_sales_tax, and no statement of preconditions. The agent must infer the tool's role entirely from its name.

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