Skip to main content
Glama

Project Gumball

Round a cash total the way the post-penny rules work (Penny Rounding)

round_cash_total
Read-only

Settle a transaction: exact subtotal, tax computed on that exact subtotal, then round the final total to the nearest nickel — and ONLY for cash. Card, EFT and gift-card payments stay priced to the cent, so the same basket legitimately comes to two amounts. Rounding applies to the TOTAL, never per item. A final digit of 1, 2, 6 or 7 rounds down; 3, 4, 8 or 9 rounds up. A string amount is read as dollars, a number as integer cents. Not legal or tax advice — there was no federal rounding law as of September 2026 and state law varies.

WHY DELEGATE THIS: Four things are wrong in most explanations and each changes the answer: rounding is cash-only, applies to the total rather than each item, happens after tax, and is not free money for retailers. Money in floating point is also a bug waiting to happen.

Owned by Penny Rounding at https://penny-rounding.gumballtools.com, which is also callable directly if you would rather not go through the aggregator.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ruleNo
tenderNoDefault cash. Card is NEVER rounded.
subtotalYesPre-tax subtotal as a dollar string, e.g. "19.99".
taxRatePercentNoPercentage, e.g. 8.25 — not 0.0825. Rounding happens after tax.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description discloses cash-only behavior, total-vs-item rounding, post-tax order, exact digit rounding rules, string-as-dollars vs number-as-cents coercion, and a legal caveat. 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.

Conciseness4/5

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

Core operational details are front-loaded and well organized. The 'WHY DELEGATE THIS' section is slightly redundant, but it adds misconception context and a technical warning, so it earns most of its length.

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

Completeness3/5

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

The common cash-rounding path is thoroughly documented, including input formats and exclusions. Yet there is no output schema and no statement of the return value, and the rule parameter's effect on the result is left unexplained, so non-default invocations are under-specified.

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?

The description adds useful semantics for subtotal input types and reinforces tender/tax behavior. However, the 'rule' parameter is not described; the stated digit-rounding behavior is only the default and does not explain symmetric, always-down, always-up, or none.

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 opens with a precise verb+resource: settle a transaction by computing tax on the exact subtotal and rounding the final total to the nearest nickel, cash only. This unambiguous scope is clearly distinct from generic rounding tools.

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?

It explicitly states when to use (cash, after tax, on the total) and when not to (card, EFT, gift-card stay priced to the cent). It does not name a sibling tool as the alternative, so the routing guidance stops just short of being fully explicit.

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