Skip to main content
Glama

logistics_detention

Read-only

Demurrage and detention calculator — Container demurrage or detention charges. Give start (YYYY-MM-DD, discharge/availability date for demurrage or gate-out for detention) and rate (per chargeable day) or tiered rates=1-4:150,5-8:250,9+:350; optional end (pickup/return date, default today), freeDays (default 4), dayType (calendar default, or business = free time skips weekends and US federal holidays), type (demurrage or detention), currency. Returns last free day, chargeable days, total charge, per-tier breakdown, day-by-day schedule, cost if returned 1/3/7/14 days later, status and FMC billing-rule notes. Offline, instant. Price: $0.003 USDC (Base, via x402).

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": {
      "start": "<start>",
      "rate": "<rate>"
    },
    "name": "logistics_detention"
  }
}

Input Schema

NameRequiredDescriptionDefault
rateYese.g. 150
startYese.g. 2026-11-18

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds genuinely non-redundant behavior: day-counting rules (business dayType skips weekends and US federal holidays, default 4 free days, end defaults to today), the full return payload (last free day, per-tier breakdown, day-by-day schedule, 1/3/7/14-day projections, FMC billing-rule notes), and a payment requirement of $0.003 USDC via x402. The only friction is the 'Offline, instant' claim sitting next to openWorldHint=true, which reads as a mild tension rather than a contradiction — 'offline' here plausibly means no external data fetch, while the call itself is a paid x402 request.

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?

The purpose is front-loaded in the first clause, followed by parameter semantics and then return/pricing detail, and almost every clause carries usable information. The execution is a single dense run-on with semicolon packing, which costs some scannability but does not waste words.

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 calculator with no output schema and only two required fields in the schema, the description does the heavy lifting: it explains what is computed, how days are counted, what the response contains, and what it costs. Its one structural gap is the mismatch between the six parameters described in prose and the two exposed in the schema, which leaves the actual callable surface ambiguous.

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?

The description adds substantial meaning beyond the terse schema: 'start' is clarified as discharge/availability date for demurrage or gate-out for detention, and 'rate' is clarified as per-chargeable-day with a concrete tiered syntax (rates=1-4:150,5-8:250,9+:350). The caveat is that it also describes optional parameters (end, freeDays, dayType, type, currency) that do not appear in the given schema, which could lead an agent to send fields that fail validation.

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 opening states a specific verb+resource: 'Demurrage and detention calculator — Container demurrage or detention charges.' An agent can immediately tell this apart from siblings like logistics_delivery_date or logistics_landed_cost, and the description names the 'type' switch (demurrage vs detention) that selects the behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage context is implied well enough through parameter semantics: it tells you which date to supply for demurrage (discharge/availability) versus detention (gate-out), which effectively signals when each mode applies. However, there is no explicit when-to-use/when-not-to-use routing against sibling tools, and no statement of prerequisites or when the result should be trusted over a carrier's own invoice.

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