Skip to main content
Glama

Logistics Demurrage Detention

logistics_demurrage_detention
Read-only

Container demurrage or detention calculator: from the start date (discharge or gate-out), end date (gate-out or empty return), free days and the carrier's tiered daily rates you supply (e.g. 1-4:75,5-8:150,9+:250), returns chargeable days, the day-by-day tier split and the total per container and for all containers. Counts calendar days, start day included unless you say otherwise. Carrier tariffs are not looked up. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
endYesEnd date YYYY-MM-DD: gate-out full (demurrage) or empty return (detention) (required)
ratesYesTiers after free time, 'from-to:rate' comma separated, last open-ended with '+', e.g. 1-4:75,5-8:150,9+:250 (required)
startYesStart date YYYY-MM-DD: discharge (demurrage) or gate-out full (detention) (required)
currencyNoCurrency label for the output, default USD
freeDaysYesFree days granted, 0-60 (required)
containersNoNumber of containers, default 1
countStartDayNotrue (default) counts the start date as day 1; false starts on the next day

Output Schema

NameRequiredDescriptionDefault
tiersNo
totalNo
currencyNo
daysUsedNo
freeDaysNo
containersNo
freeTimeEndsNo
perContainerNo
chargeableDaysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond them by disclosing the payment model ($0.002 USDC per successful call via x402 on Base/Solana/Arc), that failed calls are free, that tariffs are not fetched, and the day-counting convention (calendar days, start day included unless countStartDay is set). Those are exactly the traits an agent needs before invoking a paid tool.

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?

Purpose is front-loaded in the opening clause, followed by inputs, outputs, caveats and pricing in a tight single paragraph with no filler. The one long sentence is dense but every clause carries information; slight readability cost keeps it from a 5.

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

Completeness5/5

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

Output schema exists, so return values need no explanation, yet the description still summarizes them; combined with the counting rule, the tariff-not-looked-up caveat and the x402 payment terms, an agent has everything needed to call this correctly and predict the cost.

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 100% so the baseline is 3, but the description adds genuine meaning: it maps start/end onto the demurrage vs detention lifecycle and shows the rate tier string syntax ('1-4:75,5-8:150,9+:250') with an open-ended final tier. Only the currency and containers parameters get no extra narrative.

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?

States a specific verb+resource (container demurrage/detention calculator) and enumerates both the inputs it consumes and the outputs it produces (chargeable days, tier split, totals per container and aggregate). No sibling tool covers demurrage/detention, so it is unambiguously distinguishable from the rest of the logistics/energy set.

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?

Explains the mode-dependent semantics of the dates (discharge or gate-out for demurrage vs gate-out or empty return for detention) and explicitly warns 'Carrier tariffs are not looked up', telling the agent it must supply rates itself. It does not name an alternative tool to use for tariff lookups, so it stops short of full when-not guidance.

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