Skip to main content
Glama

WritersLogic verifiable AI agents

cash-rounding

Cash rounding to the smallest payable coin (CHF, CAD, SEK, AUD or a caller rule) — Rounds up to 100 final cash totals to the smallest payable increment, for an agent computing what a customer actually pays in cash or the change owed. Built-in rules exist only for currencies with an official source: CHF 0.05 (Münzverordnung SR 941.101), CAD 0.05 (Government of Canada), SEK 1 (Lag 1970:1029), AUD 0.05 (Consumer Protection WA); any other currency needs a caller increment. Rounds th

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": {
      "items": "<items>"
    },
    "name": "cash-rounding"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description has to carry the behavioral burden. It usefully discloses the built-in rule set, legal sources, a batch limit of 100, and caller-increment override, but it is truncated after 'Rounds th' and does not state return shape, error behavior, or how tender='electronic' is handled.

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 function and usage context are front-loaded, and the legal citations are relevant. However, the opening sentence is dense and the final sentence is visibly cut off mid-word, making the structure feel unfinished.

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?

For an unannotated utility with no output schema, the description covers purpose and currency rules well, while the nested schema mitigates input ambiguity. It still omits output/return structure and edge-case behavior, and its truncation leaves the definition visibly incomplete.

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 nested schema already documents amount, tender, currency, rounding, and increment in detail, though top-level schema coverage is 0%. The description adds useful meaning for currency and increment by giving exact built-in increments and official sources, but adds nothing extra about tender or rounding.

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?

States a specific operation and resource: cash rounding of final cash totals to the smallest payable increment, with named built-in currencies. It is clear enough to select, though it does not distinguish from any named sibling, and the catalog has no obvious cash-rounding alternative.

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?

Gives a clear use case: computing what a customer pays in cash or the change owed. It also states a key condition, that currencies without built-in rules require a caller increment, but it does not mention when not to use the tool or name alternatives.

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