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.vercel.app, 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. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.1/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 the precise rounding algorithm by final digit, the after-tax timing, the cash-only scope, and the dollar-string versus integer-cents input convention. It also surfaces the legal caveat that no federal rounding law exists as of September 2026 and state law varies, which is valuable context for a computation tool.

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

Conciseness3/5

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

The key behaviors are front-loaded and the prose is readable, but the WHY DELEGATE THIS section repeats the same points from the first paragraph (cash-only, total not item, after tax) and adds peripheral motivational language about floating-point bugs and direct access. It could be tightened without losing information.

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 input side is very well covered, including rounding rules, tender handling, and legal caveats. However, with no output schema, the description never states what the tool returns, such as whether the result is a dollar-string rounded total, an integer cent value, or a breakdown containing subtotal, tax, and rounded total, so an agent still has to guess at the return contract.

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?

With 75% schema coverage the schema already documents subtotal, tender, and taxRatePercent, and the description adds useful semantics about exact subtotal, after-tax rounding, and cash-only behavior. However, the rule parameter and its enum values (symmetric, always-down, always-up, none) are never explained anywhere, and the rounding-digit rule in the description is not tied to which rule value it describes.

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 specific operation: settle a transaction by computing tax on the exact subtotal and rounding the final total to the nearest nickel for cash only. It clearly distinguishes cash treatment from card, EFT and gift-card treatment, and states that rounding applies to the total, never per-item, so the tool cannot be confused with a generic rounding utility.

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 gives clear selection criteria: use this for cash totals that need post-tax penny rounding, and it explicitly says card and other electronic tenders are never rounded. It does not name an alternative tool such as rounding_impact, but the cash-only trigger and the caution against common wrong explanations are enough to guide when to invoke it.

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.1/5.0
Disambiguation5/5

Each tool targets a clearly distinct domain or a complementary counterpart (cron_build/cron_explain, vocab_draw/vocab_check, round_cash_total/rounding_impact), and the descriptions make those relationships explicit. There is no real risk of selecting the wrong tool for a task.

Naming Consistency3/5

Most tools follow a noun_verb pattern (cron_build, regex_explain, timezone_convert), but there are exceptions like body_metrics, due_date, offside, json_to_types, and round_cash_total, which mix noun phrases, gerunds, prepositions, and verb-first order. The names are readable but not uniform.

Tool Count4/5

13 tools is within a reasonable range, and each utility earns its place as a standalone delegated calculator. The count feels slightly large only because the server is a grab-bag of unrelated domains rather than a focused toolkit, but no tool is redundant.

Completeness4/5

Most subdomains have solid coverage: cron has both build and explain directions, vocabulary has draw and check, and rounding has both per-transaction and aggregate analysis. Minor gaps exist, such as no timezone zone listing, no reverse due-date calculation, and no regex test/match step, but these are workable limitations.

Resources