Skip to main content
Glama

storage-charge-clock

Storage, demurrage or detention charge: free-time end date, chargeable days and tiered amount — Counts days between a received date and a released date for storage, demurrage, detention or parking charges: you state whether the receipt day and the release day count, how free days are counted (calendar or business days on a named or caller calendar), and a tiered per-day rate schedule by chargeable day number; returns the last free day, chargeable days, a per-tier breakdown and the total in m

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": {
      "receivedOn": "<receivedOn>",
      "releasedOn": "<releasedOn>",
      "receiptDayCounts": "<receiptDayCounts>",
      "releaseDayCounts": "<releaseDayCounts>",
      "freeDays": "<freeDays>",
      "freeCounting": "<freeCounting>",
      "chargeCounting": "<chargeCounting>",
      "tiers": "<tiers>",
      "currency": "<currency>"
    },
    "name": "storage-charge-clock"
  }
}

Input Schema

NameRequiredDescriptionDefault
tiersYes
weekendNoNon-business weekdays, 0=Sunday..6=Saturday. Default [0, 6]; use [5, 6] for a Friday/Saturday weekend.
calendarNoNamed holiday calendar with a source and supported date range (outside it the answer is unsupported), weekends-only (Saturday/Sunday only), or caller (only the holidays you list).
currencyYesISO 4217 code in capitals, e.g. USD. rateMinor is in this currency's minor units (cents for USD).
freeDaysYesFree days before charges start; 0 for none.
holidaysNoExtra non-business dates YYYY-MM-DD (company closures, a calendar we do not carry).
receivedOnYesDate the goods or container were received, YYYY-MM-DD.
releasedOnYesDate released, YYYY-MM-DD; not before receivedOn.
freeCountingYesWhether free days skip weekends/holidays; business needs calendar.
chargeCountingYesWhether chargeable days skip weekends/holidays.
receiptDayCountsYesWhether the day of receipt is day 1.
releaseDayCountsYesWhether the release day is counted.
claimedChargeMinorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / currency / description
      Added value: +"ISO 4217 code in capitals, e.g. USD. rateMinor is in this currency's minor units (cents for USD)."
    • addedInput schema / properties / freeCounting / description
      Added value: +"Whether free days skip weekends/holidays; business needs calendar."
    • addedInput schema / properties / freeDays / description
      Added value: +"Free days before charges start; 0 for none."
    • addedInput schema / properties / receivedOn / description
      Added value: +"Date the goods or container were received, YYYY-MM-DD."
    • addedInput schema / properties / releasedOn / description
      Added value: +"Date released, YYYY-MM-DD; not before receivedOn."
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does well on outputs, promising the last free day, chargeable days, a per-tier breakdown and a total in minor units, but it never states that this is a pure computation with no side effects, says nothing about validation failures (e.g. releasedOn before receivedOn) or unsupported calendar ranges, and the final sentence is truncated mid-word ('the total in m').

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 description is front-loaded with the charge type and outputs, which is good, but the second clause is a long run-on that re-lists information already given in the opening, and the text ends abruptly with an incomplete phrase ('the total in m'), which reads as an editing defect rather than concision.

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?

For a 13-parameter tool with no output schema, the description does the important work of describing the return payload and the counting semantics. Gaps remain: the truncated ending, and no explanation of the undocumented claimedChargeMinor parameter or of error/unsupported-range behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 85%, so the baseline is 3, but the description adds genuine conceptual meaning: it explains that the caller decides whether the receipt and release days count, that free days are counted in calendar or business days against a named or caller calendar, and that tiers are keyed by chargeable day number. These are interpretive links across parameters that the schema documents only individually.

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 verb+resource: it 'counts days between a received date and a released date' for storage, demurrage, detention or parking charges. It further names the outputs (free-time end date, chargeable days, tiered amount), so an agent knows exactly what computation it performs without opening the schema.

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?

The domain framing (storage/demurrage/detention/parking charge calculation with free time and tiered rates) makes the applicable scenario clear, and the clause about stating day-counting and calendar choices describes the caller's responsibilities. There is no explicit when-not-to-use guidance or named alternative, but the sibling tools are unrelated, so the omission is minor.

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